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

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x444], 1
jl 0x46c7d4
mov eax, dword [edi + 0x448]
mov dword [esp + 0x30], 0
mov cl, byte [eax + 0x14]
mov dl, byte [eax + 0x15]
shr cl, 1
mov byte [esp + 0x40], cl
mov cl, byte [eax + 0x16]
shr cl, 1
shr dl, 1
mov byte [esp + 0x18], cl
mov ecx, dword [edi + 0x450]
mov byte [esp + 0x28], dl
mov dl, byte [eax + 0x17]
mov eax, dword [edi + 0x44c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x40]
mov byte [esp + 0x2c], dl
mov edx, dword [edi + ecx*4 + 0x468]
mov dword [esp + 0x14], eax
mov eax, dword [edi + ecx*4 + 0x464]
sub edx, eax
test edx, 0xfffffffe
jle 0x46c488
mov edx, dword [esp + 0x30]
xor ecx, ecx
mov cx, word [eax + edx*2]
push ecx
call fcn.0045daa0
add esp, 4
test al, al
je 0x46c162
mov eax, dword [esp + 0xa8]
xor edx, edx
mov ecx, dword [edi + eax*4 + 0x464]
mov eax, dword [esp + 0x30]
mov dx, word [ecx + eax*2]
push edx
call fcn.0045da90
mov ecx, dword [edi + 0x448]
mov esi, eax
mov dl, byte [ecx + 0x17]
mov byte [esp + 0x44], dl
mov eax, dword [esp + 0x44]
and eax, 0xff
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul qword [0x553018]
fstp dword [esp]
push esi
call fcn.004595b0
fmul qword [0x552540]
fadd dword [esp + 0x2c]
sub esp, 8
mov esi, esp
push ecx
mov ecx, dword [edi + 0x448]
fstp dword [esp]
call fcn.0046d8e0
fstp dword [esp + 0x2c]
call fcn.0045da80
fadd dword [esp + 0x2c]
push ecx
mov ecx, esi
fadd dword [esp + 0x2c]
fstp dword [esp]
call fcn.0045e750
call fcn.0045d910
add esp, 0x10
call fcn.0045da80
fadd st(0), st(0)
fadd dword [esp + 0x14]
jmp 0x46c453
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0x30]
mov edx, dword [edi + ecx*4 + 0x464]
mov ecx, edi
mov ax, word [edx + eax*2]
mov dword [esp + 0x18], eax
and eax, 0xffff
push eax
call fcn.0046bfc0
cmp word [esp + 0x18], 0x20
mov esi, eax
je 0x46c41f
mov eax, dword [edi + 0x448]
mov edx, dword [esi + 4]
fild dword [esi + 0x18]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
fmul dword [eax + 8]
mov ecx, dword [esi]
push ecx
mov ecx, dword [esp + 0x30]
fmul dword [0x55c0d0]
push edx
mov edx, dword [edi + 0x24]
push ebx
push ecx
push ebp
push edx
fadd dword [esp + 0x40]
sub esp, 8
lea ecx, [esp + 0xb0]
fstp dword [esp + 4]
fild dword [esi + 0x10]
fmul dword [eax + 4]
fmul dword [0x55c0d0]
fld dword [eax + 0x18]
fmul dword [eax + 4]
fmul dword [0x55c0d0]
faddp st(1)
fadd dword [esp + 0x38]
fstp dword [esp]
call fcn.0046d8f0
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 4]
fld dword [0x55c0d0]
mov ecx, dword [eax]
mov eax, dword [edi + 0x448]
push edx
fmul dword [eax + 8]
fstp dword [esp + 0x24]
fld dword [0x55c0d0]
fmul dword [eax + 4]
fstp dword [esp + 0x20]
fld dword [eax + 0x18]
fmul dword [eax + 4]
fmul dword [0x55c0d0]
fstp dword [esp + 0x14]
fld dword [esi + 8]
fstp qword [esp + 0x3c]
call fcn.00461cb0
mov dword [esp + 0x38], eax
push ecx
fild dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [edi + 0x24]
fdivr qword [0x552510]
fsubr qword [esp + 0x40]
fstp dword [esp]
fild dword [esi + 0x18]
push eax
mov eax, dword [esi + 0x10]
push ebx
push ecx
fmul dword [esp + 0x34]
mov ecx, dword [esi + 0x20]
push ebp
push edx
fadd dword [esp + 0x40]
sub esp, 8
add eax, ecx
mov dword [esp + 0x44], eax
fstp dword [esp + 4]
fild dword [esp + 0x44]
fmul dword [esp + 0x40]
fadd dword [esp + 0x34]
fadd dword [esp + 0x38]
lea ecx, [esp + 0x80]
fstp dword [esp]
call fcn.0046d8f0
mov eax, dword [edi + 0x448]
mov ecx, dword [esp + 0x18]
fld dword [0x55c0d0]
fmul dword [eax + 8]
mov ecx, dword [ecx]
mov dword [esp + 0x1c], ecx
fstp dword [esp + 0x20]
fld dword [0x55c0d0]
fmul dword [eax + 4]
fstp dword [esp + 0x34]
fld dword [esi + 0xc]
fstp qword [esp + 0x38]
call fcn.00461ce0
mov dword [esp + 0x10], eax
push ecx
fild dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
fdivr qword [0x552510]
fsubr qword [esp + 0x3c]
fstp dword [esp]
fld dword [esi + 8]
fstp qword [esp + 0x3c]
call fcn.00461cb0
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x30]
fild dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [edi + 0x24]
fdivr qword [0x552510]
fsubr qword [esp + 0x40]
fstp dword [esp]
push edx
mov edx, dword [esi + 0x24]
push ebx
push eax
mov eax, dword [esi + 0x18]
push ebp
add edx, eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], edx
push ecx
fild dword [esp + 0x2c]
mov ecx, dword [esi + 0x20]
sub esp, 8
add eax, ecx
lea ecx, [esp + 0x98]
fmul dword [esp + 0x44]
mov dword [esp + 0x34], eax
fadd dword [esp + 0x48]
fstp dword [esp + 4]
fild dword [esp + 0x34]
fmul dword [esp + 0x58]
fadd dword [esp + 0x38]
fstp dword [esp]
call fcn.0046d8f0
mov eax, dword [edi + 0x448]
mov ecx, dword [esp + 0x18]
fld dword [0x55c0d0]
fmul dword [eax + 8]
mov ecx, dword [ecx]
fstp dword [esp + 0x1c]
fld dword [0x55c0d0]
fmul dword [eax + 4]
fstp dword [esp + 0x20]
fld dword [esi + 0xc]
fstp qword [esp + 0x38]
call fcn.00461ce0
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fdivr qword [0x552510]
fsubr qword [esp + 0x38]
mov edx, dword [esi]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
fstp dword [esp]
push edx
mov edx, dword [edi + 0x24]
push eax
mov eax, dword [esi + 0x24]
push ebx
push ecx
push ebp
push edx
mov edx, dword [esi + 0x18]
sub esp, 8
add eax, edx
lea ecx, [esp + 0x68]
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x40]
fadd dword [esp + 0x48]
fstp dword [esp + 4]
fild dword [esi + 0x10]
fmul dword [esp + 0x44]
fadd dword [esp + 0x38]
fstp dword [esp]
call fcn.0046d8f0
lea ecx, [esp + 0x44]
lea edx, [esp + 0x74]
push ecx
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x94]
push eax
push ecx
call fcn.00456520
add esp, 0x10
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x14]
mov eax, dword [edi + 0x448]
add edx, ecx
add edx, dword [esi + 0x10]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul dword [eax + 4]
fmul dword [0x55c0d0]
fld dword [eax + 0xc]
fmul dword [eax + 4]
fmul dword [0x55c0d0]
faddp st(1)
fadd dword [esp + 0x14]
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x30]
fstp dword [esp + 0x14]
mov eax, dword [edi + edx*4 + 0x464]
mov edx, dword [edi + edx*4 + 0x468]
sub edx, eax
inc ecx
sar edx, 1
cmp ecx, edx
mov dword [esp + 0x30], ecx
jl 0x46c0a8
mov ecx, dword [esp + 0xa8]
mov al, byte [edi + 0x4e1]
test al, al
je 0x46c7c0
mov eax, dword [edi + 0x460]
dec eax
cmp ecx, eax
jne 0x46c7c0
push 0x2e
mov ecx, edi
call fcn.0046bfc0
mov esi, eax
mov eax, dword [edi + 0x448]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
add edx, dword [esi + 0x20]
mov dword [esp + 0x1c], ecx
add edx, ecx
mov ecx, dword [eax]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
fild dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
push edx
mov edx, dword [esp + 0x30]
fadd dword [eax + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [edi + 0x24]
fmul dword [eax + 4]
push ebx
push ecx
push ebp
push edx
fmul dword [0x55c0d0]
sub esp, 8
lea ecx, [esp + 0x68]
fstp dword [esp + 0x54]
fild dword [esi + 0x18]
fmul dword [eax + 8]
fmul dword [0x55c0d0]
fadd dword [esp + 0x48]
fstp dword [esp + 4]
fld dword [eax + 0x18]
fmul dword [eax + 4]
fmul dword [0x55c0d0]
fild dword [esp + 0x40]
fmul dword [eax + 4]
fmul dword [0x55c0d0]
faddp st(1)
fadd dword [esp + 0x38]
fstp dword [esp]
call fcn.0046d8f0
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 4]
fld dword [0x55c0d0]
mov ecx, dword [eax]
mov eax, dword [edi + 0x448]
push edx
fmul dword [eax + 8]
fstp dword [esp + 0x20]
fld dword [0x55c0d0]
fmul dword [eax + 4]
fstp dword [esp + 0x24]
fld dword [eax + 0x18]
fmul dword [eax + 4]
fmul dword [0x55c0d0]
fstp dword [esp + 0x38]
fld dword [esi + 8]
fstp qword [esp + 0x3c]
call fcn.00461cb0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
fild dword [esp + 0x14]
mov edx, dword [edi + 0x24]
push ecx
mov ecx, dword [esp + 0x30]
fdivr qword [0x552510]
fsubr qword [esp + 0x40]
fstp dword [esp]
push eax
push ebx
push ecx
push ebp
fild dword [esi + 0x18]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x10]
push edx
add eax, ecx
fmul dword [esp + 0x38]
sub esp, 8
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x98]
fadd dword [esp + 0x48]
fstp dword [esp + 4]
fild dword [esp + 0x34]
fmul dword [esp + 0x44]
fadd dword [esp + 0x58]
fadd dword [esp + 0x38]
fstp dword [esp]
call fcn.0046d8f0
mov eax, dword [edi + 0x448]
mov ecx, dword [esp + 0x18]
fld dword [0x55c0d0]
fmul dword [eax + 8]
mov ecx, dword [ecx]
mov dword [esp + 0x1c], ecx
fstp dword [esp + 0x20]
fld dword [0x55c0d0]
fmul dword [eax + 4]
fstp dword [esp + 0x34]
fld dword [esi + 0xc]
fstp qword [esp + 0x38]
call fcn.00461ce0
mov dword [esp + 0x10], eax
push ecx
fild dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
fdivr qword [0x552510]
fsubr qword [esp + 0x3c]
fstp dword [esp]
fld dword [esi + 8]
fstp qword [esp + 0x3c]
call fcn.00461cb0
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x30]
fild dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [edi + 0x24]
fdivr qword [0x552510]
fsubr qword [esp + 0x40]
fstp dword [esp]
push edx
mov edx, dword [esi + 0x24]
push ebx
push eax
mov eax, dword [esi + 0x18]
push ebp
add edx, eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x28], edx
push ecx
fild dword [esp + 0x2c]
mov ecx, dword [esi + 0x10]
sub esp, 8
add eax, ecx
lea ecx, [esp + 0x80]
fmul dword [esp + 0x44]
mov dword [esp + 0x34], eax
fadd dword [esp + 0x48]
fstp dword [esp + 4]
fild dword [esp + 0x34]
fmul dword [esp + 0x58]
fadd dword [esp + 0x38]
fstp dword [esp]
call fcn.0046d8f0
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
mov eax, dword [edi + 0x448]
fld dword [0x55c0d0]
fmul dword [eax + 8]
fstp dword [esp + 0x1c]
fld dword [0x55c0d0]
fmul dword [eax + 4]
fstp dword [esp + 0x20]
fld dword [esi + 0xc]
fstp qword [esp + 0x38]
call fcn.00461ce0
mov dword [esp + 0x10], eax
mov edx, dword [esi]
fild dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
fdivr qword [0x552510]
fsubr qword [esp + 0x3c]
fstp dword [esp]
push edx
mov edx, dword [edi + 0x24]
push eax
mov eax, dword [esi + 0x24]
push ebx
push ecx
push ebp
push edx
mov edx, dword [esi + 0x18]
sub esp, 8
add eax, edx
lea ecx, [esp + 0xb0]
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x40]
fadd dword [esp + 0x48]
fstp dword [esp + 4]
fild dword [esi + 0x10]
fmul dword [esp + 0x44]
fadd dword [esp + 0x38]
fstp dword [esp]
call fcn.0046d8f0
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.00456520
fld dword [esp + 0x40]
fadd dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add esp, 0x10
fstp dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x18]
push ebx
push eax
push ebp
push esi
push ecx
push edx
mov ecx, edi
call fcn.0046d940
fld dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
fadd dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push eax
push ebx
push ecx
push ebp
push esi
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
push edx
push eax
mov ecx, edi
call fcn.0046d940
fld dword [esp + 0x30]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov dword [edi + 0x44c], ecx
mov dword [edi + 0x450], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4