Function at 0x1004373
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x7c4]
sub esp, 0x844
mov eax, dword [0x100a028]
push ebx
push esi
push edi
mov esi, 0x10024f8
push esi
push dword [ebp + 0x7cc]
mov dword [ebp + 0x7c0], eax
mov dword [ebp - 0x80], 1
call fcn.01005c63
xor ebx, ebx
jmp 0x10045a3
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push ebx
push edi
mov dword [ebp - 0x78], ebx
call fcn.01006330
test eax, eax
je 0x1004596
cmp dword [0x100a194], ebx
jne 0x10043ec
lea eax, [ebp + 0xcc]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.01002a1f
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push 1
push edi
call fcn.01006330
test eax, eax
je 0x1004596
lea eax, [ebp + 0x4b4]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.01002a1f
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push 2
push edi
call fcn.01006330
test eax, eax
je 0x100446a
lea eax, [ebp + 0x5b8]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.01002a1f
jmp 0x1004470
mov byte [ebp + 0x5b8], bl
lea eax, [ebp + 0x6bc]
push 0x10024f0
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1004596
push ebx
push ebx
lea eax, [ebp + 0x6bc]
push eax
call fcn.01006330
lea eax, [ebp + 0x6bc]
push eax
push 0x100a008
call fcn.01004163
push 0x80
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push dword [ebp + 0x7cc]
call fcn.01006330
push ebx
lea eax, [ebp + 0x6bc]
push eax
mov al, byte [ebp + 0x5b8]
neg al
lea ecx, [ebp + 0x5b8]
sbb eax, eax
and eax, ecx
push eax
lea eax, [ebp + 0x4b4]
push eax
call dword [0x100a040]
cmp eax, ebx
mov dword [ebp - 0x78], eax
jne 0x1004596
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 5
jne 0x1004596
push 0x100a080
push 0x100ab00
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0x5b8]
push eax
call fcn.01006330
test eax, eax
je 0x1004596
cmp byte [0x100a080], bl
mov ecx, 0x100a080
jne 0x100453e
lea ecx, [ebp + 0x6bc]
cmp byte [0x100ab00], bl
je 0x100454d
mov eax, 0x100ab00
jmp 0x100455f
mov al, byte [ebp + 0x5b8]
neg al
lea edx, [ebp + 0x5b8]
sbb eax, eax
and eax, edx
push ebx
push ecx
push eax
lea eax, [ebp + 0x4b4]
push eax
call dword [0x100a040]
push 0x100a080
mov dword [ebp - 0x78], eax
push 0x100ab00
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0x5b8]
push eax
call fcn.010034d4
test eax, eax
jne 0x1004596
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp - 0x78]
and dword [ebp - 0x80], eax
push esi
push edi
call fcn.01005b36
mov edi, eax
cmp edi, ebx
jne 0x10043ae
push 0x10024e8
push dword [ebp + 0x7cc]
call fcn.01005c63
cmp eax, ebx
mov dword [ebp - 0x7c], eax
mov edi, 0x100ab00
je 0x1004769
mov esi, dword [sym.imp.kernel32.dll_CopyFileA]
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push ebx
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], ebx
call fcn.01006330
test eax, eax
je 0x100474b
cmp dword [0x100a194], ebx
jne 0x1004613
lea eax, [ebp + 0xcc]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.01002a1f
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push 1
push dword [ebp - 0x7c]
call fcn.01006330
test eax, eax
je 0x100474b
lea eax, [ebp + 0x5b8]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.01002a1f
lea eax, [ebp + 0x6bc]
push 0x10024f0
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x100474b
push ebx
push ebx
lea eax, [ebp + 0x6bc]
push eax
call fcn.01006330
lea eax, [ebp + 0x6bc]
push eax
push 0x100a008
call fcn.01004163
push 0x80
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push ebx
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0x5b8]
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x78], eax
jne 0x1004739
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 5
jne 0x1004739
push 0x100a080
push edi
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0x5b8]
push eax
call fcn.01006330
test eax, eax
je 0x1004739
cmp byte [0x100a080], bl
mov ecx, 0x100a080
jne 0x1004701
lea ecx, [ebp + 0x6bc]
cmp byte [0x100ab00], bl
mov eax, edi
jne 0x1004711
lea eax, [ebp + 0x5b8]
push ebx
push ecx
push eax
call esi
push 0x100a080
mov dword [ebp - 0x78], eax
push edi
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0x5b8]
push eax
call fcn.010034d4
test eax, eax
jne 0x1004739
mov dword [ebp - 0x78], ebx
push 0x80
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x78]
and dword [ebp - 0x80], eax
push 0x10024e8
push dword [ebp - 0x7c]
call fcn.01005b36
cmp eax, ebx
mov dword [ebp - 0x7c], eax
jne 0x10045d3
push 0x10024e0
push dword [ebp + 0x7cc]
call fcn.01005c63
cmp eax, ebx
mov dword [ebp - 0x7c], eax
je 0x100490b
jmp 0x100478b
mov edi, 0x100ab00
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push ebx
push dword [ebp - 0x7c]
mov esi, 0x104
mov dword [ebp - 0x78], ebx
call fcn.01006330
test eax, eax
je 0x10048ed
cmp dword [0x100a194], ebx
jne 0x10047d0
lea eax, [ebp + 0xcc]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp + 0x5b8]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.01002a1f
push esi
lea eax, [ebp + 0x6bc]
push eax
push 1
push dword [ebp - 0x7c]
call fcn.01006330
test eax, eax
je 0x10048ed
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
pop ecx
push dword [ebp + 0x7cc]
call fcn.01006330
lea eax, [ebp + 0x4b4]
push eax
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1470000
lea eax, [ebp + 0x5b8]
push eax
call dword [0x100a044]
cmp eax, ebx
mov dword [ebp - 0x78], eax
jne 0x10048a5
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 5
jne 0x10048a0
push edi
lea eax, [ebp + 0x5b8]
push eax
call fcn.01004188
test eax, eax
je 0x10048a0
push edi
lea eax, [ebp + 0x5b8]
push eax
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
je 0x10048a0
lea eax, [ebp + 0x4b4]
push eax
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1470000
push edi
call dword [0x100a044]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x5b8]
push eax
push edi
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
jne 0x10048a0
mov dword [ebp - 0x78], ebx
cmp dword [ebp - 0x78], ebx
je 0x10048ed
lea eax, [ebp + 0x4b4]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
pop ecx
lea edi, [ebp + 0x4b4]
lea esi, [ebp + 0x6bc]
mov cl, byte [esi]
mov al, cl
cmp cl, byte [edi]
jne 0x10048e1
cmp al, bl
je 0x10048dd
mov cl, byte [esi + 1]
mov al, cl
cmp cl, byte [edi + 1]
jne 0x10048e1
inc esi
inc esi
inc edi
inc edi
cmp al, bl
jne 0x10048bf
xor eax, eax
jmp 0x10048e6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10048ed
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp - 0x78]
and dword [ebp - 0x80], eax
push 0x10024e0
push dword [ebp - 0x7c]
call fcn.01005b36
cmp eax, ebx
mov dword [ebp - 0x7c], eax
jne 0x1004786
call fcn.010034a8
mov edi, 0x10024d8
push edi
push dword [ebp + 0x7cc]
call fcn.01005c63
jmp 0x1004a58
push 0x3e8
lea ecx, [ebp + 0xcc]
push ecx
push 1
push eax
call fcn.01006330
test eax, eax
je 0x1004a4f
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.01002a1f
lea eax, [ebp + 0x6bc]
push 0x10024f0
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1004a4f
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
je 0x1004a4f
lea eax, [ebp + 0x6bc]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
pop ecx
mov esi, eax
pop ecx
inc esi
test byte [ebp - 0x74], 0x10
jne 0x1004a31
cmp dword [0x100a194], ebx
jne 0x10049ce
lea eax, [ebp - 0x48]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x48]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10049d7
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
jne 0x1004a31
push 0x1f4
call dword [sym.imp.kernel32.dll_Sleep]
push 0x80
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
jne 0x1004a31
lea eax, [ebp + 0x6bc]
push eax
push 0x100a008
call fcn.01004163
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x10049a7
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_FindClose]
push edi
push dword [ebp - 0x7c]
call fcn.01005b36
cmp eax, ebx
mov dword [ebp - 0x7c], eax
jne 0x1004926
push 0x10024d0
mov esi, 0x1002364
push esi
push dword [ebp + 0x7cc]
call fcn.01006330
cmp eax, ebx
mov edi, 0x100226b
je 0x1004ae9
push 0x3e8
lea ecx, [ebp + 0xcc]
push ecx
push eax
call fcn.01005c24
test eax, eax
je 0x1004ae9
lea eax, [ebp + 0xcc]
push 0x3d
push eax
call dword [sym.imp.msvcrt.dll_strchr]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x100ad5c], eax
je 0x1004b78
jmp 0x1004abd
cmp cl, 0x20
jg 0x1004ac9
inc eax
mov dword [0x100ad5c], eax
mov cl, byte [eax]
cmp cl, bl
jne 0x1004ab8
push eax
mov dword [0x100aaec], edi
call fcn.01003b2f
mov dword [0x100ad5c], eax
mov dword [0x101b0c4], 0x100ad60
jmp 0x1004b78
push 0x10024cc
push esi
push dword [ebp + 0x7cc]
call fcn.01006330
cmp eax, ebx
je 0x1004b78
push 0x3e8
lea ecx, [ebp + 0xcc]
push ecx
push 1
push eax
call fcn.01006330
test eax, eax
je 0x1004b78
lea eax, [ebp + 0xcc]
push eax
call fcn.01003b2f
mov dword [0x100aaec], eax
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.01002a1f
lea eax, [ebp + 0x6bc]
push eax
call fcn.01003b2f
mov dword [0x100ad5c], eax
lea eax, [ebp + 0x6bc]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x1004b67
mov byte [eax], bl
lea eax, [ebp + 0x6bc]
push eax
call fcn.01003b2f
mov dword [0x101b0c4], eax
cmp dword [0x100a194], ebx
jne 0x1004b92
push edi
push ebx
push 0xc
push 0x68
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [ebp + 0x7c0]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
pop ebx
call fcn.01005d91
add ebp, 0x7c4
leave
ret 4