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

Disassembly:
mov eax, dword [0x60f9a0]
sub esp, 0x7c
add eax, 0x60
cmp eax, 0x300
mov dword [0x60f9a0], eax
jle 0x46a401
mov eax, 0x300
mov dword [0x60f9a0], eax
mov ecx, dword [0x56fb04]
mov edx, dword [0x5fcd1c]
add ecx, 0x780
cmp ecx, edx
ja 0x46acb7
lea eax, [eax + eax*4]
lea ecx, [eax + eax*8]
shl ecx, 1
sar ecx, 6
cmp ecx, 0x1000
jbe 0x46a433
mov ecx, 0x1000
mov eax, ecx
push ebx
shl eax, 8
sub eax, ecx
push ebp
mov edx, eax
push esi
and edx, 0xfffff00f
mov esi, ecx
shr eax, 8
or eax, edx
push edi
shl esi, 0xa
shr eax, 4
and esi, 0xffff0000
push 3
or eax, esi
push 1
mov dword [esp + 0x20], eax
mov eax, ecx
shl eax, 6
mov edi, eax
shr edi, 8
or edi, edx
mov edx, ecx
shl edx, 8
sub edx, ecx
shl edx, 4
shr edi, 4
and edx, 0xffff0000
or edi, edx
mov dword [esp + 0x28], edi
call fcn.00506440
add esp, 8
xor ebx, ebx
mov dword [esp + 0x28], ebx
neg ebx
sbb ebx, ebx
mov ebp, 0x54ed9c
and ebx, 2
mov dword [esp + 0x24], 0x28
dec ebx
movsx eax, byte [ebp]
inc ebp
sub eax, 3
je 0x46a8de
dec eax
jne 0x46ac92
mov al, byte [ebp]
inc ebp
test al, al
jne 0x46a4cc
mov al, 1
jmp 0x46a4ce
xor al, al
mov esi, dword [0x56fb04]
test al, al
lea ecx, [esi + 0x18]
mov dword [0x56fb04], ecx
je 0x46a4ea
mov edx, dword [esp + 0x18]
mov dword [esi + 4], edx
jmp 0x46a4ed
mov dword [esi + 4], edi
mov dword [esi], 0x5000000
mov byte [esi + 7], 0x2a
movsx eax, byte [ebp]
shl eax, 1
inc ebp
push 0x56eb54
mov cx, word [eax*2 + 0x54ecbc]
imul cx, bx
add ecx, 0x100
mov word [esi + 8], cx
mov dx, word [eax*2 + 0x54ecbe]
mov word [esi + 0xa], dx
movsx eax, byte [ebp]
shl eax, 1
inc ebp
mov cx, word [eax*2 + 0x54ecbc]
imul cx, bx
add ecx, 0x100
mov word [esi + 0xc], cx
mov dx, word [eax*2 + 0x54ecbe]
mov word [esi + 0xe], dx
movsx eax, byte [ebp]
shl eax, 1
inc ebp
mov cx, word [eax*2 + 0x54ecbc]
imul cx, bx
add ecx, 0x100
mov word [esi + 0x10], cx
mov dx, word [eax*2 + 0x54ecbe]
mov word [esi + 0x12], dx
movsx eax, byte [ebp]
shl eax, 1
inc ebp
mov cx, word [eax*2 + 0x54ecbc]
imul cx, bx
add ecx, 0x100
mov word [esi + 0x14], cx
mov dx, word [eax*2 + 0x54ecbe]
mov word [esi + 0x16], dx
call fcn.0046cb90
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 4]
mov cl, byte [esi + 5]
mov edi, eax
mov eax, dword [0x628614]
fild dword [0x568158]
or edi, 0xffff8000
xor edx, edx
mov dl, byte [esi + 6]
mov dword [esp + 0x50], eax
shl edi, 8
fstp dword [esp + 0x20]
or edi, ecx
shl edi, 8
or edi, edx
xor eax, eax
mov dword [esp + 0x54], eax
mov edx, dword [0x61b5fc]
fild qword [esp + 0x50]
movsx ecx, word [esi + 0x16]
fstp dword [esp + 0x18]
fld dword [esp + 0x20]
fdiv dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
fstp dword [esp + 0x14]
fild dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fmul dword [esp + 0x14]
fstp dword [esp + 0x30]
fild dword [0x568154]
fstp dword [esp + 0x20]
fild qword [esp + 0x58]
fstp dword [esp + 0x18]
fld dword [esp + 0x20]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x18]
movsx ecx, word [esi + 0x14]
mov dword [esp + 0x20], ecx
push 0x40c00000
fild dword [esp + 0x24]
movsx edx, word [esi + 0x12]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fmul dword [esp + 0x1c]
mov dword [esp + 0x24], edx
push edi
movsx ecx, word [esi + 0x10]
fstp dword [esp + 0x3c]
fild dword [esp + 0x28]
movsx edx, word [esi + 0xe]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fmul dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
push 0x3f800000
movsx ecx, word [esi + 0xc]
fstp dword [esp + 0x44]
fild dword [esp + 0x2c]
push 0x3f800000
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fmul dword [esp + 0x28]
mov dword [esp + 0x30], edx
movsx edx, word [esi + 0xa]
fstp dword [esp + 0x4c]
fild dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fmul dword [esp + 0x24]
mov dword [esp + 0x30], ecx
movsx ecx, word [esi + 8]
fstp dword [esp + 0x50]
fild dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fmul dword [esp + 0x28]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x4c]
fstp dword [esp + 0x58]
fild dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fmul dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x54]
fstp dword [esp + 0x2c]
fild dword [esp + 0x38]
push edi
push 0x3f800000
push eax
push edx
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
mov edx, dword [esp + 0x68]
push ecx
fmul dword [esp + 0x44]
mov ecx, dword [esp + 0x70]
push edi
push eax
push 0x3f800000
push edx
push ecx
push edi
push eax
fstp dword [esp + 0x68]
push eax
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x6c]
push edx
push eax
call fcn.00507910
fild dword [0x568158]
mov ecx, dword [0x628614]
add esp, 0x58
xor eax, eax
mov dword [esp + 0x5c], ecx
fstp dword [esp + 0x40]
mov dword [esp + 0x60], eax
mov ecx, dword [0x61b5fc]
fild qword [esp + 0x5c]
movsx edx, word [esi + 0x16]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fdiv dword [esp + 0x3c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
movsx edx, word [esi + 0x14]
movsx ecx, word [esi + 0xe]
fstp dword [esp + 0x10]
fild dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fmul dword [esp + 0x10]
fstp dword [esp + 0x38]
fild dword [0x568154]
fstp dword [esp + 0x40]
fild qword [esp + 0x64]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fdiv dword [esp + 0x3c]
mov dword [esp + 0x40], edx
movsx edx, word [esi + 0xc]
fstp dword [esp + 0x14]
fild dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fmul dword [esp + 0x14]
mov dword [esp + 0x40], ecx
movsx ecx, word [esi + 0x12]
fstp dword [esp + 0x3c]
fild dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fmul dword [esp + 0x10]
mov dword [esp + 0x40], edx
movsx edx, word [esi + 0x10]
fstp dword [esp + 0x34]
fild dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fmul dword [esp + 0x14]
mov dword [esp + 0x40], ecx
movsx ecx, word [esi + 0xa]
fstp dword [esp + 0x30]
fild dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fmul dword [esp + 0x10]
mov dword [esp + 0x40], edx
fstp dword [esp + 0x2c]
fild dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fmul dword [esp + 0x14]
mov dword [esp + 0x40], ecx
fstp dword [esp + 0x1c]
fild dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fmul dword [esp + 0x10]
movsx edx, word [esi + 8]
mov ecx, dword [esp + 0x38]
push 0x40c00000
push edi
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x44]
push 0x3f800000
fstp dword [esp + 0x1c]
fild dword [esp + 0x4c]
push 0x3f800000
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push edi
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fmul dword [esp + 0x30]
push eax
push 0x3f800000
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x48]
push edi
push 0x3f800000
push eax
push ecx
push edx
push edi
fstp dword [esp + 0x84]
mov ecx, dword [esp + 0x84]
push eax
push eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
jmp 0x46ac86
mov dl, byte [ebp]
inc ebp
test dl, dl
jne 0x46a8ea
mov al, 1
jmp 0x46a8ec
xor al, al
mov esi, dword [0x56fb04]
test al, al
lea ecx, [esi + 0x14]
mov dword [0x56fb04], ecx
je 0x46a908
mov edx, dword [esp + 0x18]
mov dword [esi + 4], edx
jmp 0x46a90b
mov dword [esi + 4], edi
mov dword [esi], 0x4000000
mov byte [esi + 7], 0x22
movsx eax, byte [ebp]
shl eax, 1
inc ebp
push 0x56eb54
mov cx, word [eax*2 + 0x54ecbc]
imul cx, bx
add ecx, 0x100
mov word [esi + 8], cx
mov dx, word [eax*2 + 0x54ecbe]
mov word [esi + 0xa], dx
movsx eax, byte [ebp]
shl eax, 1
inc ebp
mov cx, word [eax*2 + 0x54ecbc]
imul cx, bx
add ecx, 0x100
mov word [esi + 0xc], cx
mov dx, word [eax*2 + 0x54ecbe]
mov word [esi + 0xe], dx
movsx eax, byte [ebp]
shl eax, 1
inc ebp
mov cx, word [eax*2 + 0x54ecbc]
imul cx, bx
add ecx, 0x100
mov word [esi + 0x10], cx
mov dx, word [eax*2 + 0x54ecbe]
mov word [esi + 0x12], dx
call fcn.0046cb90
fild dword [0x568158]
xor eax, eax
mov dword [esp + 0x74], 0
mov al, byte [esi + 4]
xor ecx, ecx
fstp dword [esp + 0x44]
mov edi, eax
mov eax, dword [0x628614]
mov dword [esp + 0x70], eax
mov cl, byte [esi + 5]
fild qword [esp + 0x70]
or edi, 0xffff8000
xor edx, edx
shl edi, 8
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fdiv dword [esp + 0x40]
or edi, ecx
mov dl, byte [esi + 6]
movsx ecx, word [esi + 0x12]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x7c], 0
shl edi, 8
or edi, edx
mov edx, dword [0x61b5fc]
mov dword [esp + 0x78], edx
movsx edx, word [esi + 0x10]
fstp dword [esp + 0x14]
fild dword [esp + 0x44]
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fmul dword [esp + 0x14]
fstp dword [esp + 0x44]
fild dword [0x568154]
mov eax, dword [esp + 0x44]
mov ecx, eax
mov dword [esp + 0x48], eax
fstp dword [esp + 0x44]
fild qword [esp + 0x78]
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fdiv dword [esp + 0x40]
mov dword [esp + 0x44], edx
fstp dword [esp + 0x18]
fild dword [esp + 0x44]
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fmul dword [esp + 0x18]
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
movsx eax, word [esi + 0xe]
mov dword [esp + 0x44], eax
push 0x40c00000
fild dword [esp + 0x48]
movsx eax, word [esi + 0xc]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fmul dword [esp + 0x18]
mov dword [esp + 0x48], eax
push edi
movsx eax, word [esi + 0xa]
fstp dword [esp + 0x48]
fild dword [esp + 0x4c]
push 0x3f800000
push 0x3f800000
push ecx
push edx
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fmul dword [esp + 0x30]
mov dword [esp + 0x5c], eax
push edi
movsx eax, word [esi + 8]
fstp dword [esp + 0x58]
fild dword [esp + 0x60]
push 0x3f800000
push 0
push ecx
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fmul dword [esp + 0x3c]
mov dword [esp + 0x6c], eax
mov eax, edx
mov edx, dword [esp + 0x68]
push eax
fstp dword [esp + 0x64]
fild dword [esp + 0x70]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push edi
push 0
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
fmul dword [esp + 0x4c]
push 0x3f800000
push edx
push eax
push edi
fstp dword [esp + 0x88]
mov edx, dword [esp + 0x88]
push 0
push 0
push ecx
push edx
call fcn.00507910
fild dword [0x568158]
mov eax, dword [0x628614]
mov dword [esp + 0xd8], 0
mov dword [esp + 0xd4], eax
add esp, 0x58
fstp dword [esp + 0x40]
fild qword [esp + 0x7c]
movsx ecx, word [esi + 0xe]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fdiv dword [esp + 0x3c]
mov dword [esp + 0x40], ecx
fstp dword [esp + 0x10]
fild dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fmul dword [esp + 0x10]
fstp dword [esp + 0x40]
fild dword [0x568154]
mov eax, dword [esp + 0x40]
mov ecx, eax
fstp dword [esp + 0x40]
mov edx, dword [0x61b5fc]
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], edx
mov dword [esp + 0x48], eax
fild qword [esp + 0x84]
movsx edx, word [esi + 0xc]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fdiv dword [esp + 0x3c]
mov dword [esp + 0x40], edx
push 0x40c00000
movsx eax, word [esi + 0x12]
push edi
push 0x3f800000
push 0x3f800000
push ecx
fstp dword [esp + 0x28]
fild dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fmul dword [esp + 0x28]
mov dword [esp + 0x54], eax
movsx eax, word [esi + 0x10]
fstp dword [esp + 0x30]
fild dword [esp + 0x54]
mov edx, dword [esp + 0x30]
push edx
push edi
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fmul dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
push 0
movsx eax, word [esi + 0xa]
fstp dword [esp + 0x5c]
fild dword [esp + 0x60]
push 0x3f800000
push ecx
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fmul dword [esp + 0x3c]
mov dword [esp + 0x68], eax
movsx eax, word [esi + 8]
fstp dword [esp + 0x60]
fild dword [esp + 0x68]
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fmul dword [esp + 0x38]
mov dword [esp + 0x68], eax
mov eax, edx
mov edx, dword [esp + 0x64]
push eax
fstp dword [esp + 0x60]
fild dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push edi
push 0x3f800000
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fmul dword [esp + 0x48]
push 0
push edx
push eax
push edi
fstp dword [esp + 0x84]
mov edx, dword [esp + 0x84]
push 0
push 0
push ecx
push edx
call fcn.00507910
mov edi, dword [esp + 0x74]
add esp, 0x54
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jne 0x46a4ab
mov ebx, dword [esp + 0x28]
inc ebx
cmp ebx, 2
mov dword [esp + 0x28], ebx
jl 0x46a496
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
mov al, byte [0x60fa30]
test al, al
je 0x46acce
jmp 0x46a3e0
ret