Function at 0x40a930
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x445c39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, dword [esp + 0x17c]
add ebp, 0xfffffff0
push ebp
mov dword [esp + 0x170], 0
call fcn.00401610
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x174], 1
call fcn.00408f70
mov eax, dword [eax]
push 0x4493a8
push eax
call fcn.00415bbd
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40a9d5
push 1
push 0x4493a8
lea ecx, [esp + 0x1c]
call fcn.00409060
push 3
push 0x4493b0
lea ecx, [esp + 0x1c]
call fcn.00409060
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x40aa06
lea eax, [esi - 0x10]
jmp 0x40abef
mov eax, dword [esp + 0x178]
mov ecx, dword [eax + 0x1c]
push 0
push 0
push 0x1009
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [esp + 0x24], 0x10
je 0x40abb5
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x14]
call fcn.00407330
mov eax, dword [esp + 0x10]
push 0x4493a0
push eax
mov byte [esp + 0x174], 2
call fcn.00415bbd
add esp, 8
test eax, eax
je 0x40ab8d
mov ecx, dword [esp + 0x10]
push 0x4493ac
push ecx
call fcn.00415bbd
add esp, 8
test eax, eax
je 0x40ab8d
cmp dword [esp + 0x24], 0x16
je 0x40ab8d
mov edx, dword [esp + 0x180]
mov ecx, dword [esp + 0x174]
push 0xffff0003
push edx
push 0
push 0
push 0
push 6
push 1
lea eax, [esp + 0x6c]
push eax
push 0x23
call fcn.00423470
push ebp
mov esi, eax
call fcn.00401610
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x174], 3
call fcn.00408f70
mov eax, dword [eax]
push 0x4493a8
push eax
call fcn.00415bbd
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ab07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40ab19
push 0x4493a8
lea ecx, [esp + 0x1c]
call fcn.0040a170
lea eax, [esp + 0x50]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40ab20
sub eax, ecx
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
call fcn.00409060
mov eax, dword [edi + 0xe94]
push 0xffff0002
push esi
push 0
push 0
push 0
push 0
push 0
lea ecx, [eax + eax*4]
shl ecx, 4
push 0x448ae0
lea ecx, [ecx + edi + 0x200]
push 0x23
call fcn.00423470
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ab8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40abc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40abc9
mov ecx, dword [esp + 0x178]
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.0040a630
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40aa20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x16c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x16c], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ac31
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret 0x10