Function at 0x1004353
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, 0x10024f0
push esi
push dword [ebp + 0x7cc]
mov dword [ebp + 0x7c0], eax
mov dword [ebp - 0x80], 1
call fcn.01005b44
xor ebx, ebx
jmp 0x1004583
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push ebx
push edi
mov dword [ebp - 0x78], ebx
call fcn.01005a7c
test eax, eax
je 0x1004576
cmp dword [0x100a194], ebx
jne 0x10043cc
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.010029ff
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push 1
push edi
call fcn.01005a7c
test eax, eax
je 0x1004576
lea eax, [ebp + 0x4b4]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.010029ff
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push 2
push edi
call fcn.01005a7c
test eax, eax
je 0x100444a
lea eax, [ebp + 0x5b8]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.010029ff
jmp 0x1004450
mov byte [ebp + 0x5b8], bl
lea eax, [ebp + 0x6bc]
push 0x10024e8
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1004576
push ebx
push ebx
lea eax, [ebp + 0x6bc]
push eax
call fcn.0100423b
lea eax, [ebp + 0x6bc]
push eax
push 0x100a008
call fcn.01004143
push 0x80
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 0x7cc]
call fcn.01003391
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 0x1004576
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1004576
push 0x100a080
push 0x100ab00
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0x5b8]
push eax
call fcn.010041f1
test eax, eax
je 0x1004576
cmp byte [0x100a080], bl
mov ecx, 0x100a080
jne 0x100451e
lea ecx, [ebp + 0x6bc]
cmp byte [0x100ab00], bl
je 0x100452d
mov eax, 0x100ab00
jmp 0x100453f
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.010034b4
test eax, eax
jne 0x1004576
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp - 0x78]
and dword [ebp - 0x80], eax
push esi
push edi
call fcn.01005a56
mov edi, eax
cmp edi, ebx
jne 0x100438e
push 0x10024e0
push dword [ebp + 0x7cc]
call fcn.01005b44
cmp eax, ebx
mov dword [ebp - 0x7c], eax
mov edi, 0x100ab00
je 0x1004749
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.01005a7c
test eax, eax
je 0x100472b
cmp dword [0x100a194], ebx
jne 0x10045f3
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.010029ff
push 0x3e8
lea eax, [ebp + 0xcc]
push eax
push 1
push dword [ebp - 0x7c]
call fcn.01005a7c
test eax, eax
je 0x100472b
lea eax, [ebp + 0x5b8]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.010029ff
lea eax, [ebp + 0x6bc]
push 0x10024e8
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x100472b
push ebx
push ebx
lea eax, [ebp + 0x6bc]
push eax
call fcn.0100423b
lea eax, [ebp + 0x6bc]
push eax
push 0x100a008
call fcn.01004143
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 0x1004719
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1004719
push 0x100a080
push edi
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0x5b8]
push eax
call fcn.010041f1
test eax, eax
je 0x1004719
cmp byte [0x100a080], bl
mov ecx, 0x100a080
jne 0x10046e1
lea ecx, [ebp + 0x6bc]
cmp byte [0x100ab00], bl
mov eax, edi
jne 0x10046f1
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.010034b4
test eax, eax
jne 0x1004719
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 0x10024e0
push dword [ebp - 0x7c]
call fcn.01005a56
cmp eax, ebx
mov dword [ebp - 0x7c], eax
jne 0x10045b3
push 0x10024d8
push dword [ebp + 0x7cc]
call fcn.01005b44
cmp eax, ebx
mov dword [ebp - 0x7c], eax
je 0x10048eb
jmp 0x100476b
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.01005a7c
test eax, eax
je 0x10048cd
cmp dword [0x100a194], ebx
jne 0x10047b0
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.010029ff
push esi
lea eax, [ebp + 0x6bc]
push eax
push 1
push dword [ebp - 0x7c]
call fcn.01005a7c
test eax, eax
je 0x10048cd
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
pop ecx
push dword [ebp + 0x7cc]
call fcn.01003391
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 0x1004885
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1004880
push edi
lea eax, [ebp + 0x5b8]
push eax
call fcn.01004168
test eax, eax
je 0x1004880
push edi
lea eax, [ebp + 0x5b8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x1004880
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 0x1004880
mov dword [ebp - 0x78], ebx
cmp dword [ebp - 0x78], ebx
je 0x10048cd
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 0x10048c1
cmp al, bl
je 0x10048bd
mov cl, byte [esi + 1]
mov al, cl
cmp cl, byte [edi + 1]
jne 0x10048c1
inc esi
inc esi
inc edi
inc edi
cmp al, bl
jne 0x100489f
xor eax, eax
jmp 0x10048c6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10048cd
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp - 0x78]
and dword [ebp - 0x80], eax
push 0x10024d8
push dword [ebp - 0x7c]
call fcn.01005a56
cmp eax, ebx
mov dword [ebp - 0x7c], eax
jne 0x1004766
call fcn.01003488
mov edi, 0x10024d0
push edi
push dword [ebp + 0x7cc]
call fcn.01005b44
jmp 0x1004a38
push 0x3e8
lea ecx, [ebp + 0xcc]
push ecx
push 1
push eax
call fcn.01005a7c
test eax, eax
je 0x1004a2f
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.010029ff
lea eax, [ebp + 0x6bc]
push 0x10024e8
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1004a2f
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 0x1004a2f
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 0x1004a11
cmp dword [0x100a194], ebx
jne 0x10049ae
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 0x10049b7
lea eax, [ebp + 0x6bc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1004a11
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 0x1004a11
lea eax, [ebp + 0x6bc]
push eax
push 0x100a008
call fcn.01004143
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1004987
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push dword [ebp - 0x7c]
call fcn.01005a56
cmp eax, ebx
mov dword [ebp - 0x7c], eax
jne 0x1004906
push 0x10024cc
push 0x1002364
push dword [ebp + 0x7cc]
call fcn.01005b62
cmp eax, ebx
je 0x1004ad6
push 0x3e8
lea ecx, [ebp + 0xcc]
push ecx
push 1
push eax
call fcn.01005a7c
test eax, eax
je 0x1004ad6
lea eax, [ebp + 0xcc]
push eax
call fcn.01003b0f
mov dword [0x100aaec], eax
lea eax, [ebp + 0x6bc]
push eax
lea eax, [ebp + 0xcc]
push eax
push 0x100ad60
call fcn.010029ff
lea eax, [ebp + 0x6bc]
push eax
call fcn.01003b0f
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 0x1004ac5
mov byte [eax], bl
lea eax, [ebp + 0x6bc]
push eax
call fcn.01003b0f
mov dword [0x101b0c4], eax
cmp dword [0x100a194], ebx
jne 0x1004af4
push 0x100226b
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.01005c72
add ebp, 0x7c4
leave
ret 4