Function at 0x450160
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501f90
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x5732cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
push 0x468ad0
call fcn.004dbbc8
add esp, 4
cmp esi, edi
je 0x4503fe
cmp byte [esi], 0
je 0x4503fe
mov byte [ebp - 0x224], 0
push 0x104
push edi
lea eax, [ebp - 0x223]
push eax
call fcn.004dba80
mov byte [ebp - 0x11c], 0
push 0x104
push edi
lea ecx, [ebp - 0x11b]
push ecx
call fcn.004dba80
mov dword [ebp - 0x364], edi
push 0x13c
push edi
lea edx, [ebp - 0x360]
push edx
call fcn.004dba80
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.004dce29
add esp, 0x30
mov eax, esi
lea edx, [eax + 1]
jmp 0x450220
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450220
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x450249
push 0x104
push 0x514670
lea ecx, [ebp - 0x224]
push ecx
call fcn.004dce29
add esp, 0xc
push 0x104
push 0x518aa8
lea edx, [ebp - 0x224]
push edx
call fcn.004dce29
add esp, 0xc
lea eax, [ebp - 0x364]
push eax
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4503fe
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x450290
push 0x104
push esi
lea edx, [ebp - 0x11c]
push edx
call fcn.004dcb07
add esp, 0xc
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4502b0
sub eax, edx
cmp byte [ebp + eax - 0x11d], 0x5c
je 0x4502dc
push 0x104
push 0x514670
lea eax, [ebp - 0x11c]
push eax
call fcn.004dce29
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x338]
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.004dce29
add esp, 0xc
test byte [ebp - 0x364], 0x10
je 0x450335
push 0x514be8
lea eax, [ebp - 0x338]
push eax
call fcn.004dcc20
add esp, 8
test eax, eax
je 0x4503e1
push 0x514be4
lea ecx, [ebp - 0x338]
push ecx
call fcn.004dcc20
add esp, 8
jmp 0x4503e1
push 0
lea edx, [ebp - 0x370]
push edx
lea eax, [ebp - 0x11c]
push eax
call fcn.0046dc30
add esp, 0xc
test al, al
je 0x45037e
call fcn.0046d080
mov ecx, dword [ebp - 0x36c]
push ecx
mov ecx, dword [ebp - 0x370]
push ecx
push edx
push eax
call fcn.0046d120
add esp, 0x10
cmp eax, 0xd2f00
jb 0x45037e
lea edx, [ebp - 0x11c]
push edx
call edi
push 1
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0046dc30
add esp, 0xc
test al, al
je 0x4503e1
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0044fcf0
mov ecx, eax
call fcn.004a4f10
test al, al
je 0x4503e1
call fcn.0044fcf0
mov edx, 0x437810
test edx, edx
je 0x4503c1
mov dword [eax + 4], 0x437810
lea eax, [ebp - 0x11c]
push eax
call fcn.0044fcf0
mov ecx, eax
call fcn.004a4bf0
test al, al
je 0x4503e1
lea ecx, [ebp - 0x11c]
push ecx
call edi
lea edx, [ebp - 0x364]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x450290
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004db901
mov esp, ebp
pop ebp
ret 4