Function at 0x40c0e8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x492840]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x140
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x144]
push 0
push eax
mov dword [ebp - 0x150], edi
call fcn.0043dc10
push edi
call fcn.0042da83
add esp, 0x10
test eax, eax
jne 0x40c179
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x148], esi
cmp esi, 0xffffffff
je 0x40c179
push 0x114
push 1
call fcn.00447314
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x40c18b
push 0x114
push edi
push str.:5:FindFirstFileOrdered___s___FAILED:_calloc__d__FAILED.
call fcn.0040906e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret
push 0x104
lea esi, [ebx + 0x10]
push edi
push esi
call fcn.0042ee2a
push esi
call fcn.0042e37d
push esi
call fcn.0042e2bc
push esi
call fcn.0042e106
push esi
call fcn.0042c74e
and dword [ebx + 0xc], 0
mov esi, 0x140
and dword [ebx + 4], 0
push esi
push 0x33
mov dword [ebx + 8], 0x32
call fcn.00447314
add esp, 0x24
mov dword [ebx], eax
test eax, eax
jne 0x40c203
mov eax, dword [ebx + 8]
add eax, esi
push eax
push edi
push str.:5:FindFirstFileOrdered___s___FAILED:_calloc2__d__FAILED.
call fcn.0040906e
add esp, 0xc
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call fcn.0044731f
pop ecx
jmp 0x40c179
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x148]
and eax, 0x200000
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x40c228
test byte [ebp - 0x144], 0x10
jne 0x40c2c1
test dword [ebp + 0x10], 0x800000
je 0x40c23e
test byte [ebp - 0x144], 0x10
je 0x40c2c1
test dword [ebp + 0x10], 0x400000
je 0x40c275
lea eax, [ebp - 0x118]
push 0x460f74
push eax
call fcn.004475c7
pop ecx
pop ecx
test eax, eax
je 0x40c2c1
lea eax, [ebp - 0x118]
push 0x466bc0
push eax
call fcn.004475c7
pop ecx
pop ecx
test eax, eax
je 0x40c2c1
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
jl 0x40c2a4
imul eax, eax, 0x280
mov edi, 0x140
add eax, edi
push eax
push dword [ebx]
call fcn.00448c08
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebx + 8]
add eax, eax
test ecx, ecx
je 0x40c2de
mov dword [ebx], ecx
mov dword [ebx + 8], eax
imul edi, dword [ebx + 4], 0x140
lea esi, [ebp - 0x144]
push 0x50
pop ecx
add edi, dword [ebx]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 4]
mov esi, dword [ebp - 0x148]
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40c2f5
mov eax, dword [ebp - 0x14c]
jmp 0x40c217
inc eax
push eax
push dword [ebp - 0x150]
push str.:FindFirstFileOrdered___s___FAILED:_realloc___FAILED_to_allocate__d_file_slots.
call fcn.0040906e
add esp, 0xc
jmp 0x40c2fa
mov edi, 0x140
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebx + 4]
test eax, eax
jg 0x40c31b
push dword [ebx]
call fcn.0044731f
push ebx
call fcn.0044731f
pop ecx
jmp 0x40c1fd
test byte [ebp + 0x10], 1
mov esi, 0x100000
je 0x40c343
test dword [ebp + 0x10], esi
je 0x40c332
push 0x40c5c8
jmp 0x40c337
push fcn.0040c5ae
push edi
push eax
push dword [ebx]
call fcn.00448c20
add esp, 0x10
test byte [ebp + 0x10], 2
je 0x40c368
test dword [ebp + 0x10], esi
je 0x40c355
push 0x40c4ef
jmp 0x40c35a
push 0x40c4d6
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.00448c20
add esp, 0x10
test byte [ebp + 0x10], 4
je 0x40c38d
test dword [ebp + 0x10], esi
je 0x40c37a
push 0x40c595
jmp 0x40c37f
push 0x40c57c
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.00448c20
add esp, 0x10
test byte [ebp + 0x10], 8
je 0x40c3b2
test dword [ebp + 0x10], esi
je 0x40c39f
push 0x40c487
jmp 0x40c3a4
push 0x40c46e
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.00448c20
add esp, 0x10
test byte [ebp + 0x10], 0x10
je 0x40c3d7
test dword [ebp + 0x10], esi
je 0x40c3c4
push 0x40c62e
jmp 0x40c3c9
push 0x40c5e2
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.00448c20
add esp, 0x10
test byte [ebp + 0x10], 0x20
je 0x40c3fc
test dword [ebp + 0x10], esi
je 0x40c3e9
push 0x40c4bc
jmp 0x40c3ee
push 0x40c4a0
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.00448c20
add esp, 0x10
test byte [ebp + 0x10], 0x40
je 0x40c421
test dword [ebp + 0x10], esi
je 0x40c40e
push 0x40c568
jmp 0x40c413
push fcn.0040c508
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.00448c20
add esp, 0x10
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x40c43e
imul esi, dword [ebx + 0xc], 0x140
mov edi, eax
push 0x50
pop ecx
add esi, dword [ebx]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0xc]
mov eax, dword [0x49beb4]
test eax, eax
jne 0x40c451
call fcn.00426b31
mov dword [0x49beb4], eax
push ebx
push eax
call fcn.00426e93
cmp dword [0x49beb4], 0
pop ecx
pop ecx
je 0x40c308
mov eax, ebx
jmp 0x40c17c