Function at 0x4089a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4628cc
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x154], eax
push ebp
push esi
push edi
mov eax, dword [0x4895f0]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov esi, dword [esp + 0x178]
mov eax, dword [esp + 0x17c]
push 4
push esi
mov dword [esp + 0x20], eax
call fcn.00461a2d
add esp, 8
cmp eax, 0xffffffff
je 0x408c6c
push esi
lea ecx, [esp + 0x18]
call fcn.004080b0
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x174], 0
call fcn.004080b0
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx - 0xc]
lea eax, [edi - 1]
test eax, eax
mov byte [esp + 0x170], 1
jl 0x408b2f
cmp eax, edi
jg 0x408b2f
mov al, byte [eax + ecx]
cmp al, 0x5c
je 0x408ad7
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, edx
jge 0x408a6e
push esi
lea ecx, [esp + 0x14]
call fcn.00403760
mov ecx, dword [esp + 0x10]
test esi, esi
mov byte [edi + ecx], 0x5c
jl 0x408b2f
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x408b2f
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x10]
mov byte [esi + ecx], 0
mov edx, dword [esp + 0x14]
mov edi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x408abb
push esi
lea ecx, [esp + 0x18]
call fcn.00403760
mov edx, dword [esp + 0x14]
test esi, esi
mov byte [edi + edx], 0x5c
jl 0x408b2f
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x408b2f
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
mov byte [esi + edx], 0
push 5
push str..dmp
lea ecx, [esp + 0x18]
call fcn.00405c20
push 0x13c
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x30], 0
call fcn.0044cf00
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
call fcn.004294c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408b39
push 0x80004005
call fcn.00403400
push 0x80070057
call fcn.00403400
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp ebp, 0xffffffff
mov byte [esp + 0x170], 2
je 0x408be9
xor edi, edi
xor esi, esi
mov edi, edi
test byte [esp + 0x24], 0x10
jne 0x408bce
mov eax, dword [esp + 0x2c]
cmp eax, esi
mov ecx, dword [esp + 0x28]
ja 0x408b79
jne 0x408bce
cmp ecx, edi
jbe 0x408bce
mov edi, ecx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x18]
mov esi, eax
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00406a40
add esp, 0xc
mov ecx, dword [esp + 0x18]
push eax
mov byte [esp + 0x174], 3
call fcn.00405dc0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x170], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408bce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408b60
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
add eax, 0xfffffff0
cmp dword [ecx - 0xc], 0
mov byte [esp + 0x170], 1
jne 0x408c71
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408c19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x170], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c41
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 dword [esp + 0x170], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x408cdf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x170], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408cb2
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 dword [esp + 0x170], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408cdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.0044ce74
add esp, 0x164
ret 8