Function at 0x4a9c30
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x514
lea ebx, [esp + 0x54]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x80
mov word [esp + 0x2d4], 0x105
mov eax, dword [esp + 0x52c]
mov ecx, dword [esp + 0x530]
mov dword [esp + 0x2c4], eax
mov dword [esp + 0x2c8], ecx
lea eax, [esp + 0x48]
lea ebp, [esp + 0x2c4]
push 0x104
push eax
push ebp
call fcn.004a7d20
add esp, 0xc
test eax, eax
je 0x4a9cba
mov esi, eax
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x4a9cad
push eax
mov edi, edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov edx, edi
add esp, 4
mov eax, esi
add esp, 0x514
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4a9cde
mov ecx, dword [esp + 0x48]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x2f
je 0x4a9cde
cmp edx, 0x3a
je 0x4a9cde
cmp edx, 0x5c
jne 0x4a9eb4
lea edx, [eax + 1]
cmp edx, dword [esp + 0x50]
ja 0x4a9edf
add eax, eax
add eax, dword [esp + 0x48]
mov word [eax], 0x2a
mov eax, dword [esp + 0x4c]
lea ecx, [eax + 1]
mov dword [esp + 0x4c], ecx
add eax, 2
cmp eax, dword [esp + 0x50]
ja 0x4aa15b
mov eax, dword [esp + 0x48]
mov word [eax + ecx*2], 0
push 2
push 0
push 0
push ebp
push 1
push dword [esp + 0x5c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
cmp eax, 0xffffffff
je 0x4a9e29
mov edi, eax
lea esi, [esp + 0x2f0]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
movzx ecx, word [esp + 0x2f0]
cmp eax, 1
jne 0x4a9d66
nop dword [eax]
cmp cx, 0x2e
je 0x4a9d88
cmp eax, 2
jne 0x4a9e3d
cmp cx, 0x2e
jne 0x4a9e3d
cmp word [esp + 0x2f2], 0x2e
jne 0x4a9e3d
push ebp
push edi
call ebx
test eax, eax
je 0x4a9da8
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
movzx ecx, word [esp + 0x2f0]
cmp eax, 1
je 0x4a9d60
jmp 0x4a9d66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4a9ea0
mov ebp, dword [esp + 0x528]
mov eax, dword [ebp]
test eax, eax
lea ebx, [esp + 0x54]
je 0x4a9dd5
cmp eax, 0xffffffff
je 0x4a9dd5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp], 0
lea esi, [ebp + 4]
test byte [ebp + 4], 1
je 0x4a9df0
push dword [ebp + 0xc]
call sub.libc.dll_operator_delete_void_
add esp, 4
xorps xmm0, xmm0
movsd qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [ebp + 0x10], 9
mov byte [ebp + 0x14], 1
xorps xmm0, xmm0
movups xmmword [ebp + 0x15], xmm0
movups xmmword [ebp + 0x24], xmm0
mov dword [ebp + 0x34], 0xffff
xor esi, esi
call fcn.00504d20
mov edx, eax
jmp 0x4aa142
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b0bb0
add esp, 4
jmp 0x4a9c96
lea ebp, [esp + 0x244]
mov dword [esp + 0x238], ebp
mov dword [esp + 0x23c], 0
mov dword [esp + 0x240], 0x80
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
lea ebx, [esp + 0x238]
mov ecx, 0xfde9
mov edx, esi
push ebx
push eax
call fcn.004ab0c0
add esp, 8
mov esi, eax
test eax, eax
je 0x4a9ef5
lea ebx, [esp + 0x54]
mov eax, dword [esp + 0x238]
cmp eax, ebp
jne 0x4aa131
jmp 0x4aa142
push eax
call fcn.004b0bb0
add esp, 4
mov esi, eax
lea ebx, [esp + 0x54]
jmp 0x4aa142
lea edx, [eax + 1]
cmp edx, dword [esp + 0x50]
ja 0x4aa171
mov word [ecx + eax*2], 0x5c
mov edx, dword [esp + 0x4c]
lea eax, [edx + 1]
mov dword [esp + 0x4c], eax
add edx, 2
cmp edx, dword [esp + 0x50]
jbe 0x4a9ceb
lea ecx, [esp + 0x48]
push 2
push edx
push ebx
call fcn.0046e2c0
mov eax, dword [esp + 0x4c]
jmp 0x4a9ceb
mov eax, dword [esp + 0x528]
mov dword [eax], edi
lea eax, [esp + 0x52c]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
lea edx, [esp + 0x1b8]
mov dword [esp + 0x1ac], edx
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 0x80
cmp edi, 0x81
jb 0x4a9f56
lea ecx, [esp + 0x1ac]
push 1
push edi
push edx
call fcn.0046e2c0
mov ecx, dword [esp + 0x1ac]
mov eax, dword [esp + 0x1b0]
jmp 0x4a9f5e
xor eax, eax
mov ecx, edx
test edi, edi
je 0x4a9f72
add ecx, eax
push edi
push ebx
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x1b0]
add eax, edi
mov dword [esp + 0x1b0], eax
mov word [esp + 0x24], 0x105
mov eax, dword [esp + 0x238]
mov ecx, dword [esp + 0x23c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov word [esp + 0x10], 0x101
mov word [esp + 0x1a8], 0x101
mov word [esp + 0x194], 0x101
lea eax, [esp + 0x184]
lea ecx, [esp + 0x198]
mov ebx, esp
lea edi, [esp + 0x14]
lea edx, [esp + 0x1ac]
push eax
push ecx
push ebx
push edi
push 0
push edx
call fcn.004a2c00
add esp, 0x18
mov word [esp + 0x10], 0x105
mov eax, dword [esp + 0x1ac]
mov ecx, dword [esp + 0x1b0]
mov dword [esp], eax
mov dword [esp + 4], ecx
movups xmm0, xmmword [esp + 0x2c4]
movups xmmword [esp + 0x154], xmm0
movdqu xmm0, xmmword [esp + 0x2d0]
pshufd xmm0, xmm0, 0xb1
movdqu xmmword [esp + 0x164], xmm0
movsd xmm0, qword [esp + 0x2e0]
movups xmmword [esp + 0x174], xmm0
lea ecx, [esp + 0x14]
push ebx
call fcn.00465260
movdqu xmm0, xmmword [esp + 0x154]
pshufd xmm0, xmm0, 0x50
pand xmm0, xmmword [0x515c30]
movzx eax, byte [esp + 0x534]
mov byte [esp + 0x24], al
pxor xmm1, xmm1
pcmpeqd xmm1, xmm0
movdqa xmm0, xmm1
pandn xmm0, xmmword [0x515c40]
pand xmm1, xmmword [0x515c50]
movups xmm2, xmmword [esp + 0x164]
movups xmmword [esp + 0x28], xmm2
por xmm1, xmm0
movdqu xmm0, xmmword [esp + 0x174]
punpcklqdq xmm0, xmm1
movdqu xmmword [esp + 0x38], xmm0
movd dword [esp + 0x20], xmm1
mov ebp, dword [esp + 0x528]
lea ebx, [ebp + 4]
test byte [ebp + 4], 1
je 0x4aa0be
push dword [ebp + 0xc]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x14]
movsd qword [ebx], xmm0
mov word [esp + 0x14], 0
movsd xmm0, qword [edi + 0x2c]
movsd qword [ebp + 0x30], xmm0
movups xmm0, xmmword [edi + 0xc]
movups xmm1, xmmword [edi + 0x1c]
movups xmmword [ebp + 0x20], xmm1
movups xmmword [ebp + 0x10], xmm0
call fcn.00504d20
mov edx, eax
mov eax, dword [esp + 0x1ac]
lea ecx, [esp + 0x1b8]
cmp eax, ecx
je 0x4aa116
push eax
mov edi, edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov edx, edi
add esp, 4
mov edi, 0xffffffff
lea ebx, [esp + 0x54]
lea ebp, [esp + 0x244]
mov eax, dword [esp + 0x238]
cmp eax, ebp
je 0x4aa142
push eax
mov ebx, edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov edx, ebx
lea ebx, [esp + 0x58]
add esp, 4
cmp edi, 0xffffffff
je 0x4a9c98
push edi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, edi
jmp 0x4a9c98
lea ecx, [esp + 0x48]
push 2
push eax
push ebx
call fcn.0046e2c0
mov ecx, dword [esp + 0x4c]
jmp 0x4a9d0e
lea ecx, [esp + 0x48]
push 2
push edx
push ebx
call fcn.0046e2c0
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
jmp 0x4a9ec1