Function at 0x1004433
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.01005d36
xor ebx, ebx
jmp 0x1004663
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push ebx
push edi
mov dword [ebp - 0x78], ebx
call fcn.01005c2f
test eax, eax
je 0x1004656
cmp dword [0x100a194], ebx
jne 0x10044ac
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.01002ab9
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push 1
push edi
call fcn.01005c2f
test eax, eax
je 0x1004656
lea eax, [ebp + 0x4b4]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.01002ab9
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push 2
push edi
call fcn.01005c2f
test eax, eax
je 0x100452a
lea eax, [ebp + 0x5b8]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.01002ab9
jmp 0x1004530
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 0x1004656
push ebx
push ebx
lea eax, [ebp + 0x6bc]
push eax
call fcn.0100431b
lea eax, [ebp + 0x6bc]
push eax
push 0x100a008
call fcn.01004223
push 0x80
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 0x7cc]
call fcn.0100344b
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 0x1004656
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1004656
push 0x100a080
push 0x100ab00
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0x5b8]
push eax
call fcn.010042d1
test eax, eax
je 0x1004656
cmp byte [0x100a080], bl
mov ecx, 0x100a080
jne 0x10045fe
lea ecx, [ebp + 0x6bc]
cmp byte [0x100ab00], bl
je 0x100460d
mov eax, 0x100ab00
jmp 0x100461f
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.0100356e
test eax, eax
jne 0x1004656
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp - 0x78]
and dword [ebp - 0x80], eax
push esi
push edi
call fcn.01005c09
mov edi, eax
cmp edi, ebx
jne 0x100446e
push 0x10024e8
push dword [ebp + 0x7cc]
call fcn.01005d36
cmp eax, ebx
mov dword [ebp - 0x7c], eax
mov edi, 0x100ab00
je 0x1004829
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.01005c2f
test eax, eax
je 0x100480b
cmp dword [0x100a194], ebx
jne 0x10046d3
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.01002ab9
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push 1
push dword [ebp - 0x7c]
call fcn.01005c2f
test eax, eax
je 0x100480b
lea eax, [ebp + 0x5b8]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.01002ab9
lea eax, [ebp + 0x6bc]
push 0x10024f0
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x100480b
push ebx
push ebx
lea eax, [ebp + 0x6bc]
push eax
call fcn.0100431b
lea eax, [ebp + 0x6bc]
push eax
push 0x100a008
call fcn.01004223
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 0x10047f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10047f9
push 0x100a080
push edi
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0x5b8]
push eax
call fcn.010042d1
test eax, eax
je 0x10047f9
cmp byte [0x100a080], bl
mov ecx, 0x100a080
jne 0x10047c1
lea ecx, [ebp + 0x6bc]
cmp byte [0x100ab00], bl
mov eax, edi
jne 0x10047d1
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.0100356e
test eax, eax
jne 0x10047f9
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.01005c09
cmp eax, ebx
mov dword [ebp - 0x7c], eax
jne 0x1004693
push 0x10024e0
push dword [ebp + 0x7cc]
call fcn.01005d36
cmp eax, ebx
mov dword [ebp - 0x7c], eax
je 0x10049cb
jmp 0x100484b
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.01005c2f
test eax, eax
je 0x10049ad
cmp dword [0x100a194], ebx
jne 0x1004890
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.01002ab9
push esi
lea eax, [ebp + 0x6bc]
push eax
push 1
push dword [ebp - 0x7c]
call fcn.01005c2f
test eax, eax
je 0x10049ad
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
pop ecx
push dword [ebp + 0x7cc]
call fcn.0100344b
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 0x1004965
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1004960
push edi
lea eax, [ebp + 0x5b8]
push eax
call fcn.01004248
test eax, eax
je 0x1004960
push edi
lea eax, [ebp + 0x5b8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x1004960
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 0x1004960
mov dword [ebp - 0x78], ebx
cmp dword [ebp - 0x78], ebx
je 0x10049ad
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 0x10049a1
cmp al, bl
je 0x100499d
mov cl, byte [esi + 1]
mov al, cl
cmp cl, byte [edi + 1]
jne 0x10049a1
inc esi
inc esi
inc edi
inc edi
cmp al, bl
jne 0x100497f
xor eax, eax
jmp 0x10049a6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10049ad
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp - 0x78]
and dword [ebp - 0x80], eax
push 0x10024e0
push dword [ebp - 0x7c]
call fcn.01005c09
cmp eax, ebx
mov dword [ebp - 0x7c], eax
jne 0x1004846
call fcn.01003542
mov edi, 0x10024d8
push edi
push dword [ebp + 0x7cc]
call fcn.01005d36
jmp 0x1004b18
push 0x3e8
lea ecx, [ebp + 0xcc]
push ecx
push 1
push eax
call fcn.01005c2f
test eax, eax
je 0x1004b0f
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.01002ab9
lea eax, [ebp + 0x6bc]
push 0x10024f0
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1004b0f
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 0x1004b0f
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 0x1004af1
cmp dword [0x100a194], ebx
jne 0x1004a8e
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 0x1004a97
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1004af1
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 0x1004af1
lea eax, [ebp + 0x6bc]
push eax
push 0x100a008
call fcn.01004223
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1004a67
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push dword [ebp - 0x7c]
call fcn.01005c09
cmp eax, ebx
mov dword [ebp - 0x7c], eax
jne 0x10049e6
push 0x10024d0
mov esi, 0x1002364
push esi
push dword [ebp + 0x7cc]
call fcn.01005d54
cmp eax, ebx
mov edi, 0x100226b
je 0x1004ba9
push 0x3e8
lea ecx, [ebp + 0xcc]
push ecx
push eax
call 0x1005cf7
test eax, eax
je 0x1004ba9
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 0x1004c38
jmp 0x1004b7d
cmp cl, 0x20
jg 0x1004b89
inc eax
mov dword [0x100ad5c], eax
mov cl, byte [eax]
cmp cl, bl
jne 0x1004b78
push eax
mov dword [0x100aaec], edi
call fcn.01003bef
mov dword [0x100ad5c], eax
mov dword [0x101b0c4], 0x100ad60
jmp 0x1004c38
push 0x10024cc
push esi
push dword [ebp + 0x7cc]
call fcn.01005d54
cmp eax, ebx
je 0x1004c38
push 0x3e8
lea ecx, [ebp + 0xcc]
push ecx
push 1
push eax
call fcn.01005c2f
test eax, eax
je 0x1004c38
lea eax, [ebp + 0xcc]
push eax
call fcn.01003bef
mov dword [0x100aaec], eax
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.01002ab9
lea eax, [ebp + 0x6bc]
push eax
call fcn.01003bef
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 0x1004c27
mov byte [eax], bl
lea eax, [ebp + 0x6bc]
push eax
call fcn.01003bef
mov dword [0x101b0c4], eax
cmp dword [0x100a194], ebx
jne 0x1004c52
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.01005e64
add ebp, 0x7c4
leave
ret 4