Function at 0x40c075
Capabilities:
Enumerate files on windows

Disassembly:
push 0x2c4
mov eax, 0x4ad35d
call fcn.0048f48f
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x2b0], edi
call fcn.0042f326
mov dword [ebp - 4], ebx
push str.path
mov ecx, esi
mov dword [ebp - 0x2ac], ebx
mov byte [ebp - 4], 1
call fcn.0042f676
sub esp, 0x18
mov ecx, eax
push esp
call fcn.0042fc5e
lea eax, [ebp - 0x2a8]
push eax
call fcn.00437fc7
add esp, 0x1c
push str.folder
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0042f676
mov ecx, eax
call fcn.0042fa57
test al, al
push 0x4c14a0
lea ecx, [ebp - 0x2a8]
setne byte [ebp - 0x2a1]
call fcn.0040930b
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x2a8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2ac], esi
cmp esi, 0xffffffff
jne 0x40c1c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x505ab0
push eax
push str.enumFileSystem_FindFirstFile__d
lea ecx, [ebp - 0x2a0]
call fcn.00409002
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 3
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 4
call fcn.0042f275
push 0x4c0c00
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 5
call fcn.0042f5f2
lea ecx, [ebp - 0x2c0]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 4
call fcn.0042f451
lea ecx, [ebp - 0x2c]
call fcn.00401056
mov ecx, dword [ebp - 0x2a0]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x2a8]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov byte [ebp - 4], bl
jmp 0x40c3b2
mov eax, dword [0x507340]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x40c1dc
dec ecx
or ecx, 0xfffffff8
inc ecx
cmp ecx, 3
jne 0x40c1eb
call fcn.0048f9e0
mov dword [0x507340], eax
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00401b1e
push 0x4c14e8
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 6
call fcn.004093fe
test eax, eax
je 0x40c28f
push 0x4c14ec
lea ecx, [ebp - 0x2a0]
call fcn.004093fe
test eax, eax
je 0x40c28f
cmp byte [ebp - 0x2a1], 0
je 0x40c23d
test byte [ebp - 0x29c], 0x10
jne 0x40c246
jmp 0x40c28f
test byte [ebp - 0x29c], 0x10
jne 0x40c28f
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00438012
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 7
call fcn.0042f275
push eax
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 8
call fcn.0042fa35
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 7
call fcn.0042f451
lea ecx, [ebp - 0x2c]
call fcn.00401056
mov ecx, dword [ebp - 0x2a0]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00407864
lea eax, [ebp - 0x29c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c1c4
lea ecx, [ebp - 0x2d0]
call fcn.0042fe3a
test al, al
je 0x40c307
push str.empty
lea ecx, [ebp - 0x2c0]
call fcn.0042f2f7
push 0x4c0c00
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 9
call fcn.0042f5f2
lea ecx, [ebp - 0x2c0]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 2
call fcn.0042f451
mov ecx, dword [ebp - 0x2a8]
lea ecx, [ecx - 0x10]
call fcn.00407864
jmp 0x40c3ab
mov dword [ebp - 4], ebx
test esi, esi
je 0x40c3b9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x4c]
call fcn.00430a82
push 0x505ab0
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0xe
call fcn.00408fd9
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call fcn.00432bf9
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x10
jb 0x40c3f8
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401027
lea eax, [ebp - 0x2a8]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0x11
call fcn.00402394
mov ecx, dword [ebp - 0x2a8]
lea ecx, [ecx - 0x10]
call fcn.00407864
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.00401056
mov esi, dword [ebp - 0x2ac]
push 8
pop eax
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x40c45b
call fcn.00409bd9
lea ecx, [esi - 0x10]
mov dword [edi + 8], eax
call fcn.00407864
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.004090f2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d0]
call fcn.0042f451
call fcn.0048f3e1
ret