Function at 0x4a5470
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510fbd
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x56a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x19c], edi
mov dword [ebp - 0x1a0], edi
mov dword [ebp - 0x1a0], edi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov edx, dword [ebp + 0x1c]
cmp edx, 0xf
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
cmova eax, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x4a54e9
push 1
push 0x557f5c
lea ecx, [ebp + 8]
call fcn.00404cd0
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov eax, Ordinal_1
sub eax, ecx
cmp eax, 1
jb 0x4a598d
push 1
push 0x557f60
cmp edx, 0xf
lea eax, [ebp + 8]
push ecx
cmova eax, esi
push eax
push ecx
push dword [ebp - 0x19c]
lea ecx, [ebp - 0x1bc]
call fcn.004100d0
cmp dword [ebp - 0x1a8], 0xf
lea ecx, [ebp - 0x198]
lea eax, [ebp - 0x1bc]
cmova eax, dword [ebp - 0x1bc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [ebp - 0x1a8]
mov esi, eax
mov dword [ebp - 0x1a0], esi
cmp ecx, 0xf
jbe 0x4a5581
mov edx, dword [ebp - 0x1bc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5577
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5992
push ecx
push edx
call fcn.004d7c38
add esp, 8
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0xf
mov byte [ebp - 0x1bc], 0
cmp esi, 0xffffffff
jne 0x4a55c4
lea ecx, [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.00404b50
mov eax, edi
jmp 0x4a5972
vpxor xmm0, xmm0, xmm0
vmovq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00407fb0
mov byte [ebp - 4], 2
nop dword [eax]
mov ecx, 0x557fb8
lea eax, [ebp - 0x16c]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a5630
test dl, dl
je 0x4a562c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a5630
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a5610
xor eax, eax
jmp 0x4a5635
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a58ad
mov ecx, 0x557fbc
lea eax, [ebp - 0x16c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a5668
test dl, dl
je 0x4a5664
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a5668
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a5648
xor eax, eax
jmp 0x4a566d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a58ad
lea ecx, [ebp - 0x16c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5680
sub ecx, edx
mov eax, Ordinal_1
mov edx, dword [ebp + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x4a598d
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
push ecx
cmova eax, dword [ebp + 8]
lea ecx, [ebp - 0x16c]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x19c]
lea ecx, [ebp - 0x4c]
call fcn.004100d0
mov byte [ebp - 4], 3
test byte [ebp - 0x198], 0x10
je 0x4a5853
mov edx, dword [ebp + 0x1c]
lea eax, [ebp + 8]
mov esi, dword [ebp + 8]
cmp edx, 0xf
mov ecx, dword [ebp + 0x18]
cmova eax, esi
cmp byte [eax + ecx - 2], 0
jne 0x4a572e
cmp edx, 0xf
lea eax, [ebp + 8]
cmova eax, esi
cmp byte [eax + ecx - 1], 0x5c
jne 0x4a572e
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x34]
dec ecx
cmp dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ecx
cmova eax, dword [ebp - 0x34]
mov byte [eax + ecx], 0
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
dec ecx
cmp dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ecx
cmova eax, dword [ebp - 0x34]
mov byte [eax + ecx], 0
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
cmp edx, 0xf
lea eax, [ebp + 8]
cmova eax, esi
cmp byte [eax + ecx - 1], 0x5c
je 0x4a5748
push 0x5c
lea ecx, [ebp - 0x34]
call fcn.00422cd0
lea ecx, [ebp - 0x16c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5751
sub ecx, edx
mov eax, Ordinal_1
mov edx, dword [ebp - 0x24]
sub eax, edx
cmp eax, ecx
jb 0x4a598d
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x34]
push ecx
cmova eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x16c]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x19c]
lea ecx, [ebp - 0x1d8]
call fcn.004100d0
lea ecx, [ebp - 0x4c]
call fcn.00404b50
vmovdqu xmm0, xmmword [ebp - 0x1d8]
mov edx, dword [ebp - 0x1c8]
sub esp, 0x18
mov eax, Ordinal_1
mov ecx, esp
vmovdqu xmmword [ebp - 0x4c], xmm0
vmovq xmm0, qword [ebp - 0x1c8]
sub eax, edx
mov dword [ebp - 0x1a4], ecx
vmovq qword [ebp - 0x3c], xmm0
cmp eax, 1
jb 0x4a598d
cmp dword [ebp - 0x1c4], 0xf
lea eax, [ebp - 0x4c]
push 1
cmova eax, dword [ebp - 0x1d8]
push 0x557fa4
push edx
push eax
push ecx
push dword [ebp - 0x1a4]
call fcn.004100d0
lea ecx, [ebp - 0x58]
call fcn.004a5470
add esp, 0x18
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x54]
mov esi, dword [ebp - 0x58]
cmp esi, edi
je 0x4a5843
mov eax, dword [ebp - 0x18]
push esi
cmp eax, dword [ebp - 0x14]
je 0x4a5830
mov ecx, eax
call fcn.00407fb0
mov eax, dword [ebp - 0x18]
add eax, 0x18
mov dword [ebp - 0x18], eax
jmp 0x4a583c
push eax
lea ecx, [ebp - 0x1c]
call fcn.00425ed0
mov eax, dword [ebp - 0x18]
add esi, 0x18
cmp esi, edi
jne 0x4a5818
lea ecx, [ebp - 0x58]
call fcn.0040f9d0
mov esi, dword [ebp - 0x1a0]
jmp 0x4a5875
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
push ecx
cmp eax, dword [ebp - 0x14]
je 0x4a586c
mov ecx, eax
call fcn.00407fb0
add dword [ebp - 0x18], 0x18
jmp 0x4a5875
push eax
lea ecx, [ebp - 0x1c]
call fcn.00425ed0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x4a58ad
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a58a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5992
push ecx
push edx
call fcn.004d7c38
add esp, 8
lea eax, [ebp - 0x198]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4a5600
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [esi], eax
mov dword [esi + 8], edx
cmp ecx, 0xf
jbe 0x4a5926
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a591c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5997
push ecx
push edx
call fcn.004d7c38
add esp, 8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
call fcn.0040f9d0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x4a5970
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5966
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5997
push ecx
push edx
call fcn.004d7c38
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.004d7bf5
mov esp, ebp
pop ebp
ret
call fcn.00403c10
call fcn.004e35d4
call fcn.004e35d4
int3