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

Disassembly:
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc0]
push edi
mov eax, dword [esi + 8]
test eax, 0x80000000
je 0x4a3994
mov ecx, dword [0x80fe5c]
and eax, 0x7fffffff
mov edx, dword [ecx + eax*8]
lea eax, [ecx + eax*8]
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 4]
fild qword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
fmul dword [esi + 0x20]
fmul dword [0x4c33ac]
fild qword [esp + 0x14]
jmp 0x4a39cb
mov ecx, dword [0x80f5f0]
and eax, 0x7fffffff
mov edx, dword [ecx + eax*8]
lea eax, [ecx + eax*8]
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 4]
fild qword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
fmul dword [esi + 0x20]
fmul dword [0x4c33ac]
fild qword [esp + 0x14]
fmul dword [esi + 0x24]
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], ecx
mov ecx, 0x597108
fmul dword [0x4c33ac]
test al, 0xf
fstp dword [esp + 0x10]
fild dword [esi + 0x10]
fmul qword [0x4c3370]
fld st(0)
fcos
fstp dword [esp + 0x1c]
fsin
fld dword [esp + 0x1c]
fmul st(2)
fstp dword [esp + 0x24]
fld st(0)
fmul dword [esp + 0x10]
fstp dword [esp + 0x14]
fmulp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x10]
jne 0x4a3a26
mov ebp, 1
mov edi, ebp
jmp 0x4a3a33
mov edi, eax
mov ebp, eax
shr edi, 2
and ebp, 3
and edi, 3
mov dword [esp + 0x1c], 4
mov eax, dword [ecx]
mov ebx, dword [esi + 0x1c]
mov edx, dword [ecx + 4]
add ecx, 4
fld dword [esi + 0x18]
mov dword [esp + 0x10], ebx
sub eax, ebp
xor ebx, ebx
sub edx, edi
add ecx, 4
cmp eax, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
je 0x4a3a78
fild dword [esp + 0x28]
fld st(0)
fmul dword [esp + 0x24]
faddp st(2)
fmul st(3)
fsubr dword [esp + 0x10]
fstp dword [esp + 0x10]
cmp edx, ebx
je 0x4a3a92
fild dword [esp + 0x2c]
fld st(0)
fmul dword [esp + 0x14]
faddp st(2)
fmul st(2)
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
fstp dword [eax]
mov dword [eax + 4], edx
add eax, 0x20
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x4a3a3b
fstp st(0)
fstp st(0)
fld dword [0x4c3380]
fdiv dword [esi + 4]
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x30], ebx
fstp dword [esp + 0xac]
fld dword [0x7e6560]
fmul dword [esi + 4]
mov eax, dword [esp + 0xac]
mov ecx, eax
mov dword [esp + 0x8c], eax
fadd dword [0x7e6570]
mov edx, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 0x14]
fmul dword [esp + 0xac]
mov dword [esp + 0xb0], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x50], eax
mov eax, ecx
mov dword [esp + 0x4c], edx
fst dword [esp + 0xa8]
fst dword [esp + 0x88]
fst dword [esp + 0x68]
fstp dword [esp + 0x48]
fld dword [esi + 0x28]
shr eax, 8
fst dword [esp + 0x98]
fstp dword [esp + 0x58]
fld dword [esi + 0x30]
and eax, 7
fst dword [esp + 0xb8]
fstp dword [esp + 0x78]
fld dword [esi + 0x2c]
fst dword [esp + 0x7c]
fstp dword [esp + 0x5c]
fld dword [esi + 0x34]
fst dword [esp + 0xbc]
fstp dword [esp + 0x9c]
jne 0x4a3b88
mov eax, 4
shl eax, 0x1d
mov dword [esp + 0x34], eax
mov eax, 0x18000
test ch, 8
mov dword [esp + 0x3c], ebx
jne 0x4a3ba2
mov eax, 0x818000
test dword [esi], 0x80000000
je 0x4a3bb9
mov dword [esp + 0x30], 0x2000000
or eax, 0x94100000
jmp 0x4a3bbe
or eax, 0x20000000
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
call fcn.004a3620
mov eax, dword [0x7e6504]
add esp, 4
test al, 3
mov dword [esp + 0x14], eax
je 0x4a3bf0
mov eax, dword [0x810c04]
mov edx, dword [0x5970b0]
push edx
push 0x16
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test byte [esp + 0x14], 0x40
je 0x4a3c06
mov eax, dword [0x810c04]
push 1
push 9
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov dword [0x7e6504], ebx
mov esi, dword [esi + 8]
test esi, 0x80000000
je 0x4a3c28
mov edx, dword [0x80fe64]
and esi, 0x7fffffff
mov esi, dword [edx + esi*4]
jmp 0x4a3c36
mov eax, dword [0x80f5fc]
and esi, 0x7fffffff
mov esi, dword [eax + esi*4]
cmp esi, ebx
jne 0x4a3c62
mov eax, dword [0x810c04]
push 3
push 2
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
mov eax, dword [0x810c04]
push 3
push 5
push ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
jmp 0x4a3c6c
push esi
push ebx
call fcn.004aa900
add esp, 8
mov eax, dword [0x810c04]
push ebx
push 0x88
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
lea edx, [esp + 0x40]
push 4
push edx
call fcn.004a9940
mov eax, dword [0x810c04]
add esp, 8
mov ecx, dword [eax]
push 1
push 0x88
push eax
call dword [ecx + 0x50]
cmp esi, ebx
jne 0x4a3cc8
mov eax, dword [0x810c04]
push 2
push 2
push ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov eax, dword [0x810c04]
push 2
push 5
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret