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 0x471bdf
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b8
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
xor esi, esi
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 0x2bc], 0x48ec08
mov dword [ebp - 0x2b8], esi
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401e00
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x401811
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
cmp edx, 8
cmovae eax, dword [ebp - 0x2c]
setae byte [ebp - 0x2b1]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x401811
cmp ecx, edx
jae 0x4017ff
cmp byte [ebp - 0x2b1], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovne eax, dword [ebp - 0x2c]
mov dword [eax + ecx*2], 0x5c
jmp 0x401811
push 0x5c
push dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2c]
push 1
call fcn.004022a0
push 0x48ebd0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.004020c0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2b0]
push 0x250
push 0
push eax
call fcn.00454440
add esp, 0x10
lea ecx, [ebp - 0x2b0]
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c0], eax
cmp eax, dword [ebp - 0x2b8]
je 0x40187d
mov edx, dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2bc]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0xffffffff
jne 0x401892
mov byte [ebp - 0x2b1], 0
jmp 0x4019d2
test byte [ebp - 0x2b0], 0x10
je 0x40199a
cmp word [ebp - 0x284], 0x2e
jne 0x4018cd
mov ax, word [ebp - 0x282]
test ax, ax
jne 0x4018b9
xor al, al
jmp 0x4018cf
cmp ax, 0x2e
jne 0x4018cd
cmp word [ebp - 0x280], 0
jne 0x4018cd
xor al, al
jmp 0x4018cf
mov al, 1
test al, al
je 0x40199a
mov byte [ebp - 4], 3
lea eax, [ebp - 0x284]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4018e4
sub eax, edx
mov ecx, SysReAllocString
mov edx, dword [ebp - 0x1c]
sub ecx, edx
sar eax, 1
cmp ecx, eax
jb 0x401a3a
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
push eax
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x284]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x2c0]
lea ecx, [ebp - 0x44]
call fcn.00402750
or esi, 1
mov dword [ebp - 0x2c4], esi
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x401979
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [edi + 4], 0x18
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
jmp 0x401985
lea ecx, [ebp - 0x44]
push ecx
push eax
mov ecx, edi
call fcn.00402890
and esi, 0xfffffffe
mov dword [ebp - 0x2c4], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00403cb0
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401892
mov ecx, dword [edi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [edi]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
setne byte [ebp - 0x2b1]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00403cb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403cb0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], 0x48ec08
test ecx, ecx
je 0x401a16
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x2b8], 0
mov al, byte [ebp - 0x2b1]
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.00452869
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00403780
int3