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

Disassembly:
mov al, byte [0x6a7572]
sub esp, 0x4c
test al, al
push esi
push edi
je 0x48ae27
push 0x56f224
call fcn.0046d7b0
call fcn.0046e460
mov eax, dword [0x6a7488]
mov ecx, dword [0x6a748c]
mov edi, dword [0x56f1b4]
mov edx, dword [0x56f1b8]
sar eax, 0xc
sar ecx, 0xc
sub eax, edi
sub ecx, edx
mov edx, dword [0x6a7490]
mov dword [esp + 0x48], eax
mov eax, dword [0x56f1bc]
mov dword [esp + 0x4c], ecx
sar edx, 0xc
sub edx, eax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x54], edx
call fcn.0046d840
call fcn.0046dbc0
push 0
push 1
call fcn.00506440
mov esi, dword [0x56fb04]
mov ecx, dword [0x5fcd1c]
add esp, 0x10
lea eax, [esi + 0x50]
cmp eax, ecx
jae 0x48ae27
push ebx
lea ecx, [esp + 0x20]
push ebp
push ecx
mov dword [0x56fb04], eax
call fcn.0046df80
mov eax, dword [esp + 0x28]
add esp, 4
movsx edi, word [0x6a7484]
movsx ebp, ax
shr eax, 0x10
mov dword [esp + 0x18], edi
add esi, 4
movsx ebx, ax
add edi, 0x80
mov dword [esp + 0x20], 4
mov dword [esi], 0xa0a0
mov al, byte [0x54d341]
test al, al
jne 0x48ab79
push 0x54abf0
call fcn.0046cb90
add esp, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [0x6a7494]
and ecx, 0xfff
and edx, 0xffff
shl ecx, 2
add edx, 0xfffffff4
push 0x56eb54
movsx eax, word [ecx + 0x610c4a]
movsx ecx, word [ecx + 0x610c48]
imul eax, edx
imul ecx, edx
sar eax, 0xc
sar ecx, 0xc
lea eax, [eax + eax*4]
add ecx, ebp
shl eax, 6
cdq
and edx, 0x1ff
mov word [esi + 4], cx
add eax, edx
lea ecx, [edi - 0x100]
sar eax, 9
and ecx, 0xfff
add eax, ebx
shl ecx, 2
mov word [esi + 6], ax
mov edx, dword [0x6a7494]
movsx eax, word [ecx + 0x610c4a]
movsx ecx, word [ecx + 0x610c48]
and edx, 0xffff
imul eax, edx
imul ecx, edx
sar eax, 0xc
sar ecx, 0xc
lea eax, [eax + eax*4]
add ecx, ebp
shl eax, 6
cdq
and edx, 0x1ff
mov word [esi + 8], cx
add eax, edx
mov ecx, edi
sar eax, 9
and ecx, 0xfff
add eax, ebx
shl ecx, 2
mov word [esi + 0xa], ax
mov edx, dword [0x6a7494]
movsx eax, word [ecx + 0x610c4a]
and edx, 0xffff
imul eax, edx
movsx ecx, word [ecx + 0x610c48]
sar eax, 0xc
imul ecx, edx
lea eax, [eax + eax*4]
shl eax, 6
cdq
and edx, 0x1ff
add eax, edx
sar ecx, 0xc
sar eax, 9
add ecx, ebp
add eax, ebx
mov word [esi + 0xc], cx
mov word [esi + 0xe], ax
call fcn.0046cb90
xor eax, eax
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
fild dword [0x568158]
or eax, 0xffffff00
xor ecx, ecx
mov cl, byte [esi + 2]
fstp dword [esp + 0x20]
shl eax, 8
or eax, edx
mov edx, dword [0x628614]
shl eax, 8
or eax, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0
mov edx, dword [0x61b5fc]
fild qword [esp + 0x40]
movsx ecx, word [esi + 0xe]
fstp dword [esp + 0x18]
fld dword [esp + 0x20]
fdiv dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 0
push 0x40a00000
movsx edx, word [esi + 0xc]
push eax
push 0x3f800000
push 0x3f800000
fstp dword [esp + 0x24]
fild dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fmul dword [esp + 0x24]
fstp dword [esp + 0x30]
fild dword [0x568154]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
fstp dword [esp + 0x30]
fild qword [esp + 0x58]
movsx ecx, word [esi + 6]
fstp dword [esp + 0x28]
fld dword [esp + 0x30]
fdiv dword [esp + 0x28]
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], ecx
movsx ecx, word [esi + 4]
fstp dword [esp + 0x28]
fild dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fmul dword [esp + 0x28]
fstp dword [esp + 0x30]
fild dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fmul dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
movsx ecx, word [esi + 0xa]
fstp dword [esp + 0x48]
fild dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fmul dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
movsx ecx, word [esi + 8]
fstp dword [esp + 0x4c]
fild dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fmul dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x34]
fstp dword [esp + 0x28]
fild dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x4c]
push eax
push 0x3f800000
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fmul dword [esp + 0x38]
push 0
push edx
push ecx
push eax
fstp dword [esp + 0x5c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x68]
push edx
push eax
mov eax, dword [esp + 0x58]
push 0
push 0x3f800000
push eax
push ecx
call fcn.00507910
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
add esp, 0x58
add esi, 0x14
add edx, 0x400
add edi, 0x400
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
jne 0x48ab5d
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x4c
ret