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

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push ebx
call fcn.0044d940
movsx eax, al
mov dword [ebx + 0x38], eax
mov eax, dword [0x784e90]
add esp, 4
test eax, eax
je 0x49d57f
xor esi, esi
cmp word [ebx + 0x62], si
jle 0x49d57f
mov edx, 0xff
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx + esi*4]
fld dword [eax]
fsub dword [0x4d6738]
fld dword [eax + 4]
fsub dword [0x4d673c]
fstp dword [esp + 0x1c]
fld dword [eax + 8]
fsub dword [0x4d6740]
fst dword [esp + 0x20]
fmul dword [esp + 0x20]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fld st(1)
fmul st(2)
faddp st(1)
fsqrt
fdivr dword [0x4b0018]
fst dword [esp + 0x34]
fmulp st(1)
fld dword [esp + 0x34]
fmul dword [esp + 0x1c]
fld dword [esp + 0x34]
fmul dword [esp + 0x20]
fld dword [0x4c86d0]
fmul st(1)
fld dword [0x4c86d4]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0xc]
fld dword [0x4c86d4]
fmul st(3)
fld dword [0x4c86cc]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x10]
fld dword [0x4c86cc]
fmul st(2)
fld dword [0x4c86d0]
fmul st(4)
fsubp st(1)
fst dword [esp + 0x14]
fmul st(2)
fld dword [esp + 0x10]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0xc]
fmul st(1)
fld dword [esp + 0x14]
fmul st(4)
fsubp st(1)
fstp dword [esp + 0x28]
fstp st(0)
fld dword [esp + 0x10]
fmulp st(2)
fld dword [esp + 0xc]
fmul st(1)
fsubp st(2)
fstp st(0)
fld dword [esp + 0xc]
fmul dword [eax + 0x18]
fld dword [esp + 0x14]
fmul dword [eax + 0x20]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [eax + 0x1c]
faddp st(1)
fadd dword [0x4b0018]
fmul dword [0x4b000c]
fstp dword [eax + 0x3c]
fld dword [esp + 0x24]
fmul dword [eax + 0x18]
fxch st(1)
fmul dword [eax + 0x20]
faddp st(1)
fld dword [esp + 0x28]
fmul dword [eax + 0x1c]
faddp st(1)
fadd dword [0x4b0018]
fmul dword [0x4b000c]
fstp dword [eax + 0x40]
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x49d56c
mov ebp, dword [eax + 0x44]
xor ecx, ecx
mov cl, byte [eax + 0x52]
add ecx, ebp
cmp ecx, edx
jle 0x49d51d
mov byte [eax + 0x36], dl
jmp 0x49d52a
test ecx, ecx
jge 0x49d527
mov byte [eax + 0x36], 0
jmp 0x49d52a
mov byte [eax + 0x36], cl
mov ebp, dword [eax + 0x48]
xor ecx, ecx
mov cl, byte [eax + 0x51]
add ecx, ebp
cmp ecx, edx
jle 0x49d53d
mov byte [eax + 0x35], dl
jmp 0x49d54a
test ecx, ecx
jge 0x49d547
mov byte [eax + 0x35], 0
jmp 0x49d54a
mov byte [eax + 0x35], cl
mov ebp, dword [eax + 0x4c]
xor ecx, ecx
mov cl, byte [eax + 0x50]
add ecx, ebp
cmp ecx, edx
jle 0x49d55d
mov byte [eax + 0x34], dl
jmp 0x49d572
test ecx, ecx
jge 0x49d567
mov byte [eax + 0x34], 0
jmp 0x49d572
mov byte [eax + 0x34], cl
jmp 0x49d572
mov ecx, dword [eax + 0x50]
mov dword [eax + 0x34], ecx
movsx eax, word [ebx + 0x62]
inc esi
cmp esi, eax
jl 0x49d3e7
mov ax, word [ebx + 0x60]
test ax, ax
je 0x49d5ee
mov ebp, dword [ebx + 0x74]
movsx eax, ax
test eax, eax
je 0x49d5ee
push edi
mov dword [esp + 0x38], eax
mov esi, dword [ebp + 4]
mov eax, 0x66666667
mov ecx, esi
sub ecx, 0x86e2a8
imul ecx
mov eax, dword [0x86e288]
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, eax
jge 0x49d5df
mov edx, dword [esi + 4]
mov eax, dword [ebp]
mov cx, word [edx]
mov word [eax + 2], cx
mov edx, dword [ebp + 4]
mov edi, dword [ebp]
mov ecx, 8
mov esi, dword [edx + 4]
add esi, 8
add edi, 0x20
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x38]
add ebp, 8
dec eax
mov dword [esp + 0x38], eax
jne 0x49d597
pop edi
test byte [ebx + 0x3c], 1
mov eax, dword [ebx + 0x30]
je 0x49d633
test eax, eax
je 0x49d617
cmp word [0x86e2a4], 0
lea esi, [ebx + 0x44]
push esi
je 0x49d610
call fcn.0049ded0
jmp 0x49d651
call fcn.0049dd60
jmp 0x49d651
cmp word [0x86e2a4], 0
lea esi, [ebx + 0x44]
push esi
je 0x49d62c
call fcn.0049e160
jmp 0x49d68d
call fcn.0049e090
jmp 0x49d68d
test eax, eax
je 0x49d673
cmp word [0x86e2a4], 0
lea esi, [ebx + 0x44]
push esi
je 0x49d64c
call fcn.0049d9b0
jmp 0x49d651
call fcn.0049d840
mov al, byte [ebx + 0x30]
add esp, 4
test al, 2
je 0x49d667
mov eax, dword [ebx + 0x38]
push eax
push esi
call fcn.0049e5f0
jmp 0x49d69a
mov ecx, dword [ebx + 0x38]
push ecx
push esi
call fcn.0049faf0
jmp 0x49d69a
cmp word [0x86e2a4], 0
lea esi, [ebx + 0x44]
push esi
je 0x49d688
call fcn.0049dc40
jmp 0x49d68d
call fcn.0049db70
mov edx, dword [ebx + 0x38]
add esp, 4
push edx
push esi
call fcn.004a1090
mov eax, dword [0x4ba7f0]
add esp, 8
test eax, eax
jne 0x49d6e0
mov cx, word [ebx + 0x4c]
mov ax, word [0x86e284]
shl cx, 1
add ax, cx
mov word [0x86e284], ax
add ax, word [ebx + 0x4e]
mov word [0x86e284], ax
mov dx, word [ebx + 0x50]
shl dx, 1
add ax, dx
mov word [0x86e284], ax
add ax, word [ebx + 0x52]
mov word [0x86e284], ax
pop esi
pop ebp
pop ebx
add esp, 0x24
ret