Function at 0x4a2170
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4efd9c
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x2e4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2f4]
lea esi, [esp + 0x70]
call fcn.00481700
xor edi, edi
lea esi, [esp + 0x38]
mov dword [esp + 0x2ec], edi
call fcn.004817d0
push 0xffffffffffffffff
mov byte [esp + 0x2f0], 1
xor eax, eax
push edi
lea ecx, [esp + 0x40]
mov word [esp + 0x28], ax
mov esi, 7
push ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
call fcn.00401850
push esi
mov ebx, 2
push str..data
lea eax, [esp + 0x24]
mov byte [esp + 0x2f4], bl
call fcn.004088a0
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x4a2224
lea eax, [esp + 0x20]
lea edx, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x4a229c
mov ebx, 8
cmp dword [esp + 0x34], ebx
jb 0x4a2254
mov eax, dword [esp + 0x20]
push eax
call fcn.004c8f17
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov word [esp + 0x20], cx
cmp dword [esp + 0x50], ebx
jb 0x4a2276
mov edx, dword [esp + 0x3c]
push edx
call fcn.004c8f17
add esp, 4
xor eax, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], ax
cmp dword [esp + 0x88], ebx
jb 0x4a23c1
mov ecx, dword [esp + 0x74]
push ecx
jmp 0x4a23b9
test byte [esp + 0x8c], 0x10
jne 0x4a233c
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x40]
xor edx, edx
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], edi
mov word [esp + 0x64], dx
call fcn.00401850
push 1
push 0x4fea60
lea eax, [esp + 0x5c]
mov byte [esp + 0x2f4], 3
call fcn.004088a0
lea eax, [esp + 0xb8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, ebx
cmp cx, di
jne 0x4a22f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xbc]
push ecx
lea eax, [esp + 0x5c]
call fcn.004088a0
lea edx, [esp + 0x54]
push edx
lea eax, [ebp + 0x94]
push eax
call fcn.00403d30
mov byte [esp + 0x2ec], bl
cmp dword [esp + 0x6c], 8
jb 0x4a233c
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004c8f17
add esp, 4
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4a229c
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, 8
cmp dword [esp + 0x34], ebx
jb 0x4a237a
mov edx, dword [esp + 0x20]
push edx
call fcn.004c8f17
add esp, 4
xor eax, eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
cmp dword [esp + 0x50], ebx
jb 0x4a239c
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004c8f17
add esp, 4
xor edx, edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], dx
cmp dword [esp + 0x88], ebx
jb 0x4a23c1
mov eax, dword [esp + 0x74]
push eax
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0x2e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.004c8f08
add esp, 0x2dc
ret 4