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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x100
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x8c]
mov ebx, dword [esi + 0x90]
push edi
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x9c]
xor edi, edi
mov dword [esp + 0x5c], ebx
cmp eax, edi
je 0x46c781
push eax
call fcn.004ff0f0
add esp, 4
mov dword [esi + 0x9c], edi
mov eax, dword [esi + 0xa0]
cmp eax, edi
je 0x46c79a
push eax
call fcn.004ff0f0
add esp, 4
mov dword [esi + 0xa0], edi
mov eax, dword [esi + 0xa4]
cmp eax, edi
je 0x46c7b3
push eax
call fcn.004ff0f0
add esp, 4
mov dword [esi + 0xa4], edi
mov eax, dword [esi + 0xa8]
cmp eax, edi
je 0x46c7cc
push eax
call fcn.004ff0f0
add esp, 4
mov dword [esi + 0xa8], edi
mov eax, dword [0x7af284]
movzx edi, word [eax + 0x6c30]
movzx ebp, word [eax + 0x6c32]
push edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], ebp
call fcn.005003a0
add esp, 4
cmp eax, 1
je 0x46c80c
push edi
call fcn.005003f0
add esp, 4
add eax, eax
mov dword [esp + 0x40], eax
push ebp
call fcn.005003a0
add esp, 4
cmp eax, 1
je 0x46c829
push ebp
call fcn.005003f0
add esp, 4
add eax, eax
mov dword [esp + 0x48], eax
xor edx, edx
lea eax, [ebx + ebp - 1]
div ebx
mov edx, dword [esp + 0x3c]
mov ecx, eax
lea eax, [edi + edx - 1]
xor edx, edx
div dword [esp + 0x3c]
imul ecx, eax
add ecx, ecx
mov dword [esi + 0xc0], ecx
imul ecx, ecx, 0x54
push ecx
push 0
call fcn.004ff0a0
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0xc0]
imul eax, eax, 0x54
push eax
push 0
call fcn.004ff0a0
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0xc0]
lea ecx, [eax + eax*2]
shl ecx, 4
push ecx
push 0
call fcn.004ff0a0
fld qword [0x60f150]
mov dword [esi + 0xa4], eax
fldz
xor eax, eax
fld1
add esp, 0x18
xor ebx, ebx
mov dword [esp + 0x58], eax
test ebp, ebp
jbe 0x46cd48
xor edx, edx
mov dword [esp + 0x38], edx
test edi, edi
jbe 0x46cd38
mov ecx, eax
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
test ecx, ecx
jge 0x46c8cd
fadd dword [0x6087e8]
mov ecx, dword [esp + 0x48]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld st(0)
fsub st(4)
fstp dword [esp + 0x14]
fild dword [esp + 0x48]
test ecx, ecx
jge 0x46c8ef
fadd dword [0x6087e8]
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
fld dword [esp + 0x20]
add eax, ecx
fld st(0)
mov dword [esp + 0x24], eax
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x44]
fild dword [esp + 0x24]
test eax, eax
jge 0x46c919
fadd dword [0x6087e8]
mov eax, dword [esp + 0x40]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld st(0)
fsub st(5)
fstp dword [esp + 0x50]
fild dword [esp + 0x40]
test eax, eax
jge 0x46c93b
fadd dword [0x6087e8]
fstp dword [esp + 0x54]
lea eax, [ebx*8]
sub eax, ebx
fdivrp st(1)
mov ecx, ebx
add eax, eax
shl ecx, 4
add eax, eax
fstp dword [esp + 0x20]
fld dword [esp + 0x14]
fld dword [esp + 0x54]
jmp 0x46c971
fld dword [esp + 0x54]
fld qword [0x60f150]
fxch st(4)
fxch st(2)
fxch st(1)
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
test edx, edx
jge 0x46c983
fadd dword [0x6087e8]
mov edx, dword [esi + 0x9c]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
inc ebx
fld st(0)
fsub st(6)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [eax + edx]
mov edx, dword [esi + 0x9c]
fxch st(3)
fst dword [eax + edx + 4]
mov edx, dword [esi + 0x9c]
fxch st(5)
fst dword [eax + edx + 8]
mov edx, dword [esi + 0x9c]
fxch st(4)
fst dword [eax + edx + 0xc]
mov edx, dword [esi + 0x9c]
fld st(2)
mov dword [eax + edx + 0x10], 0xffffffff
fdivp st(2)
mov edx, dword [esi + 0x9c]
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [eax + edx + 0x14]
fld dword [esp + 0x44]
mov edx, dword [esi + 0x9c]
fstp dword [eax + edx + 0x18]
mov edx, dword [esi + 0x9c]
mov ebp, dword [edx + eax]
mov edi, dword [esi + 0xa4]
add edx, eax
add edi, ecx
mov dword [edi], ebp
mov ebp, dword [edx + 4]
mov dword [edi + 4], ebp
mov ebp, dword [edx + 8]
mov dword [edi + 8], ebp
mov edx, dword [edx + 0xc]
mov dword [edi + 0xc], edx
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
add edx, edi
add eax, 0x1c
add ecx, 0x10
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
mov dword [esp + 0x24], edx
test edx, edx
jge 0x46ca46
fadd dword [0x6087e8]
mov edx, dword [esi + 0x9c]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
inc ebx
fsubrp st(7)
inc ebx
fxch st(6)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [eax + edx]
mov edx, dword [esi + 0x9c]
fxch st(5)
fst dword [eax + edx + 4]
mov edx, dword [esi + 0x9c]
fxch st(4)
fst dword [eax + edx + 8]
mov edx, dword [esi + 0x9c]
fxch st(1)
fst dword [eax + edx + 0xc]
mov edx, dword [esi + 0x9c]
fld dword [esp + 0x38]
mov dword [eax + edx + 0x10], 0xffffffff
fdivrp st(3)
mov edx, dword [esi + 0x9c]
fxch st(2)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [eax + edx + 0x14]
fld dword [esp + 0x44]
mov edx, dword [esi + 0x9c]
fstp dword [eax + edx + 0x18]
fxch st(3)
mov edx, dword [esi + 0x9c]
mov ebp, dword [edx + eax]
mov edi, dword [esi + 0xa4]
mov dword [edi + ecx], ebp
mov ebp, dword [edx + eax + 4]
mov dword [edi + ecx + 4], ebp
mov ebp, dword [edx + eax + 8]
add edx, eax
mov dword [edi + ecx + 8], ebp
mov edx, dword [edx + 0xc]
mov dword [edi + ecx + 0xc], edx
mov edx, dword [esi + 0x9c]
fst dword [eax + edx + 0x1c]
mov edx, dword [esi + 0x9c]
fld dword [esp + 0x50]
add edi, ecx
fstp dword [eax + edx + 0x20]
mov edx, dword [esi + 0x9c]
add eax, 0x1c
fxch st(1)
fst dword [eax + edx + 8]
mov edx, dword [esi + 0x9c]
fxch st(2)
add ecx, 0x10
fst dword [eax + edx + 0xc]
mov edx, dword [esi + 0x9c]
mov dword [eax + edx + 0x10], 0xffffffff
fxch st(6)
mov edx, dword [esi + 0x9c]
fst dword [eax + edx + 0x14]
mov edx, dword [esi + 0x9c]
fld dword [esp + 0x20]
fstp dword [eax + edx + 0x18]
mov edx, dword [esi + 0x9c]
mov edi, dword [esi + 0xa4]
fxch st(5)
mov ebp, dword [edx + eax]
add edx, eax
add edi, ecx
mov dword [edi], ebp
mov ebp, dword [edx + 4]
mov dword [edi + 4], ebp
mov ebp, dword [edx + 8]
mov dword [edi + 8], ebp
mov edx, dword [edx + 0xc]
mov dword [edi + 0xc], edx
mov edx, dword [esi + 0x9c]
add eax, 0x1c
add ecx, 0x10
fst dword [eax + edx]
mov edx, dword [esi + 0x9c]
fxch st(4)
inc ebx
fst dword [eax + edx + 4]
mov edx, dword [esi + 0x9c]
fxch st(2)
inc ebx
fst dword [eax + edx + 8]
mov edx, dword [esi + 0x9c]
fxch st(6)
fst dword [eax + edx + 0xc]
mov edx, dword [esi + 0x9c]
mov dword [eax + edx + 0x10], 0xffffffff
fxch st(3)
mov edx, dword [esi + 0x9c]
fst dword [eax + edx + 0x14]
mov edx, dword [esi + 0x9c]
fld dword [esp + 0x44]
fstp dword [eax + edx + 0x18]
mov edx, dword [esi + 0x9c]
mov ebp, dword [edx + eax]
fxch st(1)
mov edi, dword [esi + 0xa4]
mov dword [edi + ecx], ebp
mov ebp, dword [edx + eax + 4]
mov dword [edi + ecx + 4], ebp
mov ebp, dword [edx + eax + 8]
mov dword [edi + ecx + 8], ebp
add edx, eax
mov edx, dword [edx + 0xc]
mov dword [edi + ecx + 0xc], edx
mov edx, dword [esi + 0x9c]
fstp dword [eax + edx + 0x1c]
mov edx, dword [esi + 0x9c]
fld dword [esp + 0x50]
add edi, ecx
fst dword [eax + edx + 0x20]
mov edx, dword [esi + 0x9c]
add eax, 0x1c
fxch st(6)
fst dword [eax + edx + 8]
mov edx, dword [esi + 0x9c]
fxch st(3)
add ecx, 0x10
fst dword [eax + edx + 0xc]
mov edx, dword [esi + 0x9c]
mov dword [eax + edx + 0x10], 0xffffffff
fxch st(5)
mov edx, dword [esi + 0x9c]
fstp dword [eax + edx + 0x14]
mov edx, dword [esi + 0x9c]
fld dword [esp + 0x20]
fst dword [eax + edx + 0x18]
mov edx, dword [esi + 0x9c]
mov ebp, dword [edx + eax]
fxch st(4)
mov edi, dword [esi + 0xa4]
add edx, eax
mov dword [edi + ecx], ebp
mov ebp, dword [edx + 4]
mov dword [edi + ecx + 4], ebp
mov ebp, dword [edx + 8]
add edi, ecx
mov dword [edi + 8], ebp
mov edx, dword [edx + 0xc]
mov dword [edi + 0xc], edx
mov edx, dword [esi + 0x9c]
fstp dword [eax + edx + 0x1c]
mov edx, dword [esi + 0x9c]
add eax, 0x1c
fxch st(5)
fstp dword [eax + edx + 4]
mov edx, dword [esi + 0x9c]
fxch st(1)
add ecx, 0x10
fst dword [eax + edx + 8]
mov edx, dword [esi + 0x9c]
fxch st(3)
fst dword [eax + edx + 0xc]
mov edx, dword [esi + 0x9c]
mov dword [eax + edx + 0x10], 0xffffffff
fxch st(4)
mov edx, dword [esi + 0x9c]
fstp dword [eax + edx + 0x14]
mov edx, dword [esi + 0x9c]
fxch st(1)
inc ebx
fstp dword [eax + edx + 0x18]
mov edx, dword [esi + 0x9c]
mov edi, dword [esi + 0xa4]
mov ebp, dword [edx + eax]
add edx, eax
add edi, ecx
mov dword [edi], ebp
mov ebp, dword [edx + 4]
mov dword [edi + 4], ebp
mov ebp, dword [edx + 8]
mov dword [edi + 8], ebp
mov edx, dword [edx + 0xc]
mov dword [edi + 0xc], edx
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x4c]
add eax, 0x1c
add ecx, 0x10
mov dword [esp + 0x38], edx
cmp edx, edi
jb 0x46c961
mov eax, dword [esp + 0x58]
fstp st(0)
fld qword [0x60f150]
mov ebp, dword [esp + 0x18]
fxch st(2)
add eax, dword [esp + 0x5c]
mov dword [esp + 0x58], eax
cmp eax, ebp
jb 0x46c8ab
mov eax, dword [esi + 0xc0]
fstp st(1)
shl eax, 7
fstp st(0)
push eax
fstp st(0)
push 0
call fcn.004ff0a0
mov dword [esp + 0x20], edi
fild dword [esp + 0x20]
mov dword [esi + 0xa8], eax
test edi, edi
jge 0x46cd77
fadd dword [0x6087e8]
fld qword [0x60f150]
mov dword [esp + 0x20], ebp
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x30]
fild dword [esp + 0x20]
test ebp, ebp
jge 0x46cd97
fadd dword [0x6087e8]
mov ecx, dword [esp + 0x30]
fmulp st(1)
mov dword [esp + 0x88], ecx
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fldz
mov dword [esp + 0x8c], edx
fst dword [esp + 0x38]
fld1
mov eax, dword [esp + 0x38]
fstp dword [esp + 0x3c]
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x94], ecx
fst dword [esp + 0x30]
mov edx, dword [esp + 0x30]
fst dword [esp + 0x34]
mov eax, dword [esp + 0x34]
fst dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x9c], eax
fstp dword [esp + 0x3c]
lea eax, [esp + 0x88]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0xac], edx
call fcn.005203d0
fstp dword [esp + 0x34]
xor ebx, ebx
add esp, 0x10
cmp dword [esi + 0xc0], ebx
jle 0x46d1a6
fld1
xor edi, edi
fst dword [esp + 0x34]
xor ebp, ebp
fst dword [esp + 0x7c]
fstp dword [esp + 0x6c]
lea ecx, [ecx]
mov edx, dword [esi + 0x9c]
fld dword [edx + ebp]
lea eax, [edx + ebp]
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
fld dword [eax + 4]
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
fld dword [eax + 8]
mov dword [esp + 0xa0], ecx
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
fld dword [eax + 0x1c]
fstp dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
fld dword [eax + 0x20]
fstp dword [esp + 0x74]
mov edx, dword [esp + 0x74]
fld dword [eax + 0x24]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
fstp dword [esp + 0x78]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
fld dword [eax + 0x38]
fstp dword [esp + 0x60]
fld dword [eax + 0x3c]
fstp dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
fld dword [eax + 0x40]
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc4], ecx
fstp dword [esp + 0x68]
mov edx, dword [esp + 0x68]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc8], edx
lea ecx, [esp + 0xc0]
push ecx
mov ecx, dword [esi + 0xa8]
lea edx, [esp + 0xb4]
push edx
mov dword [esp + 0xd4], eax
lea eax, [esp + 0xa8]
push eax
lea edx, [edi + ecx + 0x20]
push edx
call fcn.00520480
mov ecx, dword [esi + 0xa8]
lea eax, [esp + 0x90]
push eax
lea edx, [edi + ecx + 0x20]
push edx
call fcn.005203d0
fstp dword [esp + 0x64]
mov eax, dword [esi + 0xa8]
lea ecx, [edi + eax]
mov edx, dword [ecx + 0x20]
lea eax, [ecx + 0x20]
mov dword [ecx + 0x30], edx
mov edx, dword [eax + 4]
add ecx, 0x30
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov edx, dword [esi + 0xa8]
lea ecx, [esp + 0x98]
push ecx
lea eax, [edi + edx + 0x20]
push eax
call fcn.005202a0
mov ecx, dword [esi + 0xa8]
add esp, 0x20
fldz
fst dword [edi + ecx]
mov edx, dword [esi + 0xa8]
fstp dword [edi + edx + 4]
mov ecx, dword [0x7af290]
call fcn.00435320
fmul dword [esi + 0x94]
mov eax, dword [esi + 0xa8]
lea edx, [esp + 0xd0]
fstp dword [esp + 0x18]
push edx
fld dword [esp + 0x1c]
fstp dword [edi + eax + 8]
mov ecx, dword [esi + 0xa8]
fldz
fstp dword [edi + ecx + 0xc]
call fcn.00521320
fld dword [esp + 0x50]
fdiv dword [esp + 0x28]
lea eax, [esp + 0xd4]
fmul qword [0x60f148]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
push eax
call fcn.00521200
mov ecx, dword [esi + 0xa8]
fld dword [edi + ecx + 0x20]
lea eax, [edi + ecx]
fld dword [eax + 0x24]
add esp, 8
fchs
call fcn.0055e9ba
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
push ecx
lea edx, [esp + 0xd4]
fstp dword [esp]
push edx
call fcn.00521280
mov ecx, dword [esi + 0xa8]
lea eax, [esp + 0xd8]
push eax
add ecx, edi
push ecx
call fcn.00520390
fldz
mov edx, dword [esi + 0xa8]
fstp dword [edi + edx + 8]
fld dword [esi + 0x98]
mov ecx, dword [0x7af290]
fmul qword [0x60f150]
add esp, 0x10
fmul qword [0x60f140]
fdiv qword [0x60f138]
fstp qword [esp + 0x18]
call fcn.00435320
fld dword [esi + 0x98]
fld qword [0x60f140]
mov eax, dword [esi + 0xa8]
fmul st(1), st(0)
fld qword [0x60f138]
fdiv st(2), st(0)
fxch st(3)
fmulp st(2)
fld qword [esp + 0x18]
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [edi + eax + 0x10]
mov ecx, dword [0x7af290]
fld dword [esi + 0x98]
fmul qword [0x60f150]
fmulp st(1)
fdivrp st(1)
fstp qword [esp + 0x18]
call fcn.00435320
fld dword [esi + 0x98]
fld qword [0x60f140]
fmul st(1), st(0)
fld qword [0x60f138]
mov ecx, dword [esi + 0xa8]
fdiv st(2), st(0)
fxch st(3)
fmulp st(2)
fld qword [esp + 0x18]
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [edi + ecx + 0x14]
mov ecx, dword [0x7af290]
fld dword [esi + 0x98]
fmul qword [0x60f150]
fmulp st(1)
fdivrp st(1)
fstp qword [esp + 0x18]
call fcn.00435320
fld dword [esi + 0x98]
fmul qword [0x60f140]
mov edx, dword [esi + 0xa8]
fdiv qword [0x60f138]
fmulp st(1)
fsubr qword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [edi + edx + 0x18]
mov eax, dword [esi + 0xa8]
lea ecx, [edi + eax + 0x40]
push ecx
call fcn.00521320
mov eax, dword [esi + 0xa8]
lea edx, [esp + 0x84]
push edx
lea ecx, [edi + eax + 0x20]
push ecx
call fcn.00520270
inc ebx
add esp, 0xc
add ebp, 0x54
sub edi, 0xffffff80
cmp ebx, dword [esi + 0xc0]
jl 0x46ce50
mov edx, dword [esp + 0x40]
fild dword [esp + 0x40]
test edx, edx
jge 0x46d1b8
fadd dword [0x6087e8]
mov eax, dword [esp + 0x48]
fstp dword [esi + 0xac]
fild dword [esp + 0x48]
test eax, eax
jge 0x46d1d0
fadd dword [0x6087e8]
pop edi
fstp dword [esi + 0xb0]
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret