Function at 0x403e1e
Capabilities:
Enumerate files on windows

Disassembly:
push 0x3d4
mov eax, 0x41baf1
call fcn.00407d3b
mov edi, ecx
mov dword [ebp - 0x2dc], edi
xor ebx, ebx
mov dword [ebp - 0x2dc], edi
xor eax, eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], ebx
call fcn.00403dd8
push eax
lea ecx, [ebp - 0x58]
call fcn.00404e68
push 6
push 0x426824
lea ecx, [ebp - 0x58]
call fcn.00405263
push 0x250
lea eax, [ebp - 0x2d8]
push ebx
push eax
call fcn.004092f0
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 ebx, eax
or esi, 0xffffffff
xor eax, eax
cmp ebx, esi
jne 0x403ed2
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.00404e68
lea ecx, [ebp - 0x58]
call fcn.00406a8b
mov eax, edi
call fcn.00407cea
ret
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x40]
push 0x426834
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.00406a47
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.004022be
lea ecx, [ebp - 0x40]
call fcn.00401f8f
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.00404e68
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 0x40422b
add eax, 0xfffffffc
mov ecx, esi
cmp eax, esi
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.0040697c
mov byte [ebp - 0x2dc], 0
lea eax, [ebp - 0x88]
push dword [ebp - 0x2dc]
lea ecx, [ebp - 0x28]
push eax
call fcn.00405237
lea ecx, [ebp - 0x88]
call fcn.00406a8b
test byte [ebp - 0x2d8], 0x10
je 0x4040c8
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x2dc]
sbb cl, cl
mov dword [ebp - 0x2c], 0xf
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 - 0x40], ecx
push eax
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x40], cl
lea ecx, [ebp - 0x40]
push edx
call fcn.00405925
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.004022be
lea eax, [ebp - 0x300]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.004014b0
cmp eax, esi
jne 0x4040aa
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.00405be1
push dword [ebp - 0x2dc]
lea ecx, [ebp - 0x310]
push dword [ebp - 0x2e4]
push dword [ebp - 0x2e8]
call fcn.00405b38
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.0040697c
lea ecx, [ebp - 0x2e8]
call fcn.00402e48
lea ecx, [ebp - 0x2f4]
call fcn.00402e9b
lea ecx, [ebp - 0x40]
call fcn.00401f8f
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00406a8b
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403f24
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x40]
push 0x426834
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.00406a47
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.004022be
lea eax, [ebp - 0x300]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.004014b0
lea ecx, [ebp - 0x2e8]
mov esi, eax
call fcn.00402e48
lea ecx, [ebp - 0x2f4]
call fcn.00402e9b
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00401f8f
test esi, esi
jne 0x404198
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.00404e68
lea ecx, [ebp - 0x70]
call fcn.00406a8b
lea ecx, [ebp - 0x310]
call fcn.00402e48
lea ecx, [ebp - 0x31c]
call fcn.00402e9b
jmp 0x403ec2
call fcn.00403dd8
push eax
lea ecx, [ebp - 0x58]
call fcn.00404e68
push ecx
lea ecx, [ebp - 0x3e0]
call fcn.00404cd3
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x3d0]
push dword [ebp - 0x48]
cmovae edx, dword [ebp - 0x58]
call fcn.004059b8
pop ecx
mov ecx, eax
call fcn.00405375
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae edx, dword [ebp - 0x70]
mov ecx, eax
call fcn.004059b8
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
lea ecx, [ebp - 0x3c8]
call fcn.004050f3
lea ecx, [ebp - 0x378]
call fcn.00404ca4
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.00406ca1
pop ecx
jmp 0x404175
call fcn.0040164a
int3