Function at 0x4a8520
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5129c0
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x55e2f4]
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 edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2b0], edi
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], cx
push 0x518b40
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], ecx
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x2bc], xmm0
call fcn.00438370
push esi
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00403cd0
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x4a85b8
mov eax, dword [eax]
lea ecx, [ebp - 0x2a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2ac], ebx
cmp eax, 8
jb 0x4a85e3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x4a860f
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp ebx, 0xffffffff
jne 0x4a8653
mov dword [edi + 0x10], eax
mov ecx, edi
mov dword [edi + 0x14], 7
mov word [edi], ax
lea eax, [ebp - 0x40]
push eax
call fcn.00404990
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4a8819
inc ecx
push ecx
jmp 0x4a880e
mov esi, dword [ebp - 0x2b8]
mov ebx, dword [ebp - 0x2bc]
mov edi, dword [ebp - 0x2ac]
nop word [eax + eax]
lea eax, [ebp - 0x27c]
push 0x516c70
push eax
call fcn.004e85f7
add esp, 8
test eax, eax
je 0x4a870f
lea eax, [ebp - 0x27c]
push 0x51d3f4
push eax
call fcn.004e85f7
add esp, 8
test eax, eax
je 0x4a870f
cmp dword [ebp + 0x18], 0
mov ecx, dword [ebp - 0x294]
mov edx, dword [ebp - 0x290]
mov eax, dword [ebp - 0x2a8]
jne 0x4a86c0
test al, 0x10
je 0x4a870f
cmp dword [ebp + 0x14], 0
jne 0x4a86ca
test al, 0x10
jne 0x4a870f
cmp esi, edx
ja 0x4a870f
jb 0x4a86d4
cmp ebx, ecx
jae 0x4a870f
cmp word [ebp - 0x27c], 0
mov ebx, ecx
mov esi, edx
jne 0x4a86e6
xor ecx, ecx
jmp 0x4a86ff
lea ecx, [ebp - 0x27c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a86f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004051a0
lea eax, [ebp - 0x2a8]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4a8670
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp - 0x30], 0
mov edi, dword [ebp - 0x2b0]
sete al
test al, al
je 0x4a8765
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x40]
push eax
call fcn.00404990
jmp 0x4a8804
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00405080
push 0x518b40
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00403cd0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
push ecx
push eax
push edi
call fcn.00460c40
mov eax, dword [ebp - 0x44]
add esp, 0x18
cmp eax, 8
jb 0x4a87c7
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x4a87f0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4a8819
inc eax
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.004052a0
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.004e1f40
mov esp, ebp
pop ebp
ret