Function at 0x4f8ce7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xac
push ebx
xor ebx, ebx
mov eax, edx
cmp dword [esp + 0xbc], 0x10
push edi
sete bl
mov dword [esp + 0x18], eax
mov edi, ecx
inc ebx
imul ebx, dword [esp + 0xbc]
cmp dword [esp + 0xc8], 0
mov dword [esp + 0x3c], edi
mov ecx, dword [edi]
jne 0x4f8d4d
push dword [esp + 0xc4]
push dword [esp + 0xc4]
push dword [ecx + 4]
push dword [ecx]
mov ecx, edi
push dword [esp + 0xcc]
push dword [esp + 0xcc]
call fcn.004f8125
add esp, 0x18
jmp 0x4f8f89
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push ebp
push 0
push ebx
call fcn.004f254b
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
jne 0x4f8d7c
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.outofmem
xor eax, eax
jmp 0x4f8f88
mov eax, dword [esp + 0xbc]
push esi
xor esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
movaps xmm0, xmmword [0x50e3d0]
xor ecx, ecx
and dword [esp + 0x94], 0
inc ecx
and dword [esp + 0x9c], 0
mov eax, dword [edi]
movups xmmword [esp + 0x84], xmm0
push 2
movaps xmm0, xmmword [0x50e380]
mov eax, dword [eax]
pop edx
movups xmmword [esp + 0xa0], xmm0
mov dword [esp + 0x98], ecx
movaps xmm0, xmmword [0x50e3e0]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0xb0], edx
mov edx, dword [esp + esi + 0x84]
movups xmmword [esp + 0x68], xmm0
mov ecx, dword [esp + esi + 0x68]
mov dword [esp + 0x38], ecx
sub ecx, edx
dec ecx
mov dword [esp + 0x34], edx
add eax, ecx
movaps xmm0, xmmword [0x50e3f0]
xor edx, edx
and dword [esp + 0xb4], 0
div dword [esp + esi + 0x68]
mov edx, dword [esp + esi + 0xa0]
mov dword [esp + 0x5c], 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
movups xmmword [esp + 0x4c], xmm0
mov ecx, dword [esp + esi + 0x4c]
mov dword [esp + 0x40], ecx
test eax, eax
je 0x4f8f71
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [esp + esi + 0x4c]
sub ecx, edx
dec eax
xor edx, edx
add eax, ecx
div dword [esp + esi + 0x4c]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4f8f71
mov esi, dword [edi]
mov ecx, dword [esp + 0x14]
push dword [esp + 0xcc]
mov edx, dword [esp + 0x24]
mov esi, dword [esi + 8]
push dword [esp + 0xcc]
imul esi, ecx
push eax
push ecx
push dword [esp + 0xd4]
mov ecx, edi
imul esi, dword [esp + 0xdc]
push dword [esp + 0x38]
add esi, 7
sar esi, 3
inc esi
imul esi, eax
mov dword [esp + 0x60], esi
call fcn.004f8125
add esp, 0x18
test eax, eax
je 0x4f8f92
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4f8f5b
mov ecx, dword [esp + 0x14]
xor edx, edx
mov esi, ecx
mov dword [esp + 0x28], edx
imul esi, ebx
mov dword [esp + 0x3c], esi
test ecx, ecx
jle 0x4f8f3c
mov eax, dword [edi]
xor esi, esi
mov edi, dword [edi + 0xc]
mov dword [esp + 0x30], eax
add edi, edx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x30]
push ebx
push edi
mov eax, dword [eax]
imul eax, dword [esp + 0x20]
add eax, esi
add eax, dword [esp + 0x3c]
imul eax, ebx
add eax, ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
add esi, dword [esp + 0x44]
add esp, 0xc
add edi, ebx
sub dword [esp + 0x10], 1
jne 0x4f8efe
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
add edx, esi
add dword [esp + 0x18], edi
sub eax, 1
mov edi, dword [esp + 0x44]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
jne 0x4f8ee9
mov esi, dword [esp + 0x48]
push dword [edi + 0xc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add dword [esp + 0x24], esi
sub dword [esp + 0x28], esi
mov esi, dword [esp + 0x30]
pop ecx
add esi, 4
mov dword [esp + 0x2c], esi
cmp esi, 0x1c
jl 0x4f8d8e
xor eax, eax
mov dword [edi + 0xc], ebp
inc eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xac
ret
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
jmp 0x4f8f87