Function at 0x4aa910
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x894
push ebx
mov ebx, ecx
push ebp
mov dword [esp + 0x14], ebx
call fcn.004aaf60
cmp word [ebx + 0x22c], 0
lea eax, [ebx + 0x22c]
je 0x4aa95c
push eax
mov eax, dword [ebx + 8]
push 1
push eax
mov ecx, ebx
call fcn.004ab010
mov eax, dword [ebx + 0x18]
lea ecx, [ebx + 0x10]
lea edx, [esp + 8]
mov dword [esp + 8], 0x4ffec0
push edx
push 1
push eax
call fcn.004a69f0
lea ecx, [esp + 0x478]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x270]
lea eax, [esp + 0x478]
push edx
push eax
call fcn.004a7c70
lea ecx, [esp + 0x278]
push str.languages_
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x10
lea edx, [esp + 0x270]
lea eax, [esp + 0x694]
push edx
push str._s___.dll
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x694]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4aabf9
push esi
push edi
mov dword [esp + 0x10], 0
test byte [esp + 0x28], 0x10
jne 0x4aabd2
lea eax, [esp + 0x54]
lea ecx, [esp + 0x278]
push eax
push ecx
lea edx, [esp + 0x488]
push 0x4ec998
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea eax, [esp + 0x480]
mov ecx, ebx
push 1
push eax
call fcn.004aa770
test ax, ax
mov dword [esp + 0x24], eax
je 0x4aabd2
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x24]
push ecx
push 1
push edx
mov ecx, ebx
call fcn.004ab010
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
lea ecx, [eax + eax + 2]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
lea edx, [esp + 0x5c]
mov dword [esp + 0x1c], eax
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
lea esi, [ebx + 0x10]
sub ecx, eax
sar ecx, 2
add esp, 0x10
cmp ecx, 1
mov edi, eax
jae 0x4aab3a
mov edx, dword [esi + 4]
test edx, edx
je 0x4aaa98
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x4aaa9d
mov ecx, 1
test edx, edx
jne 0x4aaaa5
xor eax, eax
jmp 0x4aaaaa
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x18], eax
jge 0x4aaab6
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.004247e0
lea ecx, [esp + 0x14]
mov ebx, eax
push ecx
push 1
push ebx
mov ecx, esi
call fcn.00424810
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.004247e0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.004bb6c0
mov edx, dword [esi + 4]
push edx
call fcn.004d3765
mov eax, dword [esp + 0x1c]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.004bb6a0
mov ebx, dword [esp + 0x1c]
lea edx, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x20]
mov dword [esi + 8], edx
jmp 0x4aabce
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x4aab8a
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004247e0
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00424810
mov ecx, dword [esi + 8]
mov eax, edi
cmp edi, ecx
je 0x4aabca
mov edx, dword [esp + 0x14]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x4aab7b
jmp 0x4aabca
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x20], ecx
push ecx
mov ecx, esi
call fcn.004247e0
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x4aabb4
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x4aaba5
lea ecx, [edi + 4]
mov eax, edi
cmp edi, ecx
je 0x4aabca
mov edx, dword [esp + 0x14]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x4aabbd
add dword [esi + 8], 4
inc dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4aabf0
cmp dword [esp + 0x10], 0x80
jl 0x4aa9e6
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x894
ret