Function at 0x406160
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c67b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b0], edx
mov edi, ecx
mov dword [ebp - 0x2ac], edi
xor esi, esi
mov dword [ebp - 0x2ac], edi
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], esi
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x28]
push 1
xor eax, eax
mov dword [ebp - 0x18], esi
push 0x43a724
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00404280
mov edx, dword [ebp - 0x2b0]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00405fa0
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406232
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406228
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40648e
push edx
push ecx
call fcn.004152ff
add esp, 8
push 0x250
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.00417b20
add esp, 0xc
lea ecx, [ebp - 0x2a8]
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 dword [ebp - 0x2ac], eax
cmp eax, 0xffffffff
jne 0x4062c0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x406471
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406467
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406493
jmp 0x406467
test byte [ebp - 0x2a8], 0x10
je 0x406425
cmp word [ebp - 0x27c], 0x2e
je 0x406425
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406300
sub ecx, edx
lea eax, [ebp - 0x27c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00404280
mov edx, dword [ebp - 0x2b0]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00405fa0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x2b4], esi
je 0x406380
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
add esi, 0x18
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 0x2b8], esi
jmp 0x406393
push eax
push esi
lea ecx, [ebp - 0x2bc]
call fcn.00406830
mov esi, dword [ebp - 0x2b8]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4063d1
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4063c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40648e
push edx
push ecx
call fcn.004152ff
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x40641f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406415
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40648e
push edx
push ecx
call fcn.004152ff
add esp, 8
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x406442
mov eax, dword [ebp - 0x2ac]
jmp 0x4062c0
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x2bc]
mov dword [edi], eax
mov eax, dword [ebp - 0x2b4]
mov dword [edi + 4], esi
mov dword [edi + 8], eax
jmp 0x406280
push edx
push ecx
call fcn.004152ff
add esp, 8
mov eax, edi
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.00415024
mov esp, ebp
pop ebp
ret
call fcn.0041b091
call fcn.0041b091
int3