Function at 0x4047a3
Capabilities:
Enumerate files on windows

Disassembly:
push 0x3d4
mov eax, 0x41ce68
call fcn.00408f15
mov edi, ecx
mov dword [ebp - 0x2dc], edi
xor ebx, ebx
mov dword [ebp - 0x2c], 7
xor eax, eax
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
mov dword [ebp - 4], ebx
call fcn.0040475d
push eax
lea ecx, [ebp - 0x40]
call fcn.00404e15
push 6
push 0x4295f0
lea ecx, [ebp - 0x40]
call fcn.00405cd4
push 0x250
lea eax, [ebp - 0x2d8]
push ebx
push eax
call fcn.0040aa90
add esp, 0xc
lea ecx, [ebp - 0x2d8]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x2dc], ebx
cmp ebx, 0xffffffff
jne 0x404840
push 0
mov ecx, edi
call fcn.00404e73
lea ecx, [ebp - 0x40]
call fcn.0040768b
mov eax, edi
call fcn.00408ebf
ret
push str.0.0.0
lea ecx, [ebp - 0x58]
call fcn.00407656
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.0040255b
lea ecx, [ebp - 0x58]
call fcn.004045fa
and dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 4
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2ac]
push eax
call fcn.00404e15
mov byte [ebp - 4], 5
xor eax, eax
and dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], 7
cmp eax, 4
jb 0x404b7b
add eax, 0xfffffffc
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
add eax, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00407549
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404e3c
lea ecx, [ebp - 0x58]
call fcn.0040768b
test byte [ebp - 0x2d8], 0x10
jne 0x404909
mov byte [ebp - 4], 4
jmp 0x404a3e
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea ebx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmovae ebx, dword [ebp - 0x28]
push 0xf
pop edx
lea esi, [ecx + eax*2]
mov dword [ebp - 0x74], edx
mov eax, esi
xor ecx, ecx
sub eax, ebx
mov dword [ebp - 0x78], ecx
sar eax, 1
mov byte [ebp - 0x88], cl
cmp eax, edx
jbe 0x404958
mov byte [ebp - 0x2e0], cl
lea ecx, [ebp - 0x88]
push dword [ebp - 0x2e0]
push eax
call fcn.00406831
and dword [ebp - 0x78], 0
push dword [ebp - 0x2dc]
lea ecx, [ebp - 0x88]
push esi
push ebx
call fcn.004065c2
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.0040255b
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.00401470
cmp eax, 0xffffffff
jne 0x404a13
push dword [ebp - 0x2dc]
mov eax, dword [ebp - 0x304]
lea ecx, [ebp - 0x320]
push dword [ebp - 0x2f4]
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x300]
push dword [ebp - 0x2f8]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x324], eax
call fcn.0040671d
push dword [ebp - 0x2dc]
lea ecx, [ebp - 0x314]
push dword [ebp - 0x2e8]
push dword [ebp - 0x2ec]
call fcn.00406609
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x70]
push eax
call fcn.00407549
lea ecx, [ebp - 0x2ec]
call fcn.0040320f
lea ecx, [ebp - 0x2f8]
call fcn.00403364
lea ecx, [ebp - 0x88]
call fcn.004045fa
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x28]
call fcn.0040768b
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40487e
push str.0.0.0
lea ecx, [ebp - 0x58]
call fcn.00407656
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.0040255b
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.00401470
lea ecx, [ebp - 0x2ec]
mov esi, eax
call fcn.0040320f
lea ecx, [ebp - 0x2f8]
call fcn.00403364
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.004045fa
test esi, esi
jne 0x404ae7
push esi
mov ecx, edi
call fcn.00404e73
lea ecx, [ebp - 0x70]
call fcn.0040768b
lea ecx, [ebp - 0x314]
call fcn.0040320f
lea ecx, [ebp - 0x320]
call fcn.00403364
jmp 0x404830
call fcn.0040475d
push eax
lea ecx, [ebp - 0x40]
call fcn.00404e15
push ecx
push ecx
lea ecx, [ebp - 0x3e0]
call fcn.00404ec7
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x3d0]
push dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x40]
call fcn.004063d3
pop ecx
mov ecx, eax
call fcn.00405e1f
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae edx, dword [ebp - 0x70]
mov ecx, eax
call fcn.004063d3
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
lea ecx, [ebp - 0x3c8]
call fcn.00405bad
lea ecx, [ebp - 0x378]
call fcn.00404e98
lea eax, [ebp - 0x378]
mov byte [ebp - 4], 0xb
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004078bd
pop ecx
jmp 0x404ac4
call fcn.00405dec
int3