Function at 0x401600
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4045e6
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x29c], esi
push 0x4052dc
mov edx, esi
mov dword [ebp - 0x298], 0
lea ecx, [ebp - 0x2e8]
call fcn.00402e90
add esp, 4
cmp dword [eax + 0x14], 7
jbe 0x40165c
mov eax, dword [eax]
lea ecx, [ebp - 0x290]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x2d4]
mov edi, eax
mov dword [ebp - 0x2ac], edi
cmp ecx, 7
jbe 0x4016b4
mov edx, dword [ebp - 0x2e8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4016aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4016aa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00403a38
add esp, 8
xor eax, eax
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 7
mov word [ebp - 0x2e8], ax
cmp edi, 0xffffffff
je 0x401c1d
nop word [eax + eax]
test byte [ebp - 0x290], 0x10
lea eax, [ebp - 0x264]
je 0x40191a
mov ecx, 0x4052e4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40171e
test dx, dx
je 0x40171a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40171e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4016f8
xor eax, eax
jmp 0x401723
sbb eax, eax
or eax, 1
test eax, eax
je 0x401c00
mov ecx, 0x4052e8
lea eax, [ebp - 0x264]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40175c
test dx, dx
je 0x401758
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40175c
add eax, 4
add ecx, 4
test dx, dx
jne 0x401736
xor eax, eax
jmp 0x401761
sbb eax, eax
or eax, 1
test eax, eax
je 0x401c00
push 0x4052f0
mov edx, esi
lea ecx, [ebp - 0x318]
call fcn.00402e90
add esp, 4
mov esi, eax
lea edx, [ebp - 0x264]
mov dword [ebp - 4], 0
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401790
mov eax, dword [esi + 0x14]
sub edx, ecx
mov ecx, dword [esi + 0x10]
sub eax, ecx
sar edx, 1
cmp edx, eax
ja 0x4017ec
cmp dword [esi + 0x14], 7
lea eax, [ecx + edx]
mov dword [ebp - 0x294], eax
mov edi, esi
mov dword [esi + 0x10], eax
jbe 0x4017c1
mov edi, dword [esi]
lea eax, [edx + edx]
push eax
lea eax, [ebp - 0x264]
lea ecx, [edi + ecx*2]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x294]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
mov edi, dword [ebp - 0x2ac]
jmp 0x40180b
push edx
lea eax, [ebp - 0x264]
mov byte [ebp - 0x2b0], 0
push eax
push dword [ebp - 0x2b0]
mov ecx, esi
push edx
call fcn.00403290
mov esi, eax
or dword [ebp - 0x298], 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2c0], 0
xor eax, eax
mov dword [ebp - 0x2bc], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2d0], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x2c0], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 1
call fcn.00401600
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2bc]
cmp ecx, 7
jbe 0x4018ad
mov edx, dword [ebp - 0x2d0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4018a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016a4
push ecx
push edx
call fcn.00403a38
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x304]
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2bc], 7
mov word [ebp - 0x2d0], ax
cmp ecx, 7
jbe 0x401bfa
mov edx, dword [ebp - 0x318]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40190b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016a4
push ecx
push edx
call fcn.00403a38
add esp, 8
jmp 0x401bfa
push eax
lea ecx, [ebp - 0x28]
call fcn.00402940
mov dword [ebp - 4], 2
mov eax, dword [0x408684]
mov ecx, dword [0x408688]
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x2a4], ecx
cmp eax, ecx
je 0x401a0d
mov edi, dword [ebp - 0x18]
nop dword [eax]
mov esi, dword [eax + 0x10]
cmp edi, esi
jb 0x4019f6
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov edx, eax
cmova ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 7
mov dword [ebp - 0x2a8], edx
jbe 0x40197e
mov edx, dword [eax]
mov eax, edx
mov dword [ebp - 0x2a8], edx
lea esi, [eax + esi*2]
mov eax, esi
sub eax, edx
sar eax, 1
cmp eax, 0x80000000
je 0x4016a4
cmp esi, edx
je 0x401b9f
dec edi
lea edi, [ecx + edi*2]
nop
movzx ecx, word [edi]
lea eax, [esi - 2]
mov esi, eax
mov dword [ebp - 0x2b4], ecx
movzx eax, word [eax]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
push dword [ebp - 0x2b4]
mov word [ebp - 0x29e], ax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
add esp, 8
cmp word [ebp - 0x29e], ax
jne 0x4019e7
sub edi, 2
cmp esi, dword [ebp - 0x2a8]
jne 0x4019a0
jmp 0x401b9f
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x294]
mov ecx, dword [ebp - 0x2a4]
add eax, 0x18
mov dword [ebp - 0x294], eax
cmp eax, ecx
jne 0x401950
mov esi, dword [ebp - 0x29c]
push 0x4052f0
mov edx, esi
lea ecx, [ebp - 0x300]
call fcn.00402e90
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
mov ecx, dword [esi + 0x10]
cmova edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 0x2a4], ecx
cmp edi, eax
ja 0x401a8b
cmp dword [esi + 0x14], 7
lea eax, [edi + ecx]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [ebp - 0x294], esi
jbe 0x401a64
mov eax, dword [esi]
mov dword [ebp - 0x294], eax
lea ecx, [eax + ecx*2]
lea eax, [edi + edi]
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x2a4]
add esp, 0xc
mov ecx, dword [ebp - 0x294]
add eax, edi
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x401aa4
push edi
push edx
mov byte [ebp - 0x2b8], 0
mov ecx, esi
push dword [ebp - 0x2b8]
push edi
call fcn.00403290
mov esi, eax
or dword [ebp - 0x298], 1
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2ec]
cmp ecx, 7
jbe 0x401b28
mov edx, dword [ebp - 0x300]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401b1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016a4
push ecx
push edx
call fcn.00403a38
add esp, 8
xor eax, eax
mov dword [ebp - 0x2f0], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2ec], 7
mov word [ebp - 0x300], ax
call fcn.004013b0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x401b8b
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401b81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016a4
push ecx
push edx
call fcn.00403a38
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x401be0
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401bd6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016a4
push ecx
push edx
call fcn.00403a38
add esp, 8
mov edi, dword [ebp - 0x2ac]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov esi, dword [ebp - 0x29c]
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4016e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040368f
mov esp, ebp
pop ebp
ret