Function at 0x401750
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407398
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x528
mov eax, dword [0x40b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
push 0x20a
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x250]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x250]
push esi
push 0x105
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x250]
push 0x40838c
push 0x105
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
test eax, eax
je 0x401824
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.wcscat_err:_d_n
call fcn.00401720
add esp, 8
mov esi, 0xfffffffd
jmp 0x401f89
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4bc], eax
cmp eax, 0xffffffff
jne 0x40184a
or esi, eax
jmp 0x401f89
lea ecx, [ebp - 0x4b8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x401f7b
test byte [ebp - 0x4b8], 0x10
je 0x401bbe
lea eax, [ebp - 0x48c]
push 0x4083a4
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x401f60
mov edi, dword [ebp - 0x498]
lea ecx, [ebp - 0x48c]
mov esi, dword [ebp - 0x49c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4018a0
sub ecx, edx
lea eax, [ebp - 0x48c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.00402240
test esi, esi
jg 0x4018ea
jl 0x4018cc
test edi, edi
jae 0x4018ea
neg edi
lea ecx, [ebp - 0x16]
adc esi, 0
neg esi
push esi
push edi
call fcn.00402950
lea ecx, [eax - 2]
mov eax, 0x2d
mov word [ecx], ax
jmp 0x4018f6
push esi
push edi
lea ecx, [ebp - 0x16]
call fcn.00402950
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x4d4], 0
mov word [ebp - 0x4d4], ax
add esp, 8
lea eax, [ebp - 0x16]
mov dword [ebp - 0x4c4], 0
mov dword [ebp - 0x4c0], 7
cmp ecx, eax
je 0x401938
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x4d4]
call fcn.00402240
push 0x4083b4
lea edx, [ebp - 0x268]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x534]
call fcn.004023a0
add esp, 4
lea ecx, [ebp - 0x4d4]
mov byte [ebp - 4], 2
push ecx
push eax
push dword [ebp - 0x4bc]
lea ecx, [ebp - 0x4ec]
call fcn.00402720
push 0x4083b4
lea edx, [ebp - 0x4ec]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x51c]
call fcn.004024e0
add esp, 4
push 0x4083ac
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x504]
call fcn.004024e0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x268]
cmp eax, esi
je 0x401a39
mov edx, dword [ebp - 0x254]
cmp edx, 8
jb 0x4019f8
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4019ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fbb
push edx
push ecx
call fcn.00406803
add esp, 8
mov dword [ebp - 0x258], 0
xor eax, eax
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x268], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x258], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x4f0]
cmp edx, 8
jb 0x401a79
mov ecx, dword [ebp - 0x504]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401a6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fbb
push edx
push ecx
call fcn.00406803
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x508]
mov dword [ebp - 0x4f4], 0
mov dword [ebp - 0x4f0], 7
mov word [ebp - 0x504], ax
cmp edx, 8
jb 0x401ada
mov ecx, dword [ebp - 0x51c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401ad0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fbb
push edx
push ecx
call fcn.00406803
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4d8]
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 7
mov word [ebp - 0x51c], ax
cmp edx, 8
jb 0x401b3b
mov ecx, dword [ebp - 0x4ec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fbb
push edx
push ecx
call fcn.00406803
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x520]
mov dword [ebp - 0x4dc], 0
mov dword [ebp - 0x4d8], 7
mov word [ebp - 0x4ec], ax
cmp edx, 8
jb 0x401b9c
mov ecx, dword [ebp - 0x534]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fbb
push edx
push ecx
call fcn.00406803
add esp, 8
xor eax, eax
mov dword [ebp - 0x524], 0
mov dword [ebp - 0x520], 7
mov word [ebp - 0x534], ax
jmp 0x401eec
mov edi, dword [ebp - 0x498]
lea ecx, [ebp - 0x48c]
mov esi, dword [ebp - 0x49c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401bd3
sub ecx, edx
lea eax, [ebp - 0x48c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.00402240
test esi, esi
jg 0x401c1d
jl 0x401bff
test edi, edi
jae 0x401c1d
neg edi
lea ecx, [ebp - 0x16]
adc esi, 0
neg esi
push esi
push edi
call fcn.00402950
lea ecx, [eax - 2]
mov eax, 0x2d
mov word [ecx], ax
jmp 0x401c29
push esi
push edi
lea ecx, [ebp - 0x16]
call fcn.00402950
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x4d4], 0
mov word [ebp - 0x4d4], ax
add esp, 8
lea eax, [ebp - 0x16]
mov dword [ebp - 0x4c4], 0
mov dword [ebp - 0x4c0], 7
cmp ecx, eax
je 0x401c6b
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x4d4]
call fcn.00402240
push 0x4083b4
lea edx, [ebp - 0x268]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x504]
call fcn.004023a0
add esp, 4
lea ecx, [ebp - 0x4d4]
mov byte [ebp - 4], 6
push ecx
push eax
push dword [ebp - 0x4bc]
lea ecx, [ebp - 0x4ec]
call fcn.00402720
push 0x4083b4
lea edx, [ebp - 0x4ec]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x51c]
call fcn.004024e0
add esp, 4
push 0x4083b8
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x534]
call fcn.004024e0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x268]
cmp eax, esi
je 0x401d6c
mov edx, dword [ebp - 0x254]
cmp edx, 8
jb 0x401d2b
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401d21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fbb
push edx
push ecx
call fcn.00406803
add esp, 8
mov dword [ebp - 0x258], 0
xor eax, eax
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x268], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x258], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x520]
cmp edx, 8
jb 0x401dac
mov ecx, dword [ebp - 0x534]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401da2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fbb
push edx
push ecx
call fcn.00406803
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x508]
mov dword [ebp - 0x524], 0
mov dword [ebp - 0x520], 7
mov word [ebp - 0x534], ax
cmp edx, 8
jb 0x401e0d
mov ecx, dword [ebp - 0x51c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401e03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fbb
push edx
push ecx
call fcn.00406803
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x4d8]
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 7
mov word [ebp - 0x51c], ax
cmp edx, 8
jb 0x401e6e
mov ecx, dword [ebp - 0x4ec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401e64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fbb
push edx
push ecx
call fcn.00406803
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4f0]
mov dword [ebp - 0x4dc], 0
mov dword [ebp - 0x4d8], 7
mov word [ebp - 0x4ec], ax
cmp edx, 8
jb 0x401ecf
mov ecx, dword [ebp - 0x504]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401ec5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fbb
push edx
push ecx
call fcn.00406803
add esp, 8
xor eax, eax
mov dword [ebp - 0x4f4], 0
mov dword [ebp - 0x4f0], 7
mov word [ebp - 0x504], ax
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x4c0]
cmp edx, 8
jb 0x401f2f
mov ecx, dword [ebp - 0x4d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401f25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fbb
push edx
push ecx
call fcn.00406803
add esp, 8
cmp dword [ebp - 0x254], 8
lea edx, [ebp - 0x268]
mov eax, dword [ebp - 0x258]
cmovae edx, dword [ebp - 0x268]
add eax, eax
mov ecx, dword [0x40b570]
push 0
push 0
push 0x31
push eax
call fcn.00402c60
add esp, 0x10
lea eax, [ebp - 0x4b8]
push eax
push dword [ebp - 0x4bc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401860
push dword [ebp - 0x4bc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
mov edx, dword [ebp - 0x254]
cmp edx, 8
jb 0x401fcb
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401fc1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401fc1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406803
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00406574
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret