Function at 0x468547
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 0x4685ad
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.00467985
add esp, 0x18
jmp 0x4687e9
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push ebp
push 0
push ebx
call fcn.00461dab
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
jne 0x4685dc
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.outofmem
xor eax, eax
jmp 0x4687e8
mov eax, dword [esp + 0xbc]
push esi
xor esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
movaps xmm0, xmmword [0x4db330]
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 [0x4db2e0]
mov eax, dword [eax]
pop edx
movups xmmword [esp + 0xa0], xmm0
mov dword [esp + 0x98], ecx
movaps xmm0, xmmword [0x4db340]
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 [0x4db350]
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 0x4687d1
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 0x4687d1
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.00467985
add esp, 0x18
test eax, eax
je 0x4687f2
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4687bb
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 0x46879c
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 0x46875e
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 0x468749
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 0x4685ee
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 0x4687e7