Function at 0x403f95
Capabilities:
Enumerate files on windows

Disassembly:
push 0x3d4
mov eax, 0x41c231
call fcn.0040826f
mov edi, ecx
mov dword [ebp - 0x2dc], edi
xor ebx, ebx
mov dword [ebp - 0x2dc], edi
xor eax, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], ebx
call fcn.00403f4f
push eax
lea ecx, [ebp - 0x40]
call fcn.00405088
push 6
push 0x427c44
lea ecx, [ebp - 0x40]
call fcn.004054b1
push 0x250
lea eax, [ebp - 0x2d8]
push ebx
push eax
call fcn.00409850
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
xor eax, eax
cmp ebx, 0xffffffff
jne 0x404047
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi], ecx
mov dword [edi + 0x10], ecx
push ecx
mov ecx, edi
mov word [edi], ax
call fcn.00405088
lea ecx, [ebp - 0x40]
call fcn.00406f71
mov eax, edi
call fcn.0040821e
ret
push 0xf
pop esi
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
push str.0.0.0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], al
call fcn.00406f2d
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.00402430
lea ecx, [ebp - 0x28]
call fcn.00402049
and dword [ebp - 0x70], 0
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 - 0x28], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2ac]
push eax
mov dword [ebp - 0x14], 7
call fcn.00405088
mov byte [ebp - 4], 5
and dword [ebp - 0x88], 0
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x74], 7
cmp eax, 4
jb 0x40438d
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 - 0x88]
push eax
call fcn.00406e59
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x28]
call fcn.004050af
lea ecx, [ebp - 0x88]
call fcn.00406f71
test byte [ebp - 0x2d8], 0x10
je 0x40422e
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x2dc]
sbb cl, cl
mov dword [ebp - 0x44], esi
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
add cl, 1
lea eax, [edx + eax*2]
lea edx, [ebp - 0x28]
cmovne edx, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
push eax
mov dword [ebp - 0x48], ecx
mov byte [ebp - 0x58], cl
lea ecx, [ebp - 0x58]
push edx
call fcn.00405c45
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.00402430
lea eax, [ebp - 0x300]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.004014da
cmp eax, 0xffffffff
jne 0x404210
push dword [ebp - 0x2dc]
mov eax, dword [ebp - 0x300]
lea ecx, [ebp - 0x31c]
push dword [ebp - 0x2f0]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x2fc]
push dword [ebp - 0x2f4]
mov dword [ebp - 0x324], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x320], eax
call fcn.00405f18
push dword [ebp - 0x2dc]
lea ecx, [ebp - 0x310]
push dword [ebp - 0x2e4]
push dword [ebp - 0x2e8]
call fcn.00405e6f
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.00406e59
lea ecx, [ebp - 0x2e8]
call fcn.00402f59
lea ecx, [ebp - 0x2f4]
call fcn.00402fac
lea ecx, [ebp - 0x58]
call fcn.00402049
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00406f71
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404098
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x58]
push str.0.0.0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x58], al
call fcn.00406f2d
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.00402430
lea eax, [ebp - 0x300]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.004014da
lea ecx, [ebp - 0x2e8]
mov esi, eax
call fcn.00402f59
lea ecx, [ebp - 0x2f4]
call fcn.00402fac
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00402049
test esi, esi
jne 0x4042fa
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi], ecx
xor eax, eax
mov dword [edi + 0x10], ecx
push ecx
mov ecx, edi
mov word [edi], ax
call fcn.00405088
lea ecx, [ebp - 0x70]
call fcn.00406f71
lea ecx, [ebp - 0x310]
call fcn.00402f59
lea ecx, [ebp - 0x31c]
call fcn.00402fac
jmp 0x404037
call fcn.00403f4f
push eax
lea ecx, [ebp - 0x40]
call fcn.00405088
push ecx
lea ecx, [ebp - 0x3e0]
call fcn.00404ef3
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.00405ce0
pop ecx
mov ecx, eax
call fcn.004055d0
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae edx, dword [ebp - 0x70]
mov ecx, eax
call fcn.00405ce0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
lea ecx, [ebp - 0x3c8]
call fcn.0040536d
lea ecx, [ebp - 0x378]
call fcn.00404ec4
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.004071a9
pop ecx
jmp 0x4042d7
call fcn.00401692
int3