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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x100c028]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, 0x1002548
push esi
push eax
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x844], 1
call fcn.010061d3
xor ebx, ebx
jmp 0x10048fc
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push ebx
push edi
mov dword [ebp - 0x83c], ebx
call fcn.010060be
test eax, eax
je 0x10048e9
cmp dword [0x100c4b4], ebx
jne 0x1004736
lea eax, [ebp - 0x6f8]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100ce04]
call dword [sym.imp.USER32.DLL_SendDlgItemMessageA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d080
call fcn.01002bc4
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push 1
push edi
call fcn.010060be
test eax, eax
je 0x10048e9
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d080
call fcn.01002bc4
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push 2
push edi
call fcn.010060be
test eax, eax
je 0x10047b4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d080
call fcn.01002bc4
jmp 0x10047ba
mov byte [ebp - 0x20c], bl
lea eax, [ebp - 0x108]
push 0x1002540
push eax
call dword [sym.imp.MSVCRT.DLL_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x10048e9
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.01004590
lea eax, [ebp - 0x108]
push eax
push 0x100c004
call fcn.0100447f
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push dword [ebp - 0x848]
call fcn.0100360c
push ebx
lea eax, [ebp - 0x108]
push eax
mov al, byte [ebp - 0x20c]
neg al
lea ecx, [ebp - 0x20c]
sbb eax, eax
and eax, ecx
push eax
lea eax, [ebp - 0x310]
push eax
call dword [0x100c040]
cmp eax, ebx
mov dword [ebp - 0x83c], eax
jne 0x10048e9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x10048e9
push 0x100c3a0
push 0x100ce20
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0100453f
test eax, eax
je 0x10048e9
cmp byte [0x100c3a0], bl
mov ecx, 0x100c3a0
jne 0x100488b
lea ecx, [ebp - 0x108]
cmp byte [0x100ce20], bl
je 0x100489a
mov eax, 0x100ce20
jmp 0x10048ac
mov al, byte [ebp - 0x20c]
neg al
lea edx, [ebp - 0x20c]
sbb eax, eax
and eax, edx
push ebx
push ecx
push eax
lea eax, [ebp - 0x310]
push eax
call dword [0x100c040]
push 0x100c3a0
mov dword [ebp - 0x83c], eax
push 0x100ce20
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0100373c
test eax, eax
jne 0x10048e9
mov dword [ebp - 0x83c], ebx
mov eax, dword [ebp - 0x83c]
and dword [ebp - 0x844], eax
push esi
push edi
call fcn.0100608f
mov edi, eax
cmp edi, ebx
jne 0x10046f5
push 0x1002538
push dword [ebp - 0x848]
call fcn.010061d3
cmp eax, ebx
mov dword [ebp - 0x840], eax
mov edi, 0x100ce20
je 0x1004ae3
mov esi, dword [sym.imp.KERNEL32.DLL_CopyFileA]
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push ebx
push dword [ebp - 0x840]
mov dword [ebp - 0x83c], ebx
call fcn.010060be
test eax, eax
je 0x1004ab9
cmp dword [0x100c4b4], ebx
jne 0x1004975
lea eax, [ebp - 0x6f8]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100ce04]
call dword [sym.imp.USER32.DLL_SendDlgItemMessageA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d080
call fcn.01002bc4
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push 1
push dword [ebp - 0x840]
call fcn.010060be
test eax, eax
je 0x1004ab9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d080
call fcn.01002bc4
lea eax, [ebp - 0x108]
push 0x1002540
push eax
call dword [sym.imp.MSVCRT.DLL_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1004ab9
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.01004590
lea eax, [ebp - 0x108]
push eax
push 0x100c004
call fcn.0100447f
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x83c], eax
jne 0x1004aa7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x1004aa7
push 0x100c3a0
push edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0100453f
test eax, eax
je 0x1004aa7
cmp byte [0x100c3a0], bl
mov ecx, 0x100c3a0
jne 0x1004a69
lea ecx, [ebp - 0x108]
cmp byte [0x100ce20], bl
mov eax, edi
jne 0x1004a79
lea eax, [ebp - 0x20c]
push ebx
push ecx
push eax
call esi
push 0x100c3a0
mov dword [ebp - 0x83c], eax
push edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0100373c
test eax, eax
jne 0x1004aa7
mov dword [ebp - 0x83c], ebx
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov eax, dword [ebp - 0x83c]
and dword [ebp - 0x844], eax
push 0x1002538
push dword [ebp - 0x840]
call fcn.0100608f
cmp eax, ebx
mov dword [ebp - 0x840], eax
jne 0x100492f
push 0x1002530
push dword [ebp - 0x848]
call fcn.010061d3
cmp eax, ebx
mov dword [ebp - 0x840], eax
je 0x1004cac
jmp 0x1004b08
mov edi, 0x100ce20
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push ebx
push dword [ebp - 0x840]
mov esi, 0x104
mov dword [ebp - 0x83c], ebx
call fcn.010060be
test eax, eax
je 0x1004c82
cmp dword [0x100c4b4], ebx
jne 0x1004b53
lea eax, [ebp - 0x6f8]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100ce04]
call dword [sym.imp.USER32.DLL_SendDlgItemMessageA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d080
call fcn.01002bc4
push esi
lea eax, [ebp - 0x108]
push eax
push 1
push dword [ebp - 0x840]
call fcn.010060be
test eax, eax
je 0x1004c82
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCRT.DLL__strlwr]
pop ecx
push dword [ebp - 0x848]
call fcn.0100360c
lea eax, [ebp - 0x310]
push eax
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1470000
lea eax, [ebp - 0x20c]
push eax
call dword [0x100c044]
cmp eax, ebx
mov dword [ebp - 0x83c], eax
jne 0x1004c37
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x1004c2f
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010044ad
test eax, eax
je 0x1004c2f
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
je 0x1004c2f
lea eax, [ebp - 0x310]
push eax
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1470000
push edi
call dword [0x100c044]
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
jne 0x1004c2f
mov dword [ebp - 0x83c], ebx
cmp dword [ebp - 0x83c], ebx
je 0x1004c82
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.MSVCRT.DLL__strlwr]
pop ecx
lea edi, [ebp - 0x310]
lea esi, [ebp - 0x108]
mov cl, byte [esi]
mov al, cl
cmp cl, byte [edi]
jne 0x1004c73
cmp al, bl
je 0x1004c6f
mov cl, byte [esi + 1]
mov al, cl
cmp cl, byte [edi + 1]
jne 0x1004c73
inc esi
inc esi
inc edi
inc edi
cmp al, bl
jne 0x1004c51
xor eax, eax
jmp 0x1004c78
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1004c82
mov dword [ebp - 0x83c], ebx
mov eax, dword [ebp - 0x83c]
and dword [ebp - 0x844], eax
push 0x1002530
push dword [ebp - 0x840]
call fcn.0100608f
cmp eax, ebx
mov dword [ebp - 0x840], eax
jne 0x1004b03
call fcn.0100370b
mov edi, 0x1002528
push edi
push dword [ebp - 0x848]
call fcn.010061d3
jmp 0x1004e14
push 0x3e8
lea ecx, [ebp - 0x6f8]
push ecx
push 1
push eax
call fcn.010060be
test eax, eax
je 0x1004e08
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d080
call fcn.01002bc4
lea eax, [ebp - 0x108]
push 0x1002540
push eax
call dword [sym.imp.MSVCRT.DLL_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1004e08
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x83c], eax
je 0x1004e08
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.DLL_strrchr]
pop ecx
mov esi, eax
pop ecx
inc esi
test byte [ebp - 0x838], 0x10
jne 0x1004de1
cmp dword [0x100c4b4], ebx
jne 0x1004d7b
lea eax, [ebp - 0x80c]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100ce04]
call dword [sym.imp.USER32.DLL_SendDlgItemMessageA]
lea eax, [ebp - 0x80c]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1004d87
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x1004de1
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x1004de1
lea eax, [ebp - 0x108]
push eax
push 0x100c004
call fcn.0100447f
lea eax, [ebp - 0x838]
push eax
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x1004d4e
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push edi
push dword [ebp - 0x840]
call fcn.0100608f
cmp eax, ebx
mov dword [ebp - 0x840], eax
jne 0x1004cc7
push 0x1002520
mov esi, 0x10023b4
push esi
push dword [ebp - 0x848]
call fcn.010061f9
cmp eax, ebx
mov edi, 0x10022bb
je 0x1004ea8
push 0x3e8
lea ecx, [ebp - 0x6f8]
push ecx
push eax
call fcn.0100618d
test eax, eax
je 0x1004ea8
lea eax, [ebp - 0x6f8]
push 0x3d
push eax
call dword [sym.imp.MSVCRT.DLL_strchr]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x100d07c], eax
je 0x1004f37
jmp 0x1004e7c
cmp cl, 0x20
jg 0x1004e88
inc eax
mov dword [0x100d07c], eax
mov cl, byte [eax]
cmp cl, bl
jne 0x1004e77
push eax
mov dword [0x100ce0c], edi
call fcn.01003e3a
mov dword [0x100d07c], eax
mov dword [0x101d3e4], 0x100d080
jmp 0x1004f37
push 0x100251c
push esi
push dword [ebp - 0x848]
call fcn.010061f9
cmp eax, ebx
je 0x1004f37
push 0x3e8
lea ecx, [ebp - 0x6f8]
push ecx
push 1
push eax
call fcn.010060be
test eax, eax
je 0x1004f37
lea eax, [ebp - 0x6f8]
push eax
call fcn.01003e3a
mov dword [0x100ce0c], eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d080
call fcn.01002bc4
lea eax, [ebp - 0x108]
push eax
call fcn.01003e3a
mov dword [0x100d07c], eax
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.DLL_strrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x1004f26
mov byte [eax], bl
lea eax, [ebp - 0x108]
push eax
call fcn.01003e3a
mov dword [0x101d3e4], eax
cmp dword [0x100c4b4], ebx
jne 0x1004f51
push edi
push ebx
push 0xc
push 0x68
push dword [0x100ce04]
call dword [sym.imp.USER32.DLL_SendDlgItemMessageA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x844]
pop edi
pop esi
pop ebx
call fcn.010062ff
leave
ret 4