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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x14], eax
mov al, byte [esi + 0xf0]
push edi
mov edi, dword [esi]
test al, 2
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], ecx
jne 0x5490f5
mov dx, word [esi + 0xd4]
mov word [eax], dx
mov cx, word [esi + 0xb8]
mov word [eax + 2], cx
mov dx, word [esi + 0x80]
shl dx, 1
add dx, word [esi + 0xdc]
add dx, word [esi + 0x18]
sub dx, word [esi + 0xd4]
mov word [eax + 4], dx
mov cx, word [esi + 0xb8]
imul cx, cx, 0xfffe
add word [eax + 6], cx
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [eax + 6]
push 0
xor ecx, ecx
mov cx, word [eax + 4]
push 0
push edx
movsx edx, word [eax + 2]
movsx eax, word [eax]
push ecx
mov ecx, dword [esi + 0x84]
push edx
push eax
push ecx
push ebx
push edi
call fcn.00531330
mov al, byte [esi + 0xf0]
add esp, 0x24
test al, 2
je 0x5491e5
fld qword [esp + 0x18]
fcomp qword [0x5940e0]
fnstsw ax
test ah, 0x40
jne 0x5491e5
fld qword [esi + 0x38]
fsub qword [esi + 0x30]
fdiv qword [esp + 0x18]
fabs
fild dword [edi + 0x44]
fidiv dword [esi + 0xe4]
fld st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x549175
fxch st(1)
fdiv st(1)
fmul qword [esp + 0x18]
fstp qword [esp + 0x18]
jmp 0x549177
fstp st(0)
mov edx, dword [esi + 0x30]
fstp st(0)
mov eax, dword [esi + 0x34]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
push esi
call fcn.004e9270
fst qword [esp + 0x2c]
fld qword [esi + 0x38]
add esp, 0xc
fcomp qword [esi + 0x30]
fnstsw ax
fcomp qword [esi + 0x38]
test ah, 1
fnstsw ax
jne 0x5491b7
test ah, 0x41
je 0x5491e5
jmp 0x5491bc
test ah, 1
jne 0x5491e5
mov eax, dword [esi + 0xd4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
push ebx
push esi
call fcn.00549400
fld qword [esp + 0x34]
fadd qword [esp + 0x2c]
add esp, 0x14
fstp qword [esp + 0x20]
jmp 0x549187
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x549208
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push eax
push ecx
push edx
push ebx
push esi
call fcn.00549400
add esp, 0x14
mov ecx, dword [esi + 0xb8]
mov eax, dword [esi + 0x80]
mov ebx, dword [edi + 0x44]
push 5
push eax
lea edx, [ecx + ecx]
sub ebx, edx
mov edx, dword [esi + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [edx + eax*2]
mov edx, dword [esi + 0x84]
push eax
push ecx
mov ecx, dword [esi + 0xdc]
push ecx
push edx
push ebx
push edi
call fcn.00530ac0
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0xb8]
mov edi, dword [edi + 0x44]
add ecx, eax
lea edx, [ecx + ecx]
sub edi, edx
mov edx, dword [esi + 0x18]
push edi
mov edi, dword [esi + 0xdc]
push edx
push ecx
mov ecx, dword [esi + 4]
add eax, edi
push eax
mov eax, dword [esi + 0x94]
push eax
push ebx
push ecx
call fcn.00553880
mov eax, dword [esi + 0x7c]
add esp, 0x40
test eax, eax
jne 0x54928c
mov edx, dword [esi + 0x88]
mov dword [esp + 0x20], edx
jmp 0x549296
mov eax, dword [esi + 0x84]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xbc]
mov ecx, dword [esi + 0x18]
cdq
sub eax, edx
mov edx, dword [esi + 0x24]
mov ebx, eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x10], ecx
add eax, dword [esi + 0xdc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x20]
push edx
push eax
push esi
sar ebx, 1
call fcn.004e9690
mov ecx, eax
mov eax, dword [esi + 0x80]
cdq
sub eax, edx
sub ecx, ebx
mov edi, eax
add esp, 0xc
sar edi, 1
mov dword [esp + 0x14], ecx
jne 0x5492e7
mov edi, 1
mov edx, dword [esi + 0x8c]
push edx
mov edx, dword [esp + 0x14]
push edi
lea eax, [ebx + ebx]
push eax
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
call fcn.00530ac0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
add ecx, edi
mov dword [esp + 0x38], ecx
mov ecx, edi
neg ecx
lea ecx, [edx + ecx*2]
mov edx, dword [esi + 0x8c]
push edx
mov edx, dword [esp + 0x48]
push edi
sub ebx, edi
push ebx
push ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x6c]
add eax, edi
push eax
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
call fcn.00531330
mov edx, dword [esi + 0x8c]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add esp, 0x48
push edx
mov edx, dword [esp + 0x1c]
push edi
mov edi, dword [ebp + 0xc]
push ebx
push eax
mov eax, dword [esp + 0x30]
add ecx, ebx
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push edi
push ecx
call fcn.00531330
mov al, byte [esi + 0xf0]
add esp, 0x24
test al, 2
je 0x5493ed
mov eax, dword [esi + 0x78]
test eax, eax
je 0x5493ed
mov eax, dword [esi + 0x9c]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0050ed90
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xe0]
lea eax, [eax + eax*2]
cdq
sub eax, edx
mov edx, dword [esi + 0xb8]
sar eax, 1
add eax, edx
mov edx, dword [esi + 0x78]
push eax
mov eax, dword [esi + 0x74]
push ecx
mov ecx, dword [esi + 0x9c]
push edx
mov edx, dword [esi + 0xa4]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push edi
push eax
call fcn.0054d300
add esp, 0x28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret