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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6ec
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edi
call fcn.004c9206
test eax, eax
je 0x460465
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov ebx, dword [ebp + 8]
lea eax, [ebx + ebx*4]
lea ecx, [ebx + eax*2]
shl ecx, 4
lea esi, [ecx + edi]
mov word [esi + 0xf1db4], 0
mov ecx, dword [edi + ebx*4 + 0xeb5d0]
movsx eax, word [esi + 0xf1db2]
test ecx, ecx
mov dword [esp + 0x7c], eax
je 0x460d34
test eax, eax
jle 0x460d34
cmp eax, 2
jg 0x460d34
fild dword [esi + 0xf1d68]
fst qword [esp + 0x48]
fcomp qword [0x4f3db8]
fnstsw ax
test ah, 1
jne 0x460d34
fld qword [esp + 0x48]
fcomp qword [0x4f9a50]
fnstsw ax
test ah, 0x41
je 0x460d34
fld qword [esp + 0x48]
mov eax, dword [esi + 0xf1d44]
mov edx, dword [esi + 0xf1d60]
fmul qword [0x4f4590]
mov ecx, dword [esi + 0xf1d48]
mov dword [esp + 0x38], eax
add edx, eax
mov eax, dword [esi + 0xf1d64]
mov dword [esp + 0x44], ecx
add eax, ecx
fstp qword [esp + 0x48]
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], eax
call fcn.004d6e3a
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x40]
push 1
mov dword [esp + 0x5c], eax
push 1
mov dword [esp + 0x60], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x88], ecx
push 1
push 1
lea ecx, [esp + 0x48]
mov dword [esp + 0x84], eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0x94], edx
mov dword [esp + 0x90], eax
call fcn.004d6e59
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
sub ecx, eax
je 0x460d34
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
sub edx, eax
je 0x460d34
fild dword [esi + 0xf1d6c]
xor edi, edi
xor edx, edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edi
fmul qword [0x4f67d8]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
fstp qword [esp + 0x30]
fld qword [esp + 0x30]
fcomp qword [0x4f3dd0]
fnstsw ax
test ah, 0x40
je 0x4605f7
fld qword [esp + 0x48]
mov dword [esp + 0x1c], 0x186a0
call fcn.004b03b4
mov ecx, eax
mov dword [esp + 0x34], 0x186a0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x64], ecx
jmp 0x460688
fld qword [esp + 0x30]
fcomp qword [0x4f67c0]
fnstsw ax
test ah, 0x40
je 0x46062c
fld qword [esp + 0x48]
mov dword [esp + 0x1c], edi
mov edi, 0x186a0
call fcn.004b03b4
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0
jmp 0x460680
xor ecx, ecx
mov eax, 0x186a0
push ecx
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x3c]
push edi
push edx
push eax
lea edx, [esp + 0xac]
push ecx
push edx
call fcn.0041d9c0
fld qword [esp + 0x30]
fmul qword [0x4f6770]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
fsin
mov edi, dword [eax + 4]
fdivr qword [esp + 0x48]
call fcn.004b03b4
mov edx, dword [esp + 0x1c]
mov ecx, edi
neg ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x54], 1
cmp eax, edi
je 0x460a42
lea ecx, [esp + 0x48]
lea edx, [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x84]
push edi
push ecx
push eax
push edx
call fcn.0041ba00
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x88]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x84]
push edi
push eax
push ecx
push edx
call fcn.0041ba00
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
cmp ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
jge 0x46077c
cmp edi, eax
jge 0x46077c
mov edx, eax
sub eax, ecx
sub edx, edi
cmp eax, edx
jl 0x460763
mov eax, edx
cdq
idiv dword [esp + 0x14]
inc eax
imul eax, dword [esp + 0x14]
add ecx, eax
add eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
jmp 0x4607c7
mov edx, ecx
sub edi, eax
sub edx, eax
cmp edx, edi
mov eax, edx
jg 0x46078a
mov eax, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cdq
idiv edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
cdq
idiv edi
mov eax, dword [esp + 0x10]
test edx, edx
jne 0x4607b1
test eax, eax
jle 0x4607b1
dec edi
mov dword [esp + 0x14], edi
imul eax, edi
sub ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x88]
sub ecx, eax
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x460cfa
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x68]
lea eax, [esp + 0xb8]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x38]
push edi
push edx
push eax
push ebx
call fcn.0047d1d0
test eax, eax
je 0x4609e8
mov edx, dword [esp + 0x68]
cmp edx, 2
jl 0x4609e8
jne 0x4608a0
movsx edi, word [esi + 0xf1db4]
shl edi, 1
cmp edi, 0x18e
jg 0x460cfa
mov ecx, dword [esp + 0xb8]
mov edx, dword [esi + 0xf1d44]
mov eax, dword [esi + 0xf1d48]
sub ecx, edx
mov edx, dword [esp + 0xbc]
sub edx, eax
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
shl eax, 4
add eax, edi
mov edi, dword [esp + 0x2c]
lea eax, [edi + eax*8]
mov dword [eax + 0xf815c], ecx
mov dword [eax + 0xf8160], edx
mov ecx, dword [esp + 0xc0]
mov edx, dword [esi + 0xf1d44]
mov edi, dword [esi + 0xf1d48]
sub ecx, edx
mov edx, dword [esp + 0xc4]
mov dword [eax + 0xf8164], ecx
sub edx, edi
mov dword [eax + 0xf8168], edx
inc word [esi + 0xf1db4]
jmp 0x4609e8
lea eax, [edx - 1]
test eax, eax
jle 0x460916
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xb8]
mov edi, dword [esp + 0x18]
cmp edi, edx
jge 0x460906
sub edx, edi
lea eax, [ecx + 8]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 4]
mov edi, dword [ecx + 4]
cmp edx, edi
jge 0x4608f0
mov edx, dword [ecx]
mov dword [esp + 0xac], edi
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov dword [eax], edx
mov edx, dword [esp + 0xac]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
add eax, 8
dec edx
mov dword [esp + 0x10], edx
jne 0x4608c7
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x18]
inc edi
add ecx, 8
mov dword [esp + 0x18], edi
dec edi
lea eax, [edx - 1]
cmp edi, eax
jl 0x4608b6
test eax, eax
mov dword [esp + 0x10], 0
jle 0x4609e8
lea edi, [esp + 0xbc]
mov eax, dword [edi + 4]
mov edx, dword [edi - 4]
add eax, edx
push ebx
cdq
sub eax, edx
mov edx, dword [edi + 8]
mov ecx, eax
mov eax, dword [edi]
add eax, edx
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.0046f460
test eax, eax
je 0x4609cf
movsx edx, word [esi + 0xf1db4]
shl edx, 1
cmp edx, 0x18e
jg 0x4609e8
mov ecx, dword [edi - 4]
mov eax, dword [esi + 0xf1d44]
sub ecx, eax
mov eax, dword [edi]
sub eax, dword [esi + 0xf1d48]
mov dword [esp + 0xb4], eax
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
shl eax, 4
add eax, edx
mov edx, dword [esp + 0x2c]
lea eax, [edx + eax*8]
mov dword [eax + 0xf815c], ecx
mov ecx, dword [esp + 0xb4]
mov dword [eax + 0xf8160], ecx
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0xf1d44]
sub ecx, edx
mov edx, dword [edi + 8]
sub edx, dword [esi + 0xf1d48]
mov dword [eax + 0xf8164], ecx
mov dword [eax + 0xf8168], edx
inc word [esi + 0xf1db4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
inc eax
add edi, 8
dec edx
mov dword [esp + 0x10], eax
cmp eax, edx
jl 0x46092d
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
sub esp, 0x10
add ecx, eax
add edi, eax
mov eax, esp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], edi
mov dword [eax], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
push eax
push edi
push edx
push ecx
call fcn.0041b990
test eax, eax
jne 0x4607cb
mov dword [esp + 0x54], eax
jmp 0x4607cb
mov eax, dword [esp + 0x5c]
test eax, eax
jl 0x460a5d
cdq
idiv ecx
mov edi, eax
inc edi
imul edi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
jmp 0x460a85
neg eax
mov dword [esp + 0x10], eax
cdq
idiv ecx
mov edi, eax
mov eax, dword [esp + 0x10]
cdq
idiv ecx
test edx, edx
jne 0x460a78
test edi, edi
jle 0x460a78
dec edi
imul edi, ecx
neg edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x54]
test eax, eax
je 0x460cfa
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x3d8]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push eax
push edi
push ecx
mov ecx, dword [esp + 0x44]
push ebx
call fcn.0047d1d0
test eax, eax
je 0x460ca1
mov edx, dword [esp + 0x60]
cmp edx, 2
jl 0x460ca1
jne 0x460b5a
movsx edi, word [esi + 0xf1db4]
shl edi, 1
cmp edi, 0x18e
jg 0x460cfa
mov ecx, dword [esp + 0x3d8]
mov edx, dword [esi + 0xf1d44]
mov eax, dword [esi + 0xf1d48]
sub ecx, edx
mov edx, dword [esp + 0x3dc]
sub edx, eax
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
shl eax, 4
add eax, edi
mov edi, dword [esp + 0x2c]
lea eax, [edi + eax*8]
mov dword [eax + 0xf815c], ecx
mov dword [eax + 0xf8160], edx
mov ecx, dword [esp + 0x3e0]
mov edx, dword [esi + 0xf1d44]
mov edi, dword [esi + 0xf1d48]
sub ecx, edx
mov edx, dword [esp + 0x3e4]
mov dword [eax + 0xf8164], ecx
sub edx, edi
mov dword [eax + 0xf8168], edx
inc word [esi + 0xf1db4]
jmp 0x460c9d
lea eax, [edx - 1]
test eax, eax
jle 0x460bd5
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x3d8]
mov edi, dword [esp + 0x18]
cmp edi, edx
jge 0x460bc1
sub edx, edi
lea eax, [ecx + 8]
mov dword [esp + 0x10], edx
mov edx, dword [eax]
mov edi, dword [ecx]
cmp edx, edi
jge 0x460bab
mov edx, edi
mov edi, dword [ecx + 4]
mov dword [esp + 0x9c], edi
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov dword [eax], edx
mov edx, dword [esp + 0x9c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
add eax, 8
dec edx
mov dword [esp + 0x10], edx
jne 0x460b81
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x18]
inc edi
add ecx, 8
mov dword [esp + 0x18], edi
dec edi
lea eax, [edx - 1]
cmp edi, eax
jl 0x460b70
mov edi, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x10], 0
jle 0x460ca1
lea edi, [esp + 0x3dc]
mov eax, dword [edi + 4]
mov edx, dword [edi - 4]
add eax, edx
push ebx
cdq
sub eax, edx
mov edx, dword [edi]
mov ecx, eax
mov eax, dword [edi + 8]
add eax, edx
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.0046f460
test eax, eax
je 0x460c84
movsx eax, word [esi + 0xf1db4]
shl eax, 1
cmp eax, 0x18e
jg 0x460c9d
mov ecx, dword [edi - 4]
mov edx, dword [esi + 0xf1d44]
lea ebx, [ebx + ebx*4]
sub ecx, edx
mov edx, dword [edi]
lea ebx, [ebx + ebx*4]
sub edx, dword [esi + 0xf1d48]
shl ebx, 4
add ebx, eax
mov eax, dword [esp + 0x2c]
lea eax, [eax + ebx*8]
mov dword [eax + 0xf815c], ecx
mov dword [eax + 0xf8160], edx
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0xf1d44]
mov ebx, dword [esi + 0xf1d48]
sub ecx, edx
mov edx, dword [edi + 8]
mov dword [eax + 0xf8164], ecx
sub edx, ebx
mov ebx, dword [ebp + 8]
mov dword [eax + 0xf8168], edx
inc word [esi + 0xf1db4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
inc eax
add edi, 8
dec ecx
mov dword [esp + 0x10], eax
cmp eax, ecx
jl 0x460bec
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
sub esp, 0x10
add edi, eax
add ecx, eax
mov eax, dword [esp + 0x48]
mov edx, esp
mov dword [esp + 0x30], ecx
push ecx
mov ecx, dword [esp + 0x6c]
mov dword [edx], eax
mov eax, dword [esp + 0x50]
push ecx
push edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x44], edi
mov dword [edx + 8], eax
mov eax, dword [esp + 0x60]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x90]
push edx
call fcn.0041b990
test eax, eax
jne 0x460a85
mov dword [esp + 0x54], eax
jmp 0x460a85
cmp dword [esp + 0x7c], 2
jne 0x460d34
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x7c], 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jmp 0x460684
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4