Function at 0x40c0a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46bbf7
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x491d88]
xor eax, esp
mov dword [esp + 0x18c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491d88]
xor eax, esp
push eax
lea eax, [esp + 0x1a4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1b4]
mov esi, dword [esp + 0x1b8]
mov ebp, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
call fcn.00441227
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40c10f
push 0x80004005
call fcn.00401110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x1ac], ebx
call fcn.00441227
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40c140
push 0x80004005
call fcn.00401110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x4745b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b0], 1
call fcn.00404450
cmp dword [esi + 0x18], 0x10
mov byte [esp + 0x1ac], 2
jb 0x40c179
mov ecx, dword [esi + 4]
jmp 0x40c17c
lea ecx, [esi + 4]
mov edx, dword [eax]
push edx
push ecx
lea eax, [esp + 0x1c]
push 0x47345c
push eax
call fcn.00403c10
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x1ac], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x60]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x40c255
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1ac], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1ac], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c225
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18c]
xor ecx, esp
call fcn.0045309e
add esp, 0x19c
ret 8
mov esi, dword [esp + 0x24]
cmp byte [esp + 0x8c], 0x2e
jne 0x40c269
mov esi, 1
jmp 0x40c38d
lea eax, [esp + 0x8c]
push eax
mov ecx, esi
call fcn.00405780
push eax
lea ecx, [esp + 0x24]
push 0x47345c
push ecx
call fcn.00403c10
mov edi, dword [esp + 0x2c]
add esp, 0x10
cmp dword [esp + 0x60], 0x10
mov eax, edi
jne 0x40c30b
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
lea edx, [eax + 1]
jmp 0x40c2b0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40c2b0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x4c]
call fcn.00403dd0
mov eax, dword [esp + 0x20]
push 1
lea edx, [esp + 0x48]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x1b8], 3
call fcn.0040bbd0
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp dword [esp + 0x5c], 0x10
mov byte [esp + 0x1ac], 1
jb 0x40c384
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0042f9ca
add esp, 4
jmp 0x40c384
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x40c320
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x30]
call fcn.00403dd0
mov eax, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x2c]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x1b8], 4
call fcn.0040bbd0
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp dword [esp + 0x40], 0x10
mov byte [esp + 0x1ac], 1
jb 0x40c374
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042f9ca
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
cmp esi, ebx
je 0x40c3a5
cmp dword [ebp + 0x18], ebx
jne 0x40c3a5
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c251
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1ac], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1ac], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40c227