Function at 0x418560
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51ddbf
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x597f54]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebp
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
push 0x52f0fc
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x184], 0
call fcn.0040ad38
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x178], 1
call fcn.00405829
push 0x5311c0
lea edx, [esp + 0x184]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x184], 2
call fcn.0040ad38
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418622
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0xffffffff
je 0x418736
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040ad38
mov eax, dword [esp + 0x1c]
push eax
mov byte [esp + 0x188], 3
mov esi, eax
call fcn.004e3e28
add esp, 0x10
test eax, eax
je 0x418670
call fcn.004e6d59
mov ecx, dword [eax]
push 0
push 0
push esi
push ecx
lea ecx, [esp + 0x30]
call fcn.00489a20
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x2c]
push edx
push edi
call ebp
test eax, eax
je 0x41870e
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.0040ad38
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 4
call fcn.00402e5a
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x178], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4186d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
push esi
call fcn.004e3e28
add esp, 4
test eax, eax
je 0x4186fe
call fcn.004e6d59
mov ecx, dword [eax]
push 0
push 0
push esi
push ecx
lea ecx, [esp + 0x30]
call fcn.00489a20
lea edx, [esp + 0x2c]
push edx
push edi
call ebp
test eax, eax
jne 0x418686
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x178], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418736
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x1c], vtable.XFileSys.0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x178], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41876d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x178], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418795
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x178], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4187bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x180]
add eax, 0xfffffff0
mov dword [esp + 0x178], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4187eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.004e2867
add esp, 0x16c
ret