Function at 0x4044ff
Capabilities:
Enumerate files on windows

Disassembly:
push 0x3dc
mov eax, 0x41cd75
call fcn.004090b5
mov edi, ecx
mov dword [ebp - 0x2e0], edi
mov dword [ebp - 0x2dc], edi
xor ebx, ebx
mov dword [ebp - 0x44], 7
xor eax, eax
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
mov dword [ebp - 4], ebx
call fcn.004044b9
mov esi, eax
push esi
call fcn.00407216
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00407537
mov esi, 0x429684
push esi
call fcn.00407216
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00405979
push 0x250
lea eax, [ebp - 0x2d8]
push ebx
push eax
call fcn.0040b890
add esp, 0xc
lea ecx, [ebp - 0x2d8]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2dc], eax
cmp eax, 0xffffffff
jne 0x4045ac
push ebx
mov ecx, edi
call fcn.00404b39
push ebx
jmp 0x4048b9
push str.0.0.0
lea ecx, [ebp - 0x28]
call fcn.00407629
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.00402300
xor esi, esi
lea ecx, [ebp - 0x28]
push ebx
inc esi
push esi
call fcn.00404365
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x70], ax
mov edi, dword [ebp - 0x2dc]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x40]
call fcn.00404b39
push ecx
push ecx
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x40]
call fcn.00404ab7
push eax
lea ecx, [ebp - 0x40]
call fcn.00404ae8
push ebx
push esi
lea ecx, [ebp - 0x88]
call fcn.0040767a
test byte [ebp - 0x2d8], 0x10
lea ecx, [ebp - 0x40]
je 0x40474f
cmp dword [ebp - 0x2c], 8
lea ebx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
cmovae ebx, dword [ebp - 0x40]
and dword [ebp - 0x18], 0
push 0xf
lea esi, [ecx + eax*2]
mov byte [ebp - 0x28], 0
mov eax, esi
sub eax, ebx
pop ecx
sar eax, 1
mov dword [ebp - 0x14], ecx
cmp eax, ecx
je 0x40468c
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.004043ba
test al, al
je 0x40468c
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
push dword [ebp - 0x2e0]
lea ecx, [ebp - 0x28]
push esi
push ebx
call fcn.00406570
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.00402300
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.004015ec
cmp eax, 0xffffffff
jne 0x404727
mov eax, dword [ebp - 0x304]
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x2f8]
push eax
call fcn.0040627a
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x314]
call fcn.004060ec
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp - 0x40]
push ebx
push eax
lea ecx, [ebp - 0x70]
call fcn.00407343
jmp 0x404729
xor ebx, ebx
lea ecx, [ebp - 0x2ec]
call fcn.00402f9f
lea ecx, [ebp - 0x2f8]
call fcn.004030b4
xor esi, esi
lea ecx, [ebp - 0x28]
push ebx
inc esi
push esi
call fcn.00404365
lea ecx, [ebp - 0x40]
push ebx
push esi
mov byte [ebp - 4], 4
call fcn.0040767a
lea eax, [ebp - 0x2d8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4045f4
push str.0.0.0
lea ecx, [ebp - 0x28]
call fcn.00407629
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.00402300
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.004015ec
mov ebx, eax
lea ecx, [ebp - 0x2ec]
neg ebx
sbb bl, bl
call fcn.00402f9f
lea ecx, [ebp - 0x2f8]
call fcn.004030b4
push 0
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00404365
mov edi, dword [ebp - 0x2e0]
add bl, 1
je 0x40480f
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.00404b39
push ebx
push esi
lea ecx, [ebp - 0x70]
call fcn.0040767a
lea ecx, [ebp - 0x314]
call fcn.00402f9f
lea ecx, [ebp - 0x320]
call fcn.004030b4
push ebx
push esi
jmp 0x4048bb
call fcn.004044b9
mov esi, eax
push esi
call fcn.00407216
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00407537
push ecx
push ecx
lea ecx, [ebp - 0x3e8]
call fcn.00404bb5
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3d8]
call fcn.00405b99
mov ecx, eax
call fcn.00405d22
lea edx, [ebp - 0x70]
mov ecx, eax
call fcn.00405b99
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
lea ecx, [ebp - 0x3e8]
call fcn.00404b6a
lea ecx, [ebp - 0x380]
call fcn.00404b86
lea eax, [ebp - 0x380]
mov byte [ebp - 4], 0xb
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004078db
pop ecx
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.0040767a
lea ecx, [ebp - 0x314]
call fcn.00402f9f
lea ecx, [ebp - 0x320]
call fcn.004030b4
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.0040767a
mov eax, edi
call fcn.0040905f
ret