Function at 0x402160
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412a87
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x420014]
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, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x310], esi
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x32c], ecx
mov dword [ebp - 0x330], ecx
mov dword [ebp - 0x334], ecx
cmp dword [eax + 0x10], ecx
jne 0x4021f5
lea eax, [ebp - 0x70]
push eax
call fcn.004029b0
add esp, 4
mov ecx, eax
mov eax, 1
jmp 0x402208
push eax
lea ecx, [ebp - 0x88]
call fcn.00401070
mov ecx, eax
mov eax, 2
movups xmm0, xmmword [ecx]
xor edx, edx
mov dword [ebp - 0x30c], eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
mov dword [ebp - 4], 2
test al, 2
je 0x402257
and eax, 0xfffffffd
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x30c], eax
call fcn.00401260
mov eax, dword [ebp - 0x30c]
mov byte [ebp - 4], 3
test al, 1
je 0x402270
and eax, 0xfffffffe
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x30c], eax
call fcn.00401260
mov ecx, dword [ebp - 0x18]
mov edi, 0x7ffffffe
mov eax, edi
sub eax, ecx
cmp eax, 1
jb 0x402995
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0x41329c
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x310]
lea ecx, [ebp - 0xb8]
call fcn.00402020
mov eax, dword [ebp - 0x30c]
or eax, 0x20
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0xa4], 8
lea ecx, [ebp - 0x308]
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0xb8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x328], eax
cmp eax, 0xffffffff
jne 0x402380
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x41325c
mov word [esi], ax
call fcn.00401d10
lea ecx, [ebp - 0xb8]
call fcn.00401260
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x402363
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402359
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402990
push edx
push ecx
call fcn.0040413d
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 - 0x10]
xor ecx, ebp
call fcn.0040414b
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x328]
nop word [eax + eax]
test byte [ebp - 0x308], 0x10
je 0x4027e8
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4023c0
sub ecx, edx
lea eax, [ebp - 0x2dc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00401d10
mov edx, dword [ebp - 0x18]
mov eax, edi
mov esi, dword [ebp - 0x30]
sub eax, edx
mov byte [ebp - 4], 5
cmp eax, esi
jb 0x402995
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push edx
push ecx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x310]
lea ecx, [ebp - 0x88]
call fcn.00402020
mov eax, dword [ebp - 0x30c]
or eax, 0x40
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x324], eax
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0x40]
cmp edi, 8
mov byte [ebp - 4], 6
cmovae eax, esi
cmp word [eax], 0x76
jne 0x402764
push 1
xor eax, eax
mov dword [ebp - 0x60], 0
push 0x413260
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00401d10
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.00402c30
add esp, 0xc
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x4024d2
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4024c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402990
push edx
push ecx
call fcn.0040413d
add esp, 8
mov ecx, dword [ebp - 0x31c]
xor eax, eax
mov esi, dword [ebp - 0x320]
sub ecx, esi
mov word [ebp - 0x70], ax
mov eax, 0x2aaaaaab
imul ecx
mov dword [ebp - 0x60], 0
sar edx, 2
mov eax, edx
mov dword [ebp - 0x5c], 7
shr eax, 0x1f
add eax, edx
cmp eax, 3
jb 0x4026d1
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [esi + 0x10]
cmp eax, 1
jb 0x40299f
dec eax
or edi, 0xffffffff
cmp eax, 0xffffffff
cmovb edi, eax
cmp dword [esi + 0x14], 8
jb 0x402540
mov esi, dword [esi]
lea eax, [esi + 2]
mov dword [ebp - 0x314], eax
cmp edi, 7
ja 0x40256e
lea esi, [edi + edi]
mov dword [ebp - 0x48], edi
push esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00405a10
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x58], ax
mov edi, dword [ebp - 0x58]
jmp 0x4025cf
cmp edi, 0x7ffffffe
ja 0x402995
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40258e
mov esi, 0x7ffffffe
jmp 0x402599
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x58]
call fcn.00401800
mov dword [ebp - 0x44], esi
lea esi, [edi + edi]
push esi
push dword [ebp - 0x314]
mov dword [ebp - 0x48], edi
mov edi, eax
push edi
mov dword [ebp - 0x338], eax
call fcn.00405490
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov dword [ebp - 0x58], edi
mov eax, dword [ebp - 0x30c]
or eax, 0x80
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x58]
cmovae eax, edi
push eax
call fcn.004088dc
mov edx, dword [ebp - 0x44]
add esp, 4
mov dword [ebp - 0x314], eax
cmp edx, 8
jb 0x402639
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40262f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402990
push edx
push ecx
call fcn.0040413d
add esp, 8
mov eax, dword [ebp - 0x320]
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x40264a
mov eax, dword [eax]
push eax
call fcn.004088dc
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x320]
add eax, 0x30
cmp dword [eax + 0x14], 8
jb 0x402666
mov eax, dword [eax]
push eax
call fcn.004088dc
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x314]
cmp eax, dword [ebp - 0x32c]
jg 0x402693
jne 0x4026cb
cmp esi, dword [ebp - 0x330]
jg 0x402693
jne 0x4026cb
cmp edi, dword [ebp - 0x334]
jle 0x4026cb
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push dword [ebp - 0x78]
cmovae eax, dword [ebp - 0x88]
lea ecx, [ebp - 0xa0]
push eax
call fcn.00401d10
mov ecx, dword [ebp - 0x314]
mov dword [ebp - 0x32c], ecx
mov dword [ebp - 0x330], esi
mov dword [ebp - 0x334], edi
mov esi, dword [ebp - 0x320]
mov byte [ebp - 4], 6
test esi, esi
je 0x40275e
lea eax, [ebp - 0x320]
push eax
push dword [ebp - 0x31c]
push esi
call fcn.00401e20
mov ecx, dword [ebp - 0x318]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x320]
add esp, 0xc
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x402736
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402990
push ecx
push esi
call fcn.0040413d
add esp, 8
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 0
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x4027a5
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40279b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402990
push edx
push ecx
call fcn.0040413d
add esp, 8
mov byte [ebp - 4], 4
cmp edi, 8
jb 0x4027dd
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4027d3
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402990
push ecx
push esi
call fcn.0040413d
add esp, 8
mov esi, dword [ebp - 0x328]
mov edi, 0x7ffffffe
lea eax, [ebp - 0x308]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402390
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x90]
test ecx, ecx
jne 0x40285c
mov ecx, dword [ebp - 0x18]
sub edi, ecx
cmp edi, 8
jb 0x40299a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 8
cmovae eax, dword [ebp - 0x28]
push 0x4132a0
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x310]
lea ecx, [ebp - 0x70]
call fcn.00402020
mov eax, dword [ebp - 0x30c]
or eax, 0x100
lea ecx, [ebp - 0x70]
or eax, 8
jmp 0x4028ad
sub edi, ecx
cmp edi, 1
jb 0x4029a4
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
push 1
cmovae eax, dword [ebp - 0xa0]
push 0x413258
push ecx
push eax
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x310]
lea ecx, [ebp - 0x88]
call fcn.00402020
mov eax, dword [ebp - 0x30c]
lea ecx, [ebp - 0x88]
or eax, 0x210
mov esi, dword [ebp - 0x310]
xor edx, edx
movups xmm0, xmmword [ecx]
or eax, 4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
test al, 0x10
je 0x402905
and eax, 0xffffffef
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x30c], eax
call fcn.00401260
mov eax, dword [ebp - 0x30c]
test al, 8
je 0x402911
lea ecx, [ebp - 0x70]
call fcn.00401260
lea ecx, [ebp - 0xb8]
call fcn.00401260
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x402952
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402948
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402990
push edx
push ecx
call fcn.0040413d
add esp, 8
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x402363
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402359
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402359
call fcn.00407baa
call fcn.004017f0
call fcn.004017f0
call fcn.00403160
call fcn.004017f0
int3