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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x144
fld dword [ebp + 0xc]
mov al, byte [0x91606c]
fcomp dword [0x890968]
push ebx
mov byte [esp + 0x24], al
push esi
push edi
fnstsw ax
mov edi, ecx
test ah, 0x41
jnp 0x50a5de
fld dword [ebp + 0xc]
fcomp dword [edi + 0x74]
fnstsw ax
test ah, 0x41
je 0x50a5de
fld dword [ebp + 0xc]
fcomp dword [edi + 0x70]
fnstsw ax
test ah, 5
jnp 0x50a5de
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x7c]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 0xec]
fld dword [eax + 0xa4]
mov dword [esp + 0x4c], edx
fmul dword [0x899dd4]
mov edx, dword [eax + 0xbc]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0xf0]
fst dword [esp + 0x70]
mov dword [esp + 0x44], edx
fmul dword [0x891068]
mov edx, dword [eax + 0x100]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 0xfc]
fstp dword [esp + 0x128]
mov dword [esp + 0xf4], edx
fld dword [ebp + 0xc]
mov edx, dword [eax + 0x10c]
fmul dword [eax + 0xc4]
mov dword [esp + 0x108], edx
fld dword [eax + 0xc0]
mov edx, dword [eax + 0xcc]
fld dword [eax + 0x104]
mov dword [esp + 0x1c], edx
fld dword [eax + 0xe8]
mov edx, dword [eax + 0xd8]
fld dword [eax + 0xb8]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xd0]
mov dword [esp + 0x50], edx
mov edx, dword [eax]
mov dword [esp + 0xc0], edx
mov edx, dword [eax + 4]
mov dword [esp + 0xc4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], eax
mov eax, dword [ecx + 8]
lea edx, [eax + 0x30]
mov esi, dword [edx]
mov ebx, dword [edx + 4]
mov dword [esp + 0x80], ebx
mov ebx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], ebx
lea edx, [eax + 0x70]
mov ebx, dword [edx]
mov dword [esp + 0xd0], ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0xd4], ebx
mov ebx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xd8], ebx
lea edx, [eax + 0x10]
mov ebx, dword [edx]
mov dword [esp + 0x5c], ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0x60], ebx
mov ebx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], ebx
lea edx, [eax + 0x80]
mov ebx, dword [edx]
mov dword [esp + 0x130], ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0x134], ebx
mov ebx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x13c], edx
lea edx, [eax + 0x60]
mov dword [esp + 0x138], ebx
mov ebx, dword [edx]
mov dword [esp + 0x7c], esi
mov dword [esp + 0xb0], ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0xb4], ebx
mov ebx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0xbc], edx
mov edx, dword [eax + 0xe0]
test edx, edx
mov edx, eax
mov al, byte [eax + 0x114]
mov dword [esp + 0xb8], ebx
mov ebx, dword [edx + 0xdc]
mov dword [esp + 0xf8], ebx
lea ebx, [ecx + 0x60]
setne byte [esp + 0x2d]
add ecx, 0x20
mov dword [esp + 0x10c], ebx
mov ebx, dword [edx + 0x90]
test ebx, ebx
mov dword [esp + 0xf0], ecx
mov cl, byte [edx + 0x95]
setne byte [esp + 0x27]
test cl, cl
mov byte [esp + 0x2f], al
mov al, byte [edi + 0x18]
setne byte [esp + 0x26]
test al, 1
mov dword [esp + 0x100], edx
jne 0x509d8a
test dword [edi + 0x18], 0x400000
jne 0x509d8a
xor dl, dl
jmp 0x509d8c
mov dl, 1
fcom dword [0x890968]
fnstsw ax
test ah, 0x41
je 0x509dcc
fcomp dword [0x890968]
fnstsw ax
test ah, 5
jnp 0x509dce
fld dword [esp + 0x1c]
fcomp dword [0x890968]
fnstsw ax
test ah, 0x41
je 0x509dce
fld dword [esp + 0x1c]
fcomp dword [0x890968]
fnstsw ax
test ah, 5
jnp 0x509dce
xor cl, cl
jmp 0x509dd0
fstp st(0)
mov cl, 1
fld dword [esp + 0x20]
fcomp dword [0x890968]
fnstsw ax
test ah, 0x41
je 0x509e18
fld dword [esp + 0x20]
fcomp dword [0x890968]
fnstsw ax
test ah, 5
jnp 0x509e18
fld dword [esp + 0x50]
fcomp dword [0x890968]
fnstsw ax
test ah, 0x41
je 0x509e18
fld dword [esp + 0x50]
fcomp dword [0x890968]
fnstsw ax
test ah, 5
jnp 0x509e18
xor al, al
jmp 0x509e1a
mov al, 1
test al, al
fmul dword [esp + 0x48]
fstp dword [esp + 0x8c]
fmul dword [esp + 0x4c]
fstp dword [esp + 0x74]
fld dword [esp + 0x54]
fmul dword [esp + 0x44]
fstp dword [esp + 0x54]
fmul st(1)
fsubp st(1)
fld dword [esp + 0x48]
fsub dword [esp + 0x8c]
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fsub dword [esp + 0x74]
fstp dword [esp + 0x4c]
fld dword [esp + 0x44]
fsub dword [esp + 0x54]
fstp dword [esp + 0x44]
je 0x509e7a
test cl, cl
jne 0x509e7e
test dl, dl
je 0x509e82
test cl, cl
jne 0x509e82
fld dword [esp + 0x48]
jmp 0x509e85
test cl, cl
je 0x509e6c
test dl, dl
jne 0x509e70
fld dword [ebp + 8]
fmulp st(1)
fld st(0)
call fcn.007c4b80
mov ecx, eax
test ecx, ecx
jne 0x509eb7
fadd dword [edi + 0x10]
fcom dword [0x89096c]
fst dword [edi + 0x10]
fnstsw ax
test ah, 0x41
jne 0x509eb7
fsub dword [0x89096c]
mov ecx, 1
fstp dword [edi + 0x10]
jmp 0x509eb9
fstp st(0)
test ecx, ecx
jle 0x50a5d7
fld dword [esp + 0xb0]
mov dword [esp + 0x6c], ecx
fmul dword [0x8933d4]
fstp dword [esp + 0xfc]
fld dword [esp + 0xb4]
fmul dword [0x8933d4]
fstp dword [esp + 0x12c]
fld dword [esp + 0xb8]
fmul dword [0x8933d4]
fstp dword [esp + 0x104]
jmp 0x509f07
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x80]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
call fcn.0045d9e0
fadd dword [esp + 0x4c]
add esp, 8
fstp dword [esp + 0x20]
fld dword [esp + 0x44]
fcomp dword [0x890968]
fnstsw ax
test ah, 0x41
je 0x50a1ed
fld dword [esp + 0x44]
fcomp dword [0x890968]
fnstsw ax
test ah, 5
jnp 0x50a1ed
mov al, byte [esp + 0x2f]
test al, al
je 0x50a073
mov ecx, dword [esp + 0x84]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0045d9e0
fstp dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.0045d9e0
fstp dword [esp + 0x68]
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0045d9e0
fstp dword [esp + 0x158]
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.0045d9e0
fstp dword [esp + 0x48]
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.0045d9e0
fstp dword [esp + 0x48]
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.0045d9e0
fld dword [esp + 0x170]
fadd dword [esp + 0xf0]
add esp, 0x30
fstp dword [esp + 0x30]
fld dword [esp + 0x58]
fadd dword [esp + 0xc4]
fstp dword [esp + 0x34]
fld dword [esp + 0x1c]
fadd dword [esp + 0xc8]
fstp dword [esp + 0x38]
fadd dword [esp + 0xd0]
fstp dword [esp + 0x90]
fld dword [esp + 0x20]
fadd dword [esp + 0xd4]
fstp dword [esp + 0x94]
fld dword [esp + 0x28]
fadd dword [esp + 0xd8]
fstp dword [esp + 0x98]
jmp 0x50a263
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.0045d9e0
fadd st(0), st(0)
fld dword [esp + 0xd0]
lea eax, [esp + 0x20]
fsub dword [esp + 0x8c]
push eax
push ebx
faddp st(1)
fld st(0)
fmul dword [edi + 0x40]
fstp dword [esp + 0x40]
fld st(0)
fmul dword [edi + 0x44]
fstp dword [esp + 0x44]
fmul dword [edi + 0x48]
fstp dword [esp + 0x48]
call fcn.0045d9e0
fadd st(0), st(0)
lea ecx, [esp + 0x28]
fld dword [esp + 0xd4]
push ecx
fsub dword [esp + 0x94]
push esi
faddp st(1)
fld st(0)
fmul dword [edi + 0x30]
fld st(1)
fmul dword [edi + 0x34]
fstp dword [esp + 0x12c]
fxch st(1)
fmul dword [edi + 0x38]
fstp dword [esp + 0x130]
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fld dword [esp + 0x12c]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x130]
fadd dword [esp + 0x50]
fstp dword [esp + 0x50]
call fcn.0045d9e0
fadd st(0), st(0)
mov eax, dword [esp + 0x74]
fld dword [esp + 0xd8]
lea edx, [esp + 0x30]
fsub dword [esp + 0x94]
push edx
push eax
faddp st(1)
fld st(0)
fmul dword [edi + 0x20]
fld st(1)
fmul dword [edi + 0x24]
fstp dword [esp + 0x134]
fxch st(1)
fmul dword [edi + 0x28]
fstp dword [esp + 0x138]
fadd dword [esp + 0x50]
fstp dword [esp + 0x50]
fld dword [esp + 0x134]
fadd dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x138]
fadd dword [esp + 0x58]
fstp dword [esp + 0x58]
call fcn.0045d9e0
mov edx, dword [esp + 0x80]
fadd st(0), st(0)
fld dword [esp + 0xf0]
lea ecx, [esp + 0x38]
fsub dword [esp + 0x7c]
push ecx
push edx
faddp st(1)
fstp dword [esp + 0xb8]
call fcn.0045d9e0
fadd st(0), st(0)
fld dword [esp + 0xfc]
mov ecx, dword [esp + 0x8c]
fsub dword [esp + 0x88]
lea eax, [esp + 0x40]
push eax
push ecx
faddp st(1)
fstp dword [esp + 0xc4]
call fcn.0045d9e0
fadd st(0), st(0)
add esp, 0x30
fld dword [esp + 0xd8]
fsub dword [esp + 0x64]
faddp st(1)
fstp dword [esp + 0x98]
jmp 0x50a263
mov eax, dword [esp + 0x108]
test eax, eax
je 0x50a21b
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x5c]
push edx
mov ecx, edi
call fcn.004fe930
jmp 0x50a23c
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call fcn.004fea70
fld dword [esp + 0x50]
fmul dword [esp + 0x20]
fstp dword [esp + 0x30]
fld dword [esp + 0x78]
fmul dword [esp + 0x20]
fstp dword [esp + 0x34]
fld dword [esp + 0xa8]
fmul dword [esp + 0x20]
fstp dword [esp + 0x38]
mov edx, dword [esp + 0xb0]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.0045d9e0
fsub dword [esp + 0x104]
mov ecx, dword [esp + 0xbc]
lea eax, [esp + 0x20]
fadd dword [esp + 0x138]
push eax
push ecx
fstp dword [esp + 0xf0]
call fcn.0045d9e0
fsub dword [esp + 0x13c]
mov eax, dword [esp + 0xc8]
lea edx, [esp + 0x28]
push edx
fadd dword [esp + 0x148]
push eax
fstp dword [esp + 0xfc]
call fcn.0045d9e0
fsub dword [esp + 0x11c]
lea ecx, [esp + 0xf8]
push ecx
lea eax, [edi + 0x20]
fadd dword [esp + 0x154]
push eax
mov edx, ecx
push edx
fstp dword [esp + 0x10c]
mov dword [esp + 0x110], 0x3f800000
call fcn.006bd920
mov ecx, dword [esp + 0xb0]
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.0045d9e0
fadd dword [esp + 0x74]
mov eax, dword [esp + 0x9c]
lea edx, [esp + 0x44]
push edx
fstp dword [esp + 0x4c]
push eax
call fcn.0045d9e0
fadd dword [esp + 0x15c]
add esp, 0x34
fstp dword [esp + 0x28]
fld dword [0x890968]
fld dword [esp + 0x4c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x50a3c0
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.0045d9e0
fadd dword [esp + 0x54]
add esp, 8
fst dword [esp + 0x20]
fcomp dword [0x890968]
fnstsw ax
test ah, 0x41
jne 0x50a38f
fld dword [esp + 0x20]
fld dword [0x89096c]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x50a395
fstp st(0)
mov dword [esp + 0xac], 0x3f800000
jmp 0x50a39c
fld dword [0x890968]
fstp dword [esp + 0xac]
mov al, byte [esp + 0x2d]
test al, al
jne 0x50a3c0
mov eax, dword [esp + 0xac]
push eax
lea ecx, [edi + 0x60]
push ecx
lea edx, [esp + 0x38]
push edx
mov eax, edx
push eax
call fcn.0045f640
add esp, 0x10
fld dword [esp + 0x28]
call fcn.007c4b80
xor ebx, ebx
mov bx, ax
and ebx, 0xfffe
movzx ecx, bx
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fmul dword [0x899ddc]
fmul dword [0x899dd8]
call fcn.007c4b80
mov byte [esp + 0x2e], al
mov eax, dword [esp + 0xf4]
test eax, eax
je 0x50a40a
xor edx, edx
mov dl, byte [esp + 0x18]
and edx, 1
or ebx, edx
fld dword [esp + 0x1c]
fcomp dword [0x899c94]
fnstsw ax
test ah, 0x41
jne 0x50a423
mov dword [esp + 0x1c], 0x42700000
mov al, byte [esp + 0x2c]
test al, al
jne 0x50a43b
cmp dword [0x9166c0], 0x400
jge 0x50a5cd
push edi
mov ecx, 0x9166c0
call fcn.00509710
mov esi, eax
test esi, esi
je 0x50a5cd
mov eax, dword [esp + 0xe0]
inc word [edi + 0x1c]
mov dword [esi + 0x50], eax
mov ecx, dword [esp + 0xe4]
mov dword [esi + 0x54], ecx
mov edx, dword [esp + 0xe8]
mov ecx, dword [esp + 0x90]
mov dword [esi + 0x58], edx
fld dword [esp + 0x34]
fld dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x94]
fxch st(1)
fstp dword [esi + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x98]
fstp dword [esi + 0x18]
mov dword [esi + 0x30], ecx
fld dword [esp + 0x1c]
mov dword [esi + 0x34], edx
fmul dword [0x898760]
mov dword [esi + 0x38], eax
call fcn.007c4b80
mov cl, byte [esp + 0x2e]
lea edx, [esp + 0x18]
mov word [esi + 0x68], ax
mov eax, dword [esp + 0xf8]
push edx
push eax
mov byte [esi + 0x6e], cl
mov word [esi + 0x6a], bx
call fcn.0045d9e0
fst dword [esp + 0x24]
fcomp dword [0x890968]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x50a5e7
fld dword [esp + 0x1c]
fld dword [0x89096c]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x50a50c
fstp st(0)
fld dword [0x89096c]
fmul dword [0x899dd8]
call fcn.007c4b80
mov byte [esi + 0x6f], al
mov al, byte [esp + 0x27]
test al, al
mov dword [esp + 0x20], 0
mov dword [esp + 0x58], 0xffffffff
je 0x50a5a7
mov ebx, dword [esp + 0x100]
mov eax, dword [ebx + 0x90]
mov ecx, eax
imul ecx, eax
mov al, byte [esp + 0x26]
test al, al
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fsub dword [0x89096c]
fstp dword [esp + 0x1c]
fld dword [0x890968]
je 0x50a573
mov edx, dword [esp + 0x1c]
fstp st(0)
push edx
call fcn.0045da70
add esp, 4
fld dword [esp + 0x1c]
fdivr st(1)
fmul dword [0x898864]
call fcn.007c4b80
mov word [esi + 0x6c], ax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.007c4b80
mov edx, dword [ebx + 0x90]
push eax
push edx
call fcn.004febc0
add esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xf0]
mov ecx, dword [esp + 0x58]
push esi
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x110]
push edx
mov dword [esi + 0x64], ecx
push eax
mov ecx, edi
call fcn.004fe7a0
dec dword [esp + 0x6c]
jne 0x509f03
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x14], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
fld dword [0x890968]
jmp 0x50a50c