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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x473c10]
push ebx
push esi
cmp eax, 1
push edi
jle 0x461b25
mov ecx, dword [0x4711d4]
lea eax, [eax + eax*2]
mov dword [esp + 0x30], ecx
add ecx, ecx
fild dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
lea ecx, [eax + eax*4]
shl ecx, 2
fdivr qword [0x46e158]
fst qword [esp + 0x78]
fmul qword [0x46d498]
fstp qword [esp + 0x88]
call fcn.00435b70
fld qword [0x46d400]
mov ecx, eax
mov eax, dword [0x473c10]
xor esi, esi
mov dword [esp + 0x38], ecx
cmp eax, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x15], 1
mov dword [esp + 0x24], esi
jle 0x461b4c
dec eax
mov byte [esp + 0x14], 1
cmp esi, eax
mov eax, dword [0x473c24]
sete dl
fld qword [eax + esi*8]
fcomp qword [0x46d400]
mov byte [esp + 0x17], dl
fnstsw ax
test ah, 0x40
jne 0x4616db
mov byte [esp + 0x14], 0
fld qword [0x46d400]
mov al, byte [esp + 0x14]
fst qword [esp + 0x80]
fld qword [0x46d400]
test dl, dl
fst qword [esp + 0x70]
mov byte [ecx + 0x34], al
jne 0x461724
mov eax, dword [0x473c20]
fstp st(0)
fstp st(0)
fld qword [eax + esi*8 + 8]
fsub qword [eax + esi*8]
mov eax, dword [0x473c24]
fst qword [esp + 0x80]
fld qword [eax + esi*8 + 8]
fsub qword [eax + esi*8]
fst qword [esp + 0x70]
fld st(1)
fstp qword [ecx]
fst qword [ecx + 8]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fst qword [esp + 0x68]
fstp st(2)
fstp st(0)
fst qword [ecx + 0x10]
faddp st(1)
fld qword [0x46d400]
fld qword [esp + 0x68]
fcomp qword [0x46d400]
fnstsw ax
test ah, 0x40
jne 0x46176c
fstp st(0)
fld qword [esp + 0x80]
fld qword [esp + 0x70]
fpatan
jmp 0x461779
mov al, byte [esp + 0x15]
test al, al
jne 0x461779
fstp st(0)
fld qword [ecx - 0x24]
mov al, byte [esp + 0x15]
mov byte [esp + 0x16], 0
fst qword [ecx + 0x18]
fld qword [0x46e1b0]
mov edi, dword [0x473c10]
mov ebx, dword [0x473c24]
test al, al
jne 0x4617a8
test dl, dl
jne 0x4617a8
fstp st(0)
fld st(0)
fsub qword [ecx - 0x24]
jmp 0x4617e1
fld qword [ebx]
fsub qword [ebx + edi*8 - 8]
mov eax, dword [0x473c20]
fabs
fld qword [eax]
fsub qword [eax + edi*8 - 8]
fabs
faddp st(1)
fcomp qword [0x46d448]
fnstsw ax
test ah, 1
je 0x4617d3
mov byte [esp + 0x16], 1
jmp 0x4617e3
mov al, byte [esp + 0x14]
test al, al
je 0x4617e3
fstp st(0)
fld st(0)
fadd st(0), st(0)
fabs
fcom qword [0x46e158]
fnstsw ax
test ah, 0x41
jne 0x4617f6
fsubr qword [0x46e160]
mov eax, dword [esp + 0x30]
cmp eax, 2
jne 0x46183a
cmp edi, 3
jne 0x461829
fld qword [ebx]
fcomp qword [0x46d400]
fnstsw ax
test ah, 0x40
je 0x461829
fld qword [ebx + 0x10]
fcomp qword [0x46d400]
fnstsw ax
test ah, 0x40
je 0x461829
fstp st(0)
mov bl, 1
jmp 0x461863
fcomp qword [0x46e3a0]
fnstsw ax
test ah, 1
je 0x461861
mov bl, 1
jmp 0x461863
cmp eax, 3
jne 0x461850
fcomp qword [0x46e398]
fnstsw ax
test ah, 1
je 0x461861
mov bl, 1
jmp 0x461863
fcomp qword [0x46e2a8]
fnstsw ax
test ah, 1
je 0x461861
mov bl, 1
jmp 0x461863
xor bl, bl
mov al, byte [esp + 0x16]
mov byte [esp + 0x13], bl
test al, al
jne 0x461876
mov dl, byte [ebp + 8]
test dl, dl
je 0x46187c
mov bl, 1
mov byte [esp + 0x13], bl
mov byte [ecx + 0x36], al
mov al, byte [esp + 0x14]
test al, al
mov byte [ecx + 0x35], bl
jne 0x461896
mov al, byte [esp + 0x15]
test al, al
jne 0x461896
mov dl, 1
jmp 0x461898
xor dl, dl
test dl, dl
mov byte [ecx + 0x37], dl
je 0x4618ad
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
add edi, eax
mov dword [esp + 0x28], edi
mov al, byte [esp + 0x14]
test al, al
jne 0x4618c1
mov al, byte [esp + 0x17]
test al, al
jne 0x4618c1
mov al, 1
jmp 0x4618c3
xor al, al
mov edi, dword [esp + 0x1c]
mov byte [ecx + 0x38], al
test al, al
je 0x4618dc
mov esi, dword [esp + 0x28]
add esi, edi
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x24]
test dl, dl
je 0x4618ec
test al, al
je 0x4618ec
test bl, bl
jne 0x4618ec
mov dl, 1
jmp 0x4618ee
xor dl, dl
mov bl, byte [esp + 0x14]
mov byte [ecx + 0x39], dl
test bl, bl
mov eax, edi
jne 0x4618fe
lea eax, [edi + 1]
test dl, dl
mov dword [ecx + 0x30], eax
je 0x461907
add eax, eax
mov edx, dword [esp + 0x34]
fadd qword [0x46e1b0]
add edx, eax
mov al, byte [esp + 0x15]
test al, al
mov dword [esp + 0x34], edx
fst qword [esp + 0x68]
je 0x4619d7
mov al, byte [esp + 0x13]
test al, al
je 0x461a5d
mov al, byte [esp + 0x16]
fstp st(0)
fld qword [0x46e1b0]
test al, al
je 0x4619ce
fstp st(0)
fld qword [0x46e198]
fchs
fld qword [esp + 0x68]
fcom st(1)
fnstsw ax
fcom qword [0x46e198]
test ah, 0x41
fnstsw ax
jne 0x461977
test ah, 1
je 0x46197c
fstp st(0)
fstp st(0)
fld qword [0x46d400]
jmp 0x4619bf
test ah, 1
jne 0x461995
fcom qword [0x46e1b8]
fnstsw ax
test ah, 1
je 0x461995
fstp st(0)
fstp st(0)
fld qword [0x46e1b0]
jmp 0x4619bf
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x4619b9
fld qword [esp + 0x68]
fcomp qword [0x46e1c8]
fnstsw ax
test ah, 1
je 0x4619b9
fld qword [0x46e1c0]
jmp 0x4619bf
fld qword [0x46e1d0]
mov al, byte [ebp + 8]
test al, al
je 0x4619ce
fstp st(0)
fld qword [0x46e1c0]
fst qword [esp + 0x68]
jmp 0x461a5d
mov al, byte [esp + 0x17]
test al, al
je 0x461a52
mov al, byte [esp + 0x13]
test al, al
je 0x461a5d
mov al, byte [esp + 0x16]
fstp st(0)
fld qword [0x46e1b0]
test al, al
fchs
je 0x4619ce
fstp st(0)
fld qword [0x46e198]
fchs
fld qword [esp + 0x68]
fcom st(1)
fnstsw ax
fcom qword [0x46e198]
test ah, 0x41
fnstsw ax
jne 0x461a29
test ah, 1
je 0x461a32
fstp st(0)
fstp st(0)
fld qword [0x46d400]
jmp 0x4619bf
test ah, 1
jne 0x461995
fcom qword [0x46e1b8]
fnstsw ax
test ah, 1
je 0x461995
fstp st(0)
fstp st(0)
fld qword [0x46e1b0]
jmp 0x4619bf
fstp st(0)
fld qword [0x46e1b0]
fadd qword [ecx - 0x24]
fcom qword [0x46e158]
fnstsw ax
test ah, 0x41
jne 0x461a70
fsub qword [0x46e160]
fld qword [0x46e158]
fchs
fld st(1)
fcomp st(1)
fnstsw ax
test ah, 1
je 0x461a8b
fld qword [0x46e160]
faddp st(2)
fld qword [esp + 0x68]
fcomp qword [0x46e158]
fnstsw ax
test ah, 0x41
jne 0x461aaa
fld qword [esp + 0x68]
fsub qword [0x46e160]
fstp qword [esp + 0x68]
fld qword [esp + 0x68]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x461ac7
fld qword [0x46e160]
fadd qword [esp + 0x68]
fstp qword [esp + 0x68]
mov al, byte [esp + 0x13]
test al, al
je 0x461add
fadd qword [esp + 0x68]
fmul qword [0x46d498]
fst qword [esp + 0x68]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
fstp qword [ecx + 0x20]
mov dword [ecx + 0x28], edx
mov dword [ecx + 0x2c], eax
mov eax, dword [0x473c10]
add ecx, 0x3c
inc esi
mov byte [esp + 0x15], 0
cmp esi, eax
mov dword [esp + 0x24], esi
jl 0x4616b2
fst qword [esp + 0x80]
fcomp qword [0x46d400]
fnstsw ax
test ah, 0x40
je 0x461b50
mov ecx, dword [esp + 0x38]
call fcn.00435be0
mov ecx, dword [0x473c20]
call fcn.00435be0
mov ecx, dword [0x473c24]
call fcn.00435be0
call fcn.004030c0
mov dword [0x4711dc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
jmp 0x461b20
mov esi, dword [esp + 0x34]
lea edi, [esi + esi*2]
shl edi, 2
mov ecx, edi
call fcn.00435b70
mov ebx, eax
mov ecx, edi
mov dword [esp + 0x64], ebx
call fcn.00435b70
mov edi, eax
lea ecx, [esi*8]
mov dword [esp + 0x68], edi
call fcn.00435b70
mov esi, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x4c], esi
lea ecx, [eax + eax*2]
shl ecx, 2
call fcn.00435b70
fld qword [0x46d400]
fld qword [0x46d3f8]
fdiv qword [esp + 0x80]
mov edx, dword [0x473c10]
mov dword [esp + 0x48], eax
mov ecx, eax
mov dword [esp + 0x2c], ebx
xor eax, eax
mov ebx, edi
cmp edx, eax
mov dword [esp + 0x30], ebx
mov edi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x24], eax
fstp qword [esp + 0x80]
jle 0x461ec6
mov edx, dword [esp + 0x38]
add edx, 0x20
mov dword [esp + 0x18], edx
mov edx, dword [0x473c24]
mov eax, dword [esp + 0x24]
fld qword [edx + eax*8]
mov edx, dword [0x473c20]
fld qword [edx + eax*8]
mov edx, dword [esp + 0x18]
fstp qword [esp + 0x58]
fld qword [edx]
fld st(0)
fsin
mov al, byte [edx + 0x19]
mov esi, dword [edx + 0x10]
mov byte [esp + 0x15], al
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
fcos
mov dword [esp + 0x40], eax
mov al, byte [esp + 0x15]
test al, al
fld st(0)
je 0x461c41
fstp st(0)
fld qword [edx + 8]
fld st(0)
fsin
fstp dword [esp + 0x40]
fcos
fld qword [0x46d400]
fld st(4)
fcomp qword [0x46d400]
fnstsw ax
test ah, 0x40
jne 0x461c61
fstp st(0)
fld qword [esp + 0x88]
jmp 0x461c6e
mov al, byte [edx + 0x14]
test al, al
je 0x461c6e
fstp st(0)
fld qword [esp + 0x78]
test esi, esi
jle 0x461d5c
fld qword [esp + 0x58]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x44], esi
fstp dword [esp + 0x50]
fld qword [esp + 0x70]
fstp dword [esp + 0x54]
fld st(0)
fcos
mov eax, dword [esp + 0x50]
add edi, 4
mov dword [edx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], edi
fld st(1)
fsin
fld st(0)
fmul st(6)
fchs
fstp dword [edx]
fld st(1)
fmul st(6)
fstp dword [edx + 8]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x54]
fld st(0)
fmul st(5)
fchs
fstp dword [ebx]
fld st(1)
fmul st(5)
fstp dword [ebx + 8]
fld st(2)
fdiv qword [0x46e160]
fstp dword [edi - 4]
mov dword [edi], eax
mov al, byte [esp + 0x15]
test al, al
je 0x461d2a
lea eax, [esi + esi*2]
shl eax, 2
fmul st(3)
lea edi, [eax + edx]
mov ebx, dword [edx]
mov dword [edi], ebx
mov ebx, dword [edx + 4]
fchs
mov dword [edi + 4], ebx
mov edx, dword [edx + 8]
mov ebx, dword [esp + 0x30]
mov dword [edi + 8], edx
mov edi, dword [esp + 0x58]
fstp dword [eax + ebx]
fld dword [esp + 0x40]
fstp dword [eax + ebx + 4]
fmul st(2)
fstp dword [eax + ebx + 8]
mov eax, dword [edi - 4]
mov dword [edi + esi*8 - 4], eax
mov edx, dword [edi]
mov dword [edi + esi*8], edx
mov edx, dword [esp + 0x2c]
jmp 0x461d2e
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x44]
add edx, 0xc
fadd qword [esp + 0x78]
add ebx, 0xc
add edi, 4
dec eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], eax
jne 0x461c8e
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x461d68
mov edx, dword [esp + 0x2c]
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
mov al, byte [esp + 0x15]
test al, al
je 0x461d85
lea eax, [esi + esi*2]
lea edi, [edi + esi*8]
shl eax, 2
add edx, eax
add ebx, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x18]
mov dl, byte [eax + 0x17]
test dl, dl
je 0x461de0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test eax, eax
jle 0x461de0
mov dword [esp + 0x44], eax
fcom qword [0x46d400]
mov eax, dword [esp + 0x18]
mov ebx, edx
mov dword [ecx], edx
add ecx, 4
sub ebx, dword [eax - 0x2c]
fnstsw ax
test ah, 0x40
jne 0x461dc6
mov eax, dword [esp + 0x18]
cmp byte [eax - 0x28], 0
jne 0x461dc6
inc ebx
mov eax, dword [esp + 0x44]
mov dword [ecx], ebx
add ecx, 4
inc edx
mov dword [ecx], edx
add ecx, 4
dec eax
mov dword [esp + 0x44], eax
jne 0x461da0
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov al, byte [edx + 0x18]
test al, al
je 0x461e53
mov al, byte [esp + 0x15]
mov edx, dword [esp + 0x20]
test al, al
je 0x461dfc
mov eax, edx
lea edx, [esi + eax]
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x461e53
mov dword [esp + 0x44], eax
fcom qword [0x46d400]
mov dword [ecx], edx
add ecx, 4
lea eax, [edx + 1]
mov dword [esp + 0x54], eax
mov dword [ecx], eax
lea eax, [edx + esi]
add ecx, 4
mov dword [esp + 0x58], eax
fnstsw ax
test ah, 0x40
jne 0x461e3b
mov eax, dword [esp + 0x18]
lea edx, [edx + esi + 1]
cmp byte [eax + 0x50], 0
je 0x461e3f
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x44]
mov dword [ecx], edx
mov edx, dword [esp + 0x54]
add ecx, 4
dec eax
mov dword [esp + 0x44], eax
jne 0x461e08
mov edx, dword [esp + 0x18]
mov al, byte [esp + 0x15]
fld qword [esp + 0x80]
fmul qword [edx - 0x10]
mov edx, dword [esp + 0x20]
add edx, esi
fadd qword [esp + 0x70]
test al, al
mov dword [esp + 0x20], edx
fstp qword [esp + 0x70]
je 0x461e83
mov eax, edx
add eax, esi
mov dword [esp + 0x20], eax
fcomp qword [0x46d400]
mov dword [esp + 0x44], 1
fnstsw ax
test ah, 0x40
jne 0x461ea0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x18]
mov edx, dword [0x473c10]
fild dword [esp + 0x44]
add eax, 0x3c
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
inc eax
cmp eax, edx
mov dword [esp + 0x24], eax
jl 0x461bec
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edi
push edx
fstp st(0)
call fcn.00404730
mov ebx, dword [esp + 0x78]
mov esi, eax
push ebx
push esi
call fcn.00404800
mov eax, dword [esp + 0x64]
push 0
push eax
push esi
call fcn.00404b60
push 0
push 3
push 1
push esi
mov dword [0x4711dc], esi
call fcn.00404be0
add esp, 0x34
call fcn.004048e0
mov ecx, edi
call fcn.00435be0
mov ecx, ebx
call fcn.00435be0
mov ecx, dword [esp + 0x48]
call fcn.00435be0
mov ecx, dword [esp + 0x4c]
call fcn.00435be0
mov ecx, dword [esp + 0x38]
call fcn.00435be0
mov ecx, dword [0x473c20]
call fcn.00435be0
mov ecx, dword [0x473c24]
call fcn.00435be0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret