Function at 0x4084d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454874
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x45ac78
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404f30
add esp, 0xc
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2f8]
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor edi, edi
mov dword [ebp - 0x2fc], eax
cmp eax, 0xffffffff
je 0x40872c
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpW]
nop dword [eax]
lea eax, [ebp - 0x2cc]
push eax
push 0x45ac80
call ebx
test eax, eax
je 0x408705
lea eax, [ebp - 0x2cc]
push eax
push 0x45ac84
call ebx
test eax, eax
je 0x408705
test byte [ebp - 0x2f8], 0x10
jne 0x408705
xor eax, eax
mov dword [ebp - 0x14], 7
inc edi
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x2cc], ax
je 0x4085bf
lea eax, [ebp - 0x2cc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4085b0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403e00
push 0x50
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xa8]
call fcn.00406bf0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040cb20
mov byte [ebp - 0x30c], 0
lea ecx, [ebp - 0x304]
push dword [ebp - 0x30c]
xorps xmm0, xmm0
mov byte [ebp - 4], 3
movq qword [ebp - 0x304], xmm0
call fcn.0040a110
lea eax, [ebp - 0x40]
mov byte [ebp - 0x30c], 3
push eax
call fcn.00405d00
mov dword [ebp - 0x304], eax
add esp, 4
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x300], eax
mov al, byte [esi]
mov byte [ebp - 4], 4
test al, al
je 0x408670
cmp al, 2
je 0x408692
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
push 2
lea ecx, [ebp - 0x314]
mov byte [esi], 2
call fcn.00406d10
mov eax, dword [ebp - 0x314]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x310]
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x30c]
push eax
call fcn.0040b610
push dword [ebp - 0x30c]
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 5
call fcn.0040a110
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4086cd
inc eax
push 1
push eax
push dword [ebp - 0x40]
call fcn.004035c0
add esp, 0xc
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00407190
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x408705
push 2
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004035c0
add esp, 0xc
lea eax, [ebp - 0x2f8]
push eax
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408550
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x408743
push 2
inc ecx
push ecx
push dword [ebp - 0x58]
call fcn.004035c0
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret