Function at 0x40c960
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5532
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x6fe068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x264], ebx
call fcn.0040af80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x280]
mov eax, dword [esi + 4]
mov dword [ebp - 0x28c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x288], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x280]
mov dword [ebp - method.CVolRefObject.virtual_0], vtable.CWString.0
call dword [eax + 0x44]
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x280]
call fcn.0040b5f0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2bc]
call fcn.0040af80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2bc]
push 0x6e2db8
mov dword [ebp - method.CVolRefObject.virtual_0], vtable.CWString.0
call fcn.0044de00
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2e8]
push 1
push eax
lea ecx, [ebp - 0x290]
call fcn.0044e540
mov ecx, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2b0]
test edx, edx
jne 0x40ca5b
cmp dword [ebp - 0x298], 0
mov edx, 0x6e2dcc
cmovne edx, dword [ebp - 0x2a0]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x40ca6f
cmp dword [ecx + 0x24], eax
mov eax, 0x6e2dcc
je 0x40ca6f
mov eax, dword [ecx + 0x1c]
push edx
push eax
call fcn.004b78fa
add esp, 8
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2e8]
call fcn.0040baa0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2bc]
call fcn.0040baa0
test esi, esi
je 0x40cb1c
push 0x6e2db8
lea edx, [ebp - 0x290]
lea ecx, [ebp - 0x2e8]
call fcn.0044ede0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x290]
mov eax, dword [ecx + 0x44]
cmp eax, fcn.00401060
je 0x40cad4
lea ecx, [ebp - 0x290]
call eax
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x28c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x288], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x280]
call dword [eax + 0x44]
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x280]
call fcn.0040b5f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e8]
call fcn.0040baa0
lea ecx, [ebx + 0xc]
call fcn.00447370
push 0x250
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.004b0540
push edi
lea edx, [ebp - 0x290]
lea ecx, [ebp - 0x2e8]
call fcn.0044ec60
add esp, 0x10
mov byte [ebp - 4], 6
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x40cb64
cmp dword [eax + 0x24], ecx
mov ecx, 0x6e2dcc
je 0x40cb64
mov ecx, dword [eax + 0x1c]
lea eax, [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e8]
call fcn.0040baa0
cmp esi, 0xffffffff
je 0x40cc47
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [ebp - 0x260], 0x10
jne 0x40cc2e
mov ecx, 0x6e2dbc
lea eax, [ebp - 0x234]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cbd6
test dx, dx
je 0x40cbd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cbd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40cbb0
xor eax, eax
jmp 0x40cbdb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40cc2e
mov eax, 0x6e2dc0
lea ecx, [ebp - 0x234]
nop word [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40cc16
test dx, dx
je 0x40cc12
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40cc16
add ecx, 4
add eax, 4
test dx, dx
jne 0x40cbf0
xor eax, eax
jmp 0x40cc1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40cc2e
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebx + 0xc]
call fcn.0040ccb0
lea eax, [ebp - 0x260]
push eax
push esi
call edi
test eax, eax
jne 0x40cb92
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x264]
mov esi, dword [esi + 0x24]
shr esi, 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x290]
call fcn.0040baa0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae58b
mov esp, ebp
pop ebp
ret 0x10