Function at 0x4080b0
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 0x442557
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2e8
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c4], edx
mov esi, ecx
mov edi, dword [ebx + 8]
xor eax, eax
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], eax
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], eax
push 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.0041ed8c
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
je 0x408173
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
mov dword [eax], ecx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
cmp eax, esi
je 0x40818f
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00406f70
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x4081a2
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00406f70
push 1
push 0x452880
lea ecx, [ebp - 0x40]
call fcn.00406050
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x40]
call fcn.00406180
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408498
test byte [ebp - 0x2c0], 0x10
je 0x40839c
xor eax, eax
mov dword [ebp - 0x2d0], 7
mov dword [ebp - 0x2d4], 0
mov word [ebp - 0x2e4], ax
cmp word [ebp - 0x294], ax
jne 0x408219
xor ecx, ecx
jmp 0x408231
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408222
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00406ac0
push 0x452c6c
lea ecx, [ebp - 0x2e4]
call fcn.00405a70
test eax, eax
je 0x40826e
push 0x453254
lea ecx, [ebp - 0x2e4]
xor esi, esi
call fcn.00405a70
test eax, eax
jne 0x408273
mov esi, 1
mov eax, dword [ebp - 0x2d0]
cmp eax, 8
jb 0x408291
inc eax
lea ecx, [ebp - 0x2e4]
push eax
push dword [ebp - 0x2e4]
call fcn.00407820
test esi, esi
jne 0x40839c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x70]
call fcn.00406f70
push 1
push 0x452880
lea ecx, [ebp - 0x70]
call fcn.00406050
cmp word [ebp - 0x294], si
jne 0x4082c4
xor ecx, ecx
jmp 0x4082df
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4082d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x70]
call fcn.00406050
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
inc eax
cmp edx, eax
ja 0x408306
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040ab50
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
dec edx
mov eax, dword [ebp - 0x18]
and ecx, edx
add eax, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x24]
and eax, edx
lea esi, [eax*4]
cmp dword [esi + ecx], 0
jne 0x408336
push 1
call fcn.0040ba10
mov ecx, dword [ebp - 0x24]
mov dword [esi + ecx], eax
mov ecx, dword [ebp - 0x24]
mov ecx, dword [esi + ecx]
mov dword [ebp - 0x2cc], ecx
mov dword [ebp - 0x2e8], ecx
mov byte [ebp - 4], 4
test ecx, ecx
je 0x408386
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x408373
mov eax, dword [ecx]
jmp 0x408375
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x70]
push edx
push eax
call fcn.00406f70
mov ecx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
inc dword [ebp - 0x18]
push eax
call fcn.00409b00
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40848f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x18], 0
jbe 0x408498
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ace0
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4083dc
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x58]
cmp ecx, eax
je 0x4083fa
push 0xffffffffffffffff
push 0
push eax
call fcn.00406f70
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
dec ecx
and ecx, dword [ebp - 0x1c]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40841a
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00407820
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x408430
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
sub dword [ebp - 0x18], 1
jne 0x408440
mov dword [ebp - 0x1c], eax
jmp 0x408443
inc dword [ebp - 0x1c]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.00406f70
push 1
push 0x452880
lea ecx, [ebp - 0x40]
call fcn.00406050
push 0xffffffffffffffff
push 0
push dword [ebp - 0x2c8]
lea ecx, [ebp - 0x40]
call fcn.00406180
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4081e2
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
xor ecx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
lea ecx, [ebp - 0x28]
sbb esi, esi
neg esi
call fcn.00409e40
push dword [ebp - 0x28]
call fcn.0041e8a1
mov eax, dword [ebp - 0x5c]
add esp, 4
mov dword [ebp - 0x28], 0
cmp eax, 8
jb 0x4084eb
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x408514
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407820
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp ecx, 8
jb 0x40853d
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00407820
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.0041e8a6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret