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

Disassembly:
mov eax, dword [0x5a1740]
sub esp, 0xe4
cmp eax, 0xa
push ebx
mov ebx, ecx
jne 0x4f9e40
call fcn.004fb400
pop ebx
add esp, 0xe4
ret
mov eax, dword [0x5c4f64]
xor ecx, ecx
cmp eax, ecx
je 0x4fad17
mov al, byte [ebx]
test al, al
mov byte [esp + 0x37], al
je 0x4f9e6b
mov dword [ebx + 0xc8], ecx
mov edx, dword [0x5b2138]
mov dword [ebx + 0xcc], edx
mov edx, dword [ebx + 0x6c]
push ebp
push esi
push edi
xor edi, edi
mov di, word [edx + 0x170]
test al, al
je 0x4f9e87
mov word [ebx + 0xee], cx
jmp 0x4f9ec2
mov bp, word [ebx + 0xec]
mov cx, word [ebx + 0xee]
sub edi, ebp
movsx edx, cx
mov eax, edi
movsx esi, ax
lea edi, [edx - 1]
cmp esi, edi
jge 0x4f9eab
lea eax, [ecx - 1]
jmp 0x4f9eb3
inc edx
cmp esi, edx
jle 0x4f9eb3
lea eax, [ecx + 1]
movsx edi, bp
movsx ecx, ax
add edi, ecx
mov word [ebx + 0xee], ax
mov ecx, dword [esp + 0x18]
mov word [ebx + 0xec], di
mov eax, dword [0x5c4f64]
or edx, 0xffffffff
xor esi, esi
test eax, eax
jle 0x4f9f07
mov ebp, dword [0x5c4ee8]
mov ax, di
sub ax, word [ebp]
and eax, 0xffff
cmp eax, edx
jl 0x4f9ef6
cmp edx, 0xffffffff
jne 0x4f9efa
mov edx, eax
mov ecx, esi
mov eax, dword [0x5c4f64]
inc esi
add ebp, 0x2c
cmp esi, eax
jl 0x4f9ee1
mov eax, dword [0x5c4ee8]
lea edx, [ecx + ecx*4]
lea esi, [ecx + edx*2]
shl esi, 2
mov dword [esp + 0x18], esi
mov dl, byte [esi + eax + 4]
mov eax, dword [0x588f28]
test dl, 1
je 0x4f9f36
mov ebp, ecx
mov dword [esp + 0x14], 0x3f800000
jmp 0x4f9fec
mov edx, dword [0x575838]
test dh, 0x42
jne 0x4f9f99
cmp eax, 5
je 0x4f9f99
cmp eax, 6
je 0x4f9f99
cmp eax, 8
je 0x4f9f99
cmp eax, 0xb
jne 0x4f9f5e
xor eax, eax
mov al, byte [0x5ac0fd]
jmp 0x4f9f86
cmp eax, 0xa
je 0x4f9f78
cmp eax, 9
je 0x4f9f78
mov al, byte [0x5955dd]
test al, al
jne 0x4f9f8a
mov eax, dword [0x5ac060]
jmp 0x4f9f86
mov edx, dword [0x5c463c]
xor eax, eax
mov al, byte [edx + 0xae1]
test eax, eax
je 0x4f9f99
mov ebp, dword [0x5c4f64]
lea eax, [ecx + ebp - 1]
cdq
idiv ebp
jmp 0x4f9fa3
lea eax, [ecx + 1]
cdq
idiv dword [0x5c4f64]
mov ebp, edx
cmp ebp, ecx
jne 0x4f9fb3
mov dword [esp + 0x14], 0x3f800000
jmp 0x4f9fec
mov eax, dword [0x5c4ee8]
lea edx, [ebp + ebp*4]
mov si, word [esi + eax]
lea edx, [ebp + edx*2]
sub edi, esi
mov ax, word [eax + edx*4]
and edi, 0xffff
mov dword [esp + 0x10], edi
sub ax, si
fild dword [esp + 0x10]
and eax, 0xffff
mov dword [esp + 0x10], eax
fidiv dword [esp + 0x10]
fstp dword [esp + 0x14]
mov eax, dword [0x575838]
test ah, 0x42
jne 0x4fa056
mov eax, dword [0x588f28]
cmp eax, 5
je 0x4fa056
cmp eax, 6
je 0x4fa056
cmp eax, 8
je 0x4fa056
cmp eax, 0xb
jne 0x4fa018
xor eax, eax
mov al, byte [0x5ac0fd]
jmp 0x4fa040
cmp eax, 0xa
je 0x4fa032
cmp eax, 9
je 0x4fa032
mov al, byte [0x5955dd]
test al, al
jne 0x4fa044
mov eax, dword [0x5ac060]
jmp 0x4fa040
mov edx, dword [0x5c463c]
xor eax, eax
mov al, byte [edx + 0xae1]
test eax, eax
je 0x4fa056
mov esi, dword [0x5c4f64]
lea eax, [esi + ebp - 1]
cdq
idiv esi
lea eax, [ecx + 1]
jmp 0x4fa066
mov esi, dword [0x5c4f64]
lea eax, [ebp + 1]
cdq
idiv esi
lea eax, [esi + ecx - 1]
mov edi, edx
mov ecx, dword [0x5c4ee8]
cdq
idiv esi
mov eax, dword [esp + 0x18]
push 0x40000000
lea eax, [eax + ecx + 8]
push eax
mov dword [esp + 0x18], eax
mov esi, edx
lea edx, [esp + 0x30]
push edx
call fcn.004039d0
mov edx, dword [0x5c4ee8]
lea eax, [esi + esi*4]
lea ecx, [esi + eax*2]
fld dword [edx + ecx*4 + 0x10]
lea esi, [edx + ecx*4 + 8]
lea ecx, [esp + 0x54]
fchs
fstp dword [esp + 8]
fld dword [esi + 4]
fchs
fstp dword [esp + 4]
fld dword [esi]
fchs
fstp dword [esp]
call fcn.0040e9c0
mov ecx, dword [0x5c4ee8]
lea eax, [ebp + ebp*4]
fld dword [esp + 0x50]
lea ebp, [ebp + eax*2]
sub esp, 0xc
shl ebp, 2
mov dword [esp + 0x50], ebp
fadd dword [ecx + ebp + 0x10]
lea ebp, [ecx + ebp + 8]
lea ecx, [esp + 0x60]
fstp dword [esp + 8]
fld dword [esp + 0x58]
fadd dword [ebp + 4]
fstp dword [esp + 4]
fld dword [esp + 0x54]
fadd dword [ebp]
fstp dword [esp]
call fcn.0040e9c0
fld dword [esp + 0x5c]
fmul dword [esp + 0x14]
sub esp, 0xc
lea ecx, [esp + 0x6c]
fstp dword [esp + 8]
fld dword [esp + 0x64]
fmul dword [esp + 0x20]
fstp dword [esp + 4]
fld dword [esp + 0x60]
fmul dword [esp + 0x20]
fstp dword [esp]
call fcn.0040e9c0
push 0x40800000
lea edx, [esp + 0x80]
push ebp
push edx
call fcn.004039d0
mov eax, dword [esp + 0x1c]
push 0x40a00000
lea ecx, [esp + 0xb0]
push eax
push ecx
call fcn.004039d0
push 0x40000000
lea edx, [esp + 0xd4]
push esi
push edx
call fcn.004039d0
fld dword [esp + 0xe4]
fsub dword [esp + 0xcc]
add esp, 0x18
fstp dword [esp + 8]
fld dword [esp + 0xc8]
fsub dword [esp + 0xb0]
fstp dword [esp + 4]
fld dword [esp + 0xc4]
fsub dword [esp + 0xac]
lea ecx, [esp + 0xdc]
fstp dword [esp]
call fcn.0040e9c0
fld dword [esp + 0x84]
fadd dword [esp + 0xd8]
sub esp, 0xc
lea ecx, [esp + 0xf4]
fstp dword [esp + 8]
fld dword [esp + 0x8c]
fadd dword [esp + 0xe0]
fstp dword [esp + 4]
fld dword [esp + 0x88]
fadd dword [esp + 0xdc]
fstp dword [esp]
call fcn.0040e9c0
mov edx, dword [0x5c4ee8]
lea eax, [edi + edi*4]
fld dword [esp + 0xf0]
lea ecx, [edi + eax*2]
sub esp, 0xc
fsub dword [edx + ecx*4 + 0x10]
lea edi, [edx + ecx*4 + 8]
lea ecx, [esp + 0xa0]
fstp dword [esp + 8]
fld dword [esp + 0xf8]
fsub dword [edi + 4]
fstp dword [esp + 4]
fld dword [esp + 0xf4]
fsub dword [edi]
fstp dword [esp]
call fcn.0040e9c0
fld dword [esp + 0x9c]
fmul dword [esp + 0x14]
sub esp, 0xc
lea ecx, [esp + 0xd0]
fstp dword [esp + 8]
fld dword [esp + 0xa4]
fmul dword [esp + 0x20]
fstp dword [esp + 4]
fld dword [esp + 0xa0]
fmul dword [esp + 0x20]
fstp dword [esp]
call fcn.0040e9c0
fld dword [esp + 0xcc]
fmul dword [esp + 0x14]
sub esp, 0xc
lea ecx, [esp + 0x7c]
fstp dword [esp + 8]
fld dword [esp + 0xd4]
fmul dword [esp + 0x20]
fstp dword [esp + 4]
fld dword [esp + 0xd0]
fmul dword [esp + 0x20]
fstp dword [esp]
call fcn.0040e9c0
push 0x40400000
lea eax, [esp + 0x8c]
push ebp
push eax
call fcn.004039d0
mov ecx, dword [esp + 0x1c]
push 0x40400000
lea edx, [esp + 0xbc]
push ecx
push edx
call fcn.004039d0
fld dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x40]
fchs
fstp dword [esp + 8]
fld dword [esi + 4]
fchs
fstp dword [esp + 4]
fld dword [esi]
fchs
fstp dword [esp]
call fcn.0040e9c0
fld dword [esp + 0xb4]
fadd dword [esp + 0x3c]
sub esp, 0xc
lea ecx, [esp + 0xe8]
fstp dword [esp + 8]
fld dword [esp + 0xbc]
fadd dword [esp + 0x44]
fstp dword [esp + 4]
fld dword [esp + 0xb8]
fadd dword [esp + 0x40]
fstp dword [esp]
call fcn.0040e9c0
fld dword [esp + 0xe4]
fsub dword [esp + 0x90]
sub esp, 0xc
lea ecx, [esp + 0x28]
fstp dword [esp + 8]
fld dword [esp + 0xec]
fsub dword [esp + 0x98]
fstp dword [esp + 4]
fld dword [esp + 0xe8]
fsub dword [esp + 0x94]
fstp dword [esp]
call fcn.0040e9c0
fld dword [esp + 0x24]
fadd dword [edi + 8]
sub esp, 0xc
lea ecx, [esp + 0x28]
fstp dword [esp + 8]
fld dword [esp + 0x2c]
fadd dword [edi + 4]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fadd dword [edi]
fstp dword [esp]
call fcn.0040e9c0
fld dword [esp + 0x24]
fmul dword [esp + 0x14]
sub esp, 0xc
lea ecx, [esp + 0x28]
fstp dword [esp + 8]
fld dword [esp + 0x2c]
fmul dword [esp + 0x20]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fmul dword [esp + 0x20]
fstp dword [esp]
call fcn.0040e9c0
fld dword [esp + 0x24]
fmul dword [esp + 0x14]
sub esp, 0xc
lea ecx, [esp + 0x28]
fstp dword [esp + 8]
fld dword [esp + 0x2c]
fmul dword [esp + 0x20]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fmul dword [esp + 0x20]
fstp dword [esp]
call fcn.0040e9c0
fld dword [esp + 0x24]
fmul dword [esp + 0x14]
sub esp, 0xc
lea ecx, [esp + 0x28]
fstp dword [esp + 8]
fld dword [esp + 0x2c]
fmul dword [esp + 0x20]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fmul dword [esp + 0x20]
fstp dword [esp]
call fcn.0040e9c0
fld dword [esp + 0x78]
fadd dword [esp + 0x24]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x80]
fadd dword [esp + 0x2c]
fstp dword [esp + 4]
fld dword [esp + 0x7c]
fadd dword [esp + 0x28]
fstp dword [esp]
lea ecx, [esp + 0x28]
call fcn.0040e9c0
fld dword [esp + 0x68]
fadd dword [esp + 0x24]
sub esp, 0xc
lea ecx, [esp + 0x28]
fstp dword [esp + 8]
fld dword [esp + 0x70]
fadd dword [esp + 0x2c]
fstp dword [esp + 4]
fld dword [esp + 0x6c]
fadd dword [esp + 0x28]
fstp dword [esp]
call fcn.0040e9c0
fld dword [esp + 0x30]
fadd dword [esp + 0x24]
sub esp, 0xc
lea ecx, [esp + 0x28]
fstp dword [esp + 8]
fld dword [esp + 0x38]
fadd dword [esp + 0x2c]
fstp dword [esp + 4]
fld dword [esp + 0x34]
fadd dword [esp + 0x28]
fstp dword [esp]
call fcn.0040e9c0
lea eax, [esp + 0x1c]
push 0x3f000000
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.004039d0
mov al, byte [esp + 0x4f]
add esp, 0xc
test al, al
je 0x4fa503
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], ecx
jmp 0x4fa629
fld dword [ebx + 0x20]
fsub dword [esp + 0x3c]
sub esp, 0xc
lea ecx, [esp + 0x34]
fstp dword [esp + 8]
fld dword [ebx + 0x1c]
fsub dword [esp + 0x44]
fstp dword [esp + 4]
fld dword [ebx + 0x18]
fsub dword [esp + 0x40]
fstp dword [esp]
call fcn.0040e9c0
lea edx, [esp + 0x28]
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00403a00
fstp dword [esp + 4]
add esp, 4
call fcn.0051f140
fmul dword [0x5c5040]
add esp, 4
fst dword [esp + 0x10]
fld dword [0x5c510c]
fxch st(1)
fcompp
fnstsw ax
and eax, 0x4100
jne 0x4fa574
mov ecx, dword [0x5c510c]
mov dword [esp + 0x10], ecx
fld dword [esp + 0x3c]
fsub dword [ebx + 0x20]
sub esp, 0xc
lea ecx, [esp + 0x28]
fstp dword [esp + 8]
fld dword [esp + 0x44]
fsub dword [ebx + 0x1c]
fstp dword [esp + 4]
fld dword [esp + 0x40]
fsub dword [ebx + 0x18]
fstp dword [esp]
call fcn.0040e9c0
lea ecx, [esp + 0x1c]
call fcn.00403980
push ecx
lea edx, [esp + 0x20]
lea eax, [esp + 0x2c]
fstp dword [esp]
push edx
push eax
call fcn.004039d0
fld dword [esp + 0x3c]
fmul dword [esp + 0x1c]
lea ecx, [esp + 0x6c]
fstp dword [esp + 8]
fld dword [esp + 0x38]
fmul dword [esp + 0x1c]
fstp dword [esp + 4]
fld dword [esp + 0x34]
fmul dword [esp + 0x1c]
fstp dword [esp]
call fcn.0040e9c0
fld dword [esp + 0x68]
fadd dword [ebx + 0x20]
sub esp, 0xc
lea ecx, [esp + 0x7c]
fstp dword [esp + 8]
fld dword [esp + 0x70]
fadd dword [ebx + 0x1c]
fstp dword [esp + 4]
fld dword [esp + 0x6c]
fadd dword [ebx + 0x18]
fstp dword [esp]
call fcn.0040e9c0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], eax
mov ecx, dword [ebx + 0x6c]
mov esi, dword [0x5c4ee8]
mov edi, dword [esp + 0x18]
mov eax, dword [ecx + 0x274]
mov ecx, dword [eax + 8]
add eax, 4
mov dword [esp + 0x38], ecx
mov edx, dword [eax]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 8]
mov al, byte [edi + esi + 4]
mov dword [esp + 0x3c], edx
test al, 1
je 0x4fa6b3
lea eax, [edi + esi + 0x14]
push 0x42c80000
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004039d0
fld dword [esp + 0x3c]
fadd dword [edi + esi + 0x10]
lea ecx, [esp + 0x6c]
fstp dword [esp + 8]
fld dword [esp + 0x38]
fadd dword [edi + esi + 0xc]
fstp dword [esp + 4]
fld dword [esp + 0x34]
fadd dword [edi + esi + 8]
fstp dword [esp]
call fcn.0040e9c0
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
fld dword [esp + 0x3c]
xor ebp, ebp
mov dword [ebx + 0x34], 0x3f800000
mov dword [ebx + 0x30], ebp
mov dword [ebx + 0x38], ebp
fsub dword [ebx + 0x20]
sub esp, 0xc
lea ecx, [esp + 0x34]
fstp dword [esp + 8]
fld dword [esp + 0x44]
fsub dword [ebx + 0x1c]
fstp dword [esp + 4]
fld dword [esp + 0x40]
fsub dword [ebx + 0x18]
fstp dword [esp]
call fcn.0040e9c0
mov dl, byte [ebx]
push 1
lea eax, [esp + 0x2c]
push edx
push eax
mov ecx, ebx
call fcn.004fb1a0
cmp byte [ebx], 0
je 0x4fa71b
mov dword [ebx + 0xe0], ebp
mov dword [ebx + 0xe4], ebp
mov dword [ebx + 0xe8], ebp
jmp 0x4fab34
mov al, byte [0x5c5030]
mov esi, 0x552484
test al, 1
jne 0x4fa770
or al, 1
push str.camera_heli_damp1
mov ecx, 0x5c50e4
mov byte [0x5c5030], al
call fcn.00414aa0
push 0x4fad40
mov dword [0x5c50f0], 0x3851b717
mov dword [0x5c50f4], 0
mov dword [0x5c50f8], 0x3f800000
mov dword [0x5c50e4], esi
call fcn.0053386e
add esp, 4
mov cl, byte [0x5c5030]
mov al, 2
test al, cl
jne 0x4fa7c4
or cl, al
push str.camera_heli_damp2
mov byte [0x5c5030], cl
mov ecx, 0x5c4fc8
call fcn.00414aa0
push 0x4fad30
mov dword [0x5c4fd4], 0x3c23d70a
mov dword [0x5c4fd8], 0
mov dword [0x5c4fdc], 0x3f800000
mov dword [0x5c4fc8], esi
call fcn.0053386e
add esp, 4
mov al, byte [0x5c5030]
test al, 4
jne 0x4fa814
or al, 4
push str.camera_heli_damp3
mov ecx, 0x5c5118
mov byte [0x5c5030], al
call fcn.00414aa0
push 0x4fad20
mov dword [0x5c5124], 0x3f666666
mov dword [0x5c5128], 0
mov dword [0x5c512c], 0x3f800000
mov dword [0x5c5118], esi
call fcn.0053386e
add esp, 4
test byte [0x5b2138], 0xf
jne 0x4fa89b
mov ecx, dword [0x5c4fd4]
push 0x5776a0
mov edx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x70], edx
call fcn.0040e230
mov dword [esp + 0x1c], eax
mov eax, dword [0x5c4fd4]
fild dword [esp + 0x1c]
mov ecx, eax
push 0x5776a0
mov dword [esp + 0x20], eax
fmul dword [esp + 0x18]
mov dword [esp + 0x18], ecx
fmul dword [0x561d98]
fld dword [esp + 0x74]
fmul dword [0x55244c]
fsubp st(1)
fstp dword [0x5c5138]
call fcn.0040e230
mov dword [esp + 0x74], eax
add esp, 8
fild dword [esp + 0x6c]
fmul dword [esp + 0x18]
fmul dword [0x561d98]
fld dword [esp + 0x10]
fmul dword [0x55244c]
fsubp st(1)
fstp dword [0x5c513c]
fld dword [0x5c5138]
fsub dword [ebx + 0xe0]
fld dword [0x5c50f0]
fld st(1)
fcompp
fnstsw ax
and eax, 0x4100
jne 0x4fa8c4
fstp st(0)
fld dword [0x5c50f0]
jmp 0x4fa8e1
fld dword [0x5c50f0]
fchs
fstp dword [esp + 0x10]
fcom dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x4fa8e1
fstp st(0)
fld dword [esp + 0x10]
fld dword [0x5c5140]
fadd st(1)
fstp dword [0x5c5140]
fstp st(0)
fld dword [0x5c5140]
fadd dword [ebx + 0xe0]
fstp dword [ebx + 0xe0]
fld dword [0x5c513c]
fsub dword [ebx + 0xe4]
fld dword [0x5c50f0]
fld st(1)
fcompp
fnstsw ax
and eax, 0x4100
jne 0x4fa92c
fstp st(0)
fld dword [0x5c50f0]
jmp 0x4fa949
fld dword [0x5c50f0]
fchs
fstp dword [esp + 0x10]
fcom dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x4fa949
fstp st(0)
fld dword [esp + 0x10]
fld dword [0x5c5144]
fadd st(1)
lea edx, [esp + 0x48]
lea eax, [esp + 0x48]
push edx
push eax
fstp dword [0x5c5144]
fstp st(0)
fld dword [0x5c5144]
fadd dword [ebx + 0xe4]
fstp dword [ebx + 0xe4]
fld dword [0x5c5124]
fmul dword [0x5c5140]
fstp dword [0x5c5140]
fld dword [0x5c5124]
fmul dword [0x5c5144]
fstp dword [0x5c5144]
fld dword [ebx + 0x28]
fmul dword [ebx + 0x38]
fld dword [ebx + 0x2c]
fmul dword [ebx + 0x34]
fsubp st(1)
fstp dword [esp + 0x50]
fld dword [ebx + 0x2c]
fmul dword [ebx + 0x30]
fld dword [ebx + 0x24]
fmul dword [ebx + 0x38]
fsubp st(1)
fstp dword [esp + 0x54]
fld dword [ebx + 0x24]
fmul dword [ebx + 0x34]
fld dword [ebx + 0x28]
fmul dword [ebx + 0x30]
fsubp st(1)
fstp dword [esp + 0x58]
call fcn.00403a00
fstp dword [esp + 4]
add esp, 4
call fcn.0051f140
fcom qword [0x552460]
add esp, 4
fnstsw ax
test ah, 5
jp 0x4fa9fa
mov dword [esp + 0x18], 0
jmp 0x4faa06
fld dword [0x552454]
fdiv st(1)
fstp dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x58]
push edx
push eax
fstp st(0)
call fcn.004039d0
fld dword [esp + 0x64]
fmul dword [ebx + 0x2c]
fld dword [esp + 0x68]
fmul dword [ebx + 0x28]
mov ecx, dword [ebx + 0xe4]
lea edx, [esp + 0x54]
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x54]
fsubp st(1)
fld dword [esp + 0x68]
fmul dword [ebx + 0x24]
fld dword [esp + 0x60]
fmul dword [ebx + 0x2c]
push edx
push eax
fsubp st(1)
fld dword [esp + 0x68]
fmul dword [ebx + 0x28]
fld dword [esp + 0x6c]
fmul dword [ebx + 0x24]
fsubp st(1)
fstp dword [esp + 0x44]
fxch st(1)
fmul dword [esp + 0x24]
fstp dword [esp + 0x74]
fmul dword [esp + 0x24]
fld dword [esp + 0x44]
fmul dword [esp + 0x24]
fld dword [ebx + 0xe0]
fld dword [esp + 0x68]
fmul st(1)
fld dword [esp + 0x6c]
fmul st(2)
fstp dword [esp + 0x40]
fld dword [esp + 0x70]
fmul st(2)
fstp dword [esp + 0x44]
fadd dword [ebx + 0x24]
fstp st(1)
fld dword [esp + 0x40]
fadd dword [ebx + 0x28]
fld dword [esp + 0x44]
fadd dword [ebx + 0x2c]
fstp dword [esp + 0x44]
fxch st(1)
fadd dword [esp + 0x74]
fstp dword [esp + 0x5c]
fadd st(2)
fstp dword [esp + 0x60]
fld dword [esp + 0x44]
fadd st(1)
fstp dword [esp + 0x64]
fstp st(0)
fstp st(0)
call fcn.00403a00
fstp dword [esp + 0x10]
add esp, 0x10
call fcn.0051f140
fcom qword [0x552460]
add esp, 4
fnstsw ax
test ah, 5
jp 0x4faafa
mov dword [esp + 0x18], 0
jmp 0x4fab06
fld dword [0x552454]
fdiv st(1)
fstp dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
fstp st(0)
call fcn.004039d0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x2c], eax
mov eax, dword [0x5c4ee8]
test byte [edi + eax + 4], 1
je 0x4fab49
fld dword [edi + eax + 0x20]
jmp 0x4face5
mov ecx, dword [0x5b2138]
mov edx, dword [ebx + 0xcc]
mov eax, dword [0x5c4ef8]
sub ecx, edx
cmp ecx, eax
jle 0x4fabb8
mov esi, dword [0x5c508c]
push 0x5c5130
call fcn.0040e230
add esp, 4
test esi, eax
jne 0x4fabb8
cmp dword [ebx + 0xc8], ebp
je 0x4fab87
mov dword [ebx + 0xc8], ebp
jmp 0x4fabac
mov esi, dword [0x5c5004]
mov ebp, dword [0x5c50a4]
push 0x5c5130
call fcn.0040e230
and eax, esi
add esp, 4
add eax, ebp
xor ebp, ebp
mov dword [ebx + 0xc8], eax
mov edx, dword [0x5b2138]
mov dword [ebx + 0xcc], edx
fld dword [esp + 0x34]
fsub dword [ebx + 0x18]
fld dword [esp + 0x38]
fsub dword [ebx + 0x1c]
fld dword [esp + 0x3c]
fsub dword [ebx + 0x20]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
push ecx
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.0051f140
fld dword [0x552454]
fsub dword [esp + 0x18]
mov ecx, dword [0x5c4ee8]
mov edx, dword [esp + 0x48]
mov eax, dword [ebx + 0xc8]
add esp, 4
cmp eax, ebp
mov dword [esp + 0x44], eax
fstp dword [esp + 0x18]
fld dword [edx + ecx + 0x20]
fptan
fstp st(0)
fmul dword [edx + ecx + 0x24]
fmul dword [esp + 0x14]
fld dword [edi + ecx + 0x20]
fptan
fstp st(0)
fmul dword [edi + ecx + 0x24]
fmul dword [esp + 0x18]
faddp st(1)
fdivrp st(1)
fld1
fpatan
fld dword [0x552454]
je 0x4fac5e
mov eax, dword [0x5c5004]
mov esi, dword [0x5c50a4]
fstp st(0)
fild dword [esp + 0x44]
add esi, eax
mov dword [esp + 0x44], esi
fidiv dword [esp + 0x44]
mov esi, dword [ebx + 0x6c]
add esi, 0x180
fld dword [esi]
fcomp dword [0x552458]
fld dword [esi]
fnstsw ax
test ah, 5
jp 0x4fac7a
fchs
fsub dword [0x552454]
fcom dword [0x552458]
fnstsw ax
and eax, 0x4100
jne 0x4face1
fdiv dword [0x5c4f10]
fcom dword [0x552454]
fnstsw ax
and eax, 0x4100
jne 0x4facac
fstp st(0)
fld dword [0x552454]
fld dword [esp + 0x14]
fmul dword [edx + ecx + 0x28]
fld dword [esp + 0x18]
fmul dword [edi + ecx + 0x28]
faddp st(1)
fmul st(1)
fsubr dword [0x552454]
fstp dword [esp + 0x18]
fstp st(0)
fcom dword [esp + 0x18]
fnstsw ax
and eax, 0x4100
jne 0x4face3
fstp st(0)
fld dword [esp + 0x18]
jmp 0x4face3
fstp st(0)
fmulp st(1)
mov al, byte [ebx]
pop edi
pop esi
pop ebp
test al, al
je 0x4facf9
fstp dword [ebx + 0x3c]
pop ebx
add esp, 0xe4
ret
fld dword [0x5c50d8]
fsubr dword [0x552454]
fmul dword [ebx + 0x3c]
fld dword [0x5c50d8]
fmul st(2)
faddp st(1)
fstp dword [ebx + 0x3c]
fstp st(0)
pop ebx
add esp, 0xe4
ret