Function at 0x404318
Capabilities:
Enumerate files on windows

Disassembly:
push 0x3d4
mov eax, 0x41c830
call fcn.004088a0
mov edi, ecx
mov dword [ebp - 0x2dc], edi
mov dword [ebp - 0x2dc], edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], ebx
call fcn.004042d2
push eax
lea ecx, [ebp - 0x40]
call fcn.00404999
push 6
push 0x4299e0
lea ecx, [ebp - 0x40]
call fcn.0040567a
push 0x250
lea eax, [ebp - 0x2d8]
push ebx
push eax
call fcn.0040a3d0
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 0x4043bb
push 0
mov ecx, edi
call fcn.00404a1e
lea ecx, [ebp - 0x40]
call fcn.00406fd4
mov eax, edi
call fcn.0040884a
ret
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
push str.0.0.0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00406f90
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.00402461
lea ecx, [ebp - 0x58]
call fcn.0040417e
and dword [ebp - 0x78], 0
xor eax, eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], 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.00404999
mov byte [ebp - 4], 5
xor eax, eax
and dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], 7
cmp eax, 4
jb 0x404717
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 - 0x70]
push eax
call fcn.00406e8e
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.004049e7
lea ecx, [ebp - 0x70]
call fcn.00406fd4
test byte [ebp - 0x2d8], 0x10
lea ecx, [ebp - 0x28]
jne 0x40449e
mov byte [ebp - 4], 4
call fcn.00406fd4
jmp 0x4045cc
cmp dword [ebp - 0x14], 8
lea ebx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmovae ebx, dword [ebp - 0x28]
push 0xf
pop edx
lea esi, [ecx + eax*2]
mov dword [ebp - 0x44], edx
mov eax, esi
xor ecx, ecx
sub eax, ebx
mov dword [ebp - 0x48], ecx
sar eax, 1
mov byte [ebp - 0x58], cl
cmp eax, edx
jbe 0x4044e4
mov byte [ebp - 0x2e0], cl
lea ecx, [ebp - 0x58]
push dword [ebp - 0x2e0]
push eax
call fcn.004061a9
and dword [ebp - 0x48], 0
push dword [ebp - 0x2dc]
lea ecx, [ebp - 0x58]
push esi
push ebx
call fcn.00405f58
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.00402461
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.00401469
cmp eax, 0xffffffff
jne 0x40459c
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.004060a4
push dword [ebp - 0x2dc]
lea ecx, [ebp - 0x314]
push dword [ebp - 0x2e8]
push dword [ebp - 0x2ec]
call fcn.00405f9f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x88]
push eax
call fcn.00406e8e
lea ecx, [ebp - 0x2ec]
call fcn.00402fa0
lea ecx, [ebp - 0x2f8]
call fcn.0040303b
lea ecx, [ebp - 0x58]
call fcn.0040417e
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00406fd4
mov ebx, dword [ebp - 0x2dc]
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40440b
and dword [ebp - 0x60], eax
lea ecx, [ebp - 0x70]
push str.0.0.0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
call fcn.00406f90
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.00402461
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.00401469
lea ecx, [ebp - 0x2ec]
mov esi, eax
call fcn.00402fa0
lea ecx, [ebp - 0x2f8]
call fcn.0040303b
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.0040417e
test esi, esi
jne 0x40467d
push esi
mov ecx, edi
call fcn.00404a1e
lea ecx, [ebp - 0x88]
call fcn.00406fd4
lea ecx, [ebp - 0x314]
call fcn.00402fa0
lea ecx, [ebp - 0x320]
call fcn.0040303b
jmp 0x4043ab
call fcn.004042d2
push eax
lea ecx, [ebp - 0x40]
call fcn.00404999
push ecx
push ecx
lea ecx, [ebp - 0x3e0]
call fcn.00404a72
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.00405d60
pop ecx
mov ecx, eax
call fcn.0040579e
cmp dword [ebp - 0x74], 8
lea edx, [ebp - 0x88]
push dword [ebp - 0x78]
cmovae edx, dword [ebp - 0x88]
mov ecx, eax
call fcn.00405d60
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
lea ecx, [ebp - 0x3c8]
call fcn.0040556c
lea ecx, [ebp - 0x378]
call fcn.00404a43
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.004071e5
pop ecx
jmp 0x404657
call fcn.00405793
int3