Function at 0x40cc53
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8d0
push ebx
push esi
push edi
lea esi, [ebp - 0x26c]
call fcn.00422702
lea ecx, [ebp - 0xba]
call fcn.0042f596
xor ebx, ebx
cmp eax, ebx
jl 0x40ccc7
push 0x14
lea ecx, [ebp - 0x54]
push ecx
push eax
lea eax, [ebp - 0xba]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jle 0x40ccc7
lea ecx, [ebp + eax*2 - 0x54]
cmp word [ecx - 2], bx
je 0x40cca9
cmp eax, 0x14
jge 0x40ccc7
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x54]
push eax
push 0x43ef40
lea eax, [ebp - 0x474]
push eax
call fcn.00422ccf
test eax, eax
setne al
cmp al, bl
jne 0x40ccd0
xor eax, eax
mov word [ebp - 0x474], ax
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [ebp - 0x82]
push 0xf
lea esi, [ebp - 0x2c]
pop eax
call fcn.00413de7
xor edi, 0xff119933
push edi
mov eax, esi
push eax
push 0x14
pop ebx
lea edi, [ebp - 0x7c]
call fcn.0041bb91
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x40ce85
mov eax, edi
push eax
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x67c]
push eax
call fcn.00422ccf
test eax, eax
je 0x40ce85
lea eax, [ebp - 0x8cc]
push eax
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x40ce6e
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x8a0]
push eax
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x67c]
push eax
call fcn.00422ccf
test eax, eax
je 0x40ce33
push 0x80
push 3
push 3
push 0x80000000
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 8]
call fcn.0042e86f
test al, al
je 0x40ce33
lea eax, [ebp - 8]
push eax
lea esi, [ebp - 0x1c]
xor bl, bl
call fcn.0042e8cf
test al, al
je 0x40ce0e
mov esi, dword [ebp - 0x1c]
mov eax, esi
or eax, dword [ebp - 0x18]
je 0x40ce0e
cmp dword [ebp - 0x18], 0
ja 0x40ce0e
jb 0x40cdc7
cmp esi, 0xa00000
ja 0x40ce0e
lea eax, [esi + 2]
test eax, eax
je 0x40ce10
call fcn.00421cb4
mov edi, eax
test edi, edi
je 0x40ce10
test esi, esi
jns 0x40cdea
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x40cdf5
push esi
push edi
lea eax, [ebp - 8]
push eax
call fcn.0042e95d
cmp eax, esi
jne 0x40ce55
push esi
push edi
lea eax, [ebp - 0x26c]
call fcn.00422a13
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov dword [ebp - 0xc], edi
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 8], 0xffffffff
test bl, bl
je 0x40ce2d
lea eax, [ebp - 0x67c]
push eax
call fcn.0042ec57
cmp dword [ebp - 0xc], 0
jne 0x40ce5d
lea eax, [ebp - 8]
call fcn.0042e85c
lea eax, [ebp - 0x8cc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40cd50
jmp 0x40ce65
push edi
call fcn.00421ce7
jmp 0x40ce10
lea eax, [ebp - 8]
call fcn.0042e85c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x1ee
lea eax, [ebp - 0x26c]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40ce79
mov eax, dword [ebp - 0xc]
jmp 0x40ce99
mov ecx, 0x1ee
lea eax, [ebp - 0x26c]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40ce90
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4