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

Disassembly:
mov al, byte [0x683327]
sub esp, 0xbc
test al, al
push ebx
push ebp
push esi
push edi
je 0x510148
cmp word [0x7b2aa0], 1
jne 0x510148
mov eax, dword [0x70ed64]
test eax, eax
jle 0x510148
cmp byte [0x6db460], 1
je 0x50f93d
push 0x45800000
push 0x3d000200
call fcn.00514a50
add esp, 8
xor ecx, ecx
mov eax, 5
call fcn.005329c0
mov eax, dword [0x70ed64]
test eax, eax
mov dword [esp + 0x6c], 0
jle 0x510086
xor eax, eax
lea esi, [eax + eax*4]
lea esi, [esi*8 + 0x6c7eb8]
mov ecx, esi
call fcn.0050f0f0
mov ecx, dword [esi + 0x10]
mov edi, eax
lea eax, [esp + 0xb8]
call fcn.0050f000
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x70], ecx
movzx ecx, byte [esi + 0x22]
and ecx, 0xffffff7f
cmp cx, word [0x7b2aa2]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
jne 0x51006c
mov eax, dword [esi + 0x24]
test eax, eax
mov ebp, dword [esi]
jle 0x51006c
movzx ecx, byte [esi + 0x1b]
test ecx, ecx
jbe 0x51006c
mov eax, dword [ebp + 0xc4]
test eax, eax
jle 0x51006c
lea edx, [esi + 4]
mov eax, dword [edx]
mov dword [esp + 0x60], eax
fld dword [esp + 0x60]
fsub dword [0x7b2aa8]
mov eax, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x64], eax
fstp dword [esp + 0x18]
mov dword [esp + 0x68], edx
fld dword [esp + 0x64]
mov al, byte [0x6db460]
test al, al
fsub dword [0x7b2aac]
fstp dword [esp + 0x1c]
fld dword [esp + 0x68]
fsub dword [0x7b2ab0]
fstp dword [esp + 0x20]
fld dword [0x7b2abc]
fmul dword [esp + 0x20]
fld dword [0x7b2ab8]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x7b2ab4]
faddp st(1)
fstp dword [esp + 0x14]
fld dword [0x7b2ab4]
fmul dword [esp + 0x14]
fld dword [0x7b2ab8]
fmul dword [esp + 0x14]
fld dword [0x7b2abc]
fmul dword [esp + 0x14]
fstp dword [esp + 0x48]
fxch st(1)
fsub dword [esp + 0x18]
fstp dword [esp + 0x40]
fsub dword [esp + 0x1c]
fld dword [esp + 0x48]
fsub dword [esp + 0x20]
fld dword [esp + 0x40]
fadd st(0), st(0)
fstp dword [esp + 0x40]
fxch st(1)
fadd st(0), st(0)
fstp dword [esp + 0x44]
fadd st(0), st(0)
fstp dword [esp + 0x48]
jne 0x50faa2
fld dword [esp + 0x14]
fmul dword [0x66c408]
fstp dword [esp + 0x14]
movzx eax, byte [edi]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fmul dword [0x66c420]
fstp dword [esp + 0x30]
fld dword [ebp + 0x1c]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
jne 0x50fb18
fld dword [esp + 0x14]
fsub dword [ebp + 0x1c]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x1c]
fdivp st(1)
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x50faeb
fld dword [0x66c40c]
jmp 0x50fb1e
fld dword [esp + 0x14]
fsub dword [ebp + 0x1c]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x1c]
fdivp st(1)
fcomp dword [0x66c410]
fnstsw ax
test ah, 0x41
je 0x50fb18
fld dword [esp + 0x14]
fsub dword [ebp + 0x1c]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x1c]
fdivp st(1)
jmp 0x50fb1e
fld dword [0x66c410]
fld dword [esp + 0x30]
mov di, word [ebp + 0x80]
fmul st(1)
movzx ecx, cl
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmulp st(1)
fmul dword [0x66c420]
fstp dword [esp + 0x38]
fstp st(0)
call fcn.0050f140
fmul dword [ebp + 0x84]
fstp dword [esp + 0x94]
fld dword [0x7b2b4c]
fmul dword [esp + 0x20]
fld dword [0x7b2b48]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x7b2b44]
faddp st(1)
fld dword [0x7b2b58]
fmul dword [esp + 0x20]
fld dword [0x7b2b54]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x7b2b50]
faddp st(1)
fpatan
fmul dword [0x66c478]
fstp dword [esp + 0x98]
fld dword [ebp + 8]
fsub dword [ebp + 0xc]
fld dword [0x66c40c]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50fbce
fld dword [0x66c410]
fdiv st(1)
fstp dword [esp + 0x2c]
jmp 0x50fbd6
mov dword [esp + 0x2c], 0
fstp st(0)
lea ecx, [esp + 0x18]
fld dword [esp + 0x2c]
fmul dword [ebp + 0xc]
fchs
fstp dword [esp + 0x10]
call fcn.00401990
fstp st(0)
mov dword [esp + 0x7c], 0x3f800000
fld dword [0x7b2abc]
fmul dword [esp + 0x78]
fld dword [0x7b2ab8]
fmul dword [esp + 0x74]
faddp st(1)
fld dword [esp + 0x70]
fmul dword [0x7b2ab4]
faddp st(1)
fmul dword [esp + 0x2c]
fsubr dword [esp + 0x10]
fcom dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x50fc3e
fstp st(0)
mov dword [esp + 0x80], 0
jmp 0x50fc61
fcom dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x50fc5a
fstp st(0)
mov dword [esp + 0x80], 0x3f800000
jmp 0x50fc61
fstp dword [esp + 0x80]
fld dword [esp + 0x78]
fmul dword [esp + 0x20]
fld dword [esp + 0x74]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x70]
fmul dword [esp + 0x18]
faddp st(1)
fmul dword [esp + 0x2c]
fsubr dword [esp + 0x10]
fcom dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x50fca1
fstp st(0)
mov dword [esp + 0x84], 0
jmp 0x50fcc4
fcom dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x50fcbd
fstp st(0)
mov dword [esp + 0x84], 0x3f800000
jmp 0x50fcc4
fstp dword [esp + 0x84]
fld dword [0x7b2abc]
fmul dword [esp + 0x20]
fld dword [0x7b2ab8]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x7b2ab4]
faddp st(1)
fmul dword [esp + 0x2c]
fadd dword [esp + 0x10]
fcom dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x50fd0a
fstp st(0)
mov dword [esp + 0x88], 0
jmp 0x50fd2d
fcom dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x50fd26
fstp st(0)
mov dword [esp + 0x88], 0x3f800000
jmp 0x50fd2d
fstp dword [esp + 0x88]
fld dword [esp + 0x38]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
jne 0x51006c
movzx edx, byte [esi + 0x23]
mov eax, dword [ebp + 0xc4]
mov dword [esp + 0x24], edx
xor ecx, ecx
test eax, eax
fild dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
fmul dword [0x66c420]
fstp dword [esp + 0x24]
jle 0x51006c
xor edi, edi
mov edi, edi
mov edx, dword [ebp + 0xc8]
shl edi, 7
fld dword [edi + edx + 0x34]
movsx eax, word [edi + edx + 0x3c]
fld dword [edi + edx + 0x38]
add edi, edx
test cx, cx
fsub st(1)
fmul dword [esp + 0x24]
fadd st(1)
fmul dword [esp + eax*4 + 0x7c]
fmul dword [esp + 0x38]
fstp dword [esp + 0x10]
fstp st(0)
jne 0x50fdab
mov edx, dword [esp + 0x10]
mov dword [esp + 0x38], edx
fld dword [esp + 0x10]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
jne 0x510056
fld dword [edi + 0x28]
fld dword [edi + 0x2c]
fsub st(1)
fmul dword [esp + 0x24]
fadd st(1)
fstp dword [esp + 0x28]
fstp st(0)
fld dword [0x66c40c]
fld dword [edi + 0x40]
fucompp
fnstsw ax
test ah, 0x44
jp 0x50fe47
fld dword [0x66c40c]
fld dword [edi + 0x44]
fucompp
fnstsw ax
test ah, 0x44
jp 0x50fe47
fld dword [0x66c40c]
fld dword [edi + 0x48]
fucompp
fnstsw ax
test ah, 0x44
jp 0x50fe47
fld dword [0x66c40c]
fld dword [edi + 0x4c]
fucompp
fnstsw ax
test ah, 0x44
jp 0x50fe47
mov eax, dword [esp + 0x10]
push eax
call fcn.0050eeb0
mov ecx, dword [esi + 0x18]
movzx ebx, al
shl ebx, 0x18
and ecx, 0xffffff
add esp, 4
or ebx, ecx
mov dword [esp + 0x5c], 0x3f800000
jmp 0x50ff1b
lea edx, [edi + 0x44]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], eax
mov ax, word [edi + 0x72]
cmp ax, 1
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
jle 0x50ff05
fld dword [edi + 0x78]
sub esp, 8
fadd qword [0x7b2a80]
fdiv dword [edi + 0x74]
fstp qword [esp]
call fcn.004cacf0
fstp dword [esp + 0x18]
xor edx, edx
mov dl, byte [edi + 0x70]
mov ecx, dword [esp + 0x18]
push ecx
lea eax, [edi + 0x64]
lea ecx, [edi + 0x54]
and edx, 3
push edx
lea edx, [esp + 0xb0]
push edx
call fcn.0043f6b0
fld dword [0x66c410]
fsub dword [esp + 0x24]
add esp, 0x14
fmul dword [edi + 0x50]
fld dword [esp + 0x10]
fmul dword [edi + 0x60]
faddp st(1)
fst dword [esp + 0x9c]
fmul dword [esp + 0x4c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fmul dword [esp + 0xa0]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fmul dword [esp + 0xa4]
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fmul dword [esp + 0xa8]
fstp dword [esp + 0x58]
lea eax, [esp + 0x4c]
push eax
call fcn.00495e70
mov ecx, dword [edi + 0x40]
add esp, 4
mov ebx, eax
mov dword [esp + 0x5c], ecx
cmp word [esp + 0x3c], 0
jne 0x50ff4d
fld dword [esp + 0x94]
mov edx, dword [ebp + 0xa0]
fadd dword [edi + 0x20]
mov eax, dword [ebp + 0xa4]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], eax
fstp dword [esp + 0x34]
jmp 0x50ff6a
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x90], 0x3f800000
mov dword [esp + 0x8c], 0x3f800000
mov dword [esp + 0x34], ecx
mov ax, word [edi]
test al, 1
je 0x50ff80
fld dword [esp + 0x34]
fadd dword [esp + 0x98]
fstp dword [esp + 0x34]
test al, 4
je 0x50ff9c
fld dword [esp + 0x30]
fadd dword [0x66c410]
fmul dword [esp + 0x28]
fmul dword [0x66c408]
fstp dword [esp + 0x28]
test al, 2
je 0x50ffac
fld dword [esp + 0x28]
fmul dword [esp + 0x14]
fstp dword [esp + 0x28]
fld dword [edi + 0x1c]
mov eax, dword [ebp + 0x2c]
fld dword [esp + 0x40]
xor edx, edx
fmul st(1)
mov dx, word [edi + 4]
xor ecx, ecx
fadd dword [esp + 0x60]
fstp dword [esp + 0xac]
fld dword [esp + 0x44]
push edx
fmul st(1)
fadd dword [esp + 0x68]
fstp dword [esp + 0xb4]
fld dword [esp + 0x4c]
fmul st(1)
fadd dword [esp + 0x6c]
fstp dword [esp + 0xb8]
fstp st(0)
call fcn.0050dcf0
add esp, 4
test al, al
jne 0x51006c
mov eax, dword [esp + 0x5c]
push eax
call fcn.0050dd20
mov al, byte [edi]
add esp, 4
test al, 8
je 0x51001f
mov al, byte [esi + 0x22]
test al, al
mov word [0x738bbc], 2
js 0x510028
mov word [0x738bbc], 0
fld dword [esp + 0x34]
push ecx
fmul dword [0x66c580]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xb0]
lea eax, [esp + 0x90]
fstp dword [esp]
push ecx
push edx
call fcn.00532de0
mov ecx, dword [esp + 0x48]
add esp, 0xc
mov eax, dword [ebp + 0xc4]
inc ecx
movsx edi, cx
cmp edi, eax
mov dword [esp + 0x3c], ecx
jl 0x50fd70
mov eax, dword [esp + 0x6c]
mov ecx, dword [0x70ed64]
inc eax
mov dword [esp + 0x6c], eax
movsx eax, ax
cmp eax, ecx
jl 0x50f960
xor eax, eax
call fcn.00514d10
cmp byte [0x6db460], 1
je 0x5100a2
push 0
push 0
call fcn.00514a50
add esp, 8
call fcn.00532510
mov eax, dword [0x70eea4]
test eax, eax
je 0x5100bf
mov eax, dword [eax]
test eax, eax
je 0x5100bf
mov ecx, dword [eax]
push eax
call dword [ecx + 0x108]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push eax
mov dword [0x70eea4], 0
call dword [edx + 0x164]
mov al, byte [0x695f3a]
test al, al
jne 0x510148
mov al, byte [0x68334e]
test al, al
je 0x510148
mov eax, dword [0x70ed64]
xor esi, esi
test eax, eax
jle 0x510148
xor eax, eax
mov edi, 0x42480000
lea ecx, [ecx]
lea eax, [eax + eax*4]
mov ecx, dword [eax*8 + 0x6c7edc]
test ecx, ecx
lea eax, [eax*8 + 0x6c7eb8]
jle 0x51013a
movzx ecx, byte [eax + 0x22]
and ecx, 0xffffff7f
cmp cx, word [0x7b2aa2]
jne 0x51013a
mov ecx, dword [eax]
cmp dword [ecx + 0x10], edi
je 0x510135
test byte [ecx + 0x30], 1
je 0x51013a
call fcn.00521360
mov ecx, dword [0x70ed64]
inc esi
movsx eax, si
cmp eax, ecx
jl 0x510100
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret