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

Disassembly:
mov al, byte [0x6893ff]
sub esp, 0xbc
test al, al
push ebx
push ebp
push esi
push edi
je 0x5146e8
cmp word [0x7c0dc0], 1
jne 0x5146e8
mov eax, dword [0x71d05c]
test eax, eax
jle 0x5146e8
cmp byte [0x6e1ce8], 1
je 0x513edd
push 0x45800000
push 0x3d000200
call fcn.005190f0
add esp, 8
xor ecx, ecx
mov eax, 5
call fcn.005372a0
mov eax, dword [0x71d05c]
test eax, eax
mov dword [esp + 0x6c], 0
jle 0x514626
xor eax, eax
lea esi, [eax + eax*4]
lea esi, [esi*8 + 0x6ce740]
mov ecx, esi
call fcn.00513690
mov ecx, dword [esi + 0x10]
mov edi, eax
lea eax, [esp + 0xb8]
call fcn.005135a0
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 [0x7c0dc2]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
jne 0x51460c
mov eax, dword [esi + 0x24]
test eax, eax
mov ebp, dword [esi]
jle 0x51460c
movzx ecx, byte [esi + 0x1b]
test ecx, ecx
jbe 0x51460c
mov eax, dword [ebp + 0xc4]
test eax, eax
jle 0x51460c
lea edx, [esi + 4]
mov eax, dword [edx]
mov dword [esp + 0x60], eax
fld dword [esp + 0x60]
fsub dword [0x7c0dc8]
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 [0x6e1ce8]
test al, al
fsub dword [0x7c0dcc]
fstp dword [esp + 0x1c]
fld dword [esp + 0x68]
fsub dword [0x7c0dd0]
fstp dword [esp + 0x20]
fld dword [0x7c0ddc]
fmul dword [esp + 0x20]
fld dword [0x7c0dd8]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x7c0dd4]
faddp st(1)
fstp dword [esp + 0x14]
fld dword [0x7c0dd4]
fmul dword [esp + 0x14]
fld dword [0x7c0dd8]
fmul dword [esp + 0x14]
fld dword [0x7c0ddc]
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 0x514042
fld dword [esp + 0x14]
fmul dword [0x672af4]
fstp dword [esp + 0x14]
movzx eax, byte [edi]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fmul dword [0x672b0c]
fstp dword [esp + 0x30]
fld dword [ebp + 0x1c]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x5140b8
fld dword [esp + 0x14]
fsub dword [ebp + 0x1c]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x1c]
fdivp st(1)
fcomp dword [0x672af8]
fnstsw ax
test ah, 5
jp 0x51408b
fld dword [0x672af8]
jmp 0x5140be
fld dword [esp + 0x14]
fsub dword [ebp + 0x1c]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x1c]
fdivp st(1)
fcomp dword [0x672afc]
fnstsw ax
test ah, 0x41
je 0x5140b8
fld dword [esp + 0x14]
fsub dword [ebp + 0x1c]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x1c]
fdivp st(1)
jmp 0x5140be
fld dword [0x672afc]
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 [0x672b0c]
fstp dword [esp + 0x38]
fstp st(0)
call fcn.005136e0
fmul dword [ebp + 0x84]
fstp dword [esp + 0x94]
fld dword [0x7c0e6c]
fmul dword [esp + 0x20]
fld dword [0x7c0e68]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x7c0e64]
faddp st(1)
fld dword [0x7c0e78]
fmul dword [esp + 0x20]
fld dword [0x7c0e74]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x7c0e70]
faddp st(1)
fpatan
fmul dword [0x672b68]
fstp dword [esp + 0x98]
fld dword [ebp + 8]
fsub dword [ebp + 0xc]
fld dword [0x672af8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x51416e
fld dword [0x672afc]
fdiv st(1)
fstp dword [esp + 0x2c]
jmp 0x514176
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 [0x7c0ddc]
fmul dword [esp + 0x78]
fld dword [0x7c0dd8]
fmul dword [esp + 0x74]
faddp st(1)
fld dword [esp + 0x70]
fmul dword [0x7c0dd4]
faddp st(1)
fmul dword [esp + 0x2c]
fsubr dword [esp + 0x10]
fcom dword [0x672af8]
fnstsw ax
test ah, 5
jp 0x5141de
fstp st(0)
mov dword [esp + 0x80], 0
jmp 0x514201
fcom dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x5141fa
fstp st(0)
mov dword [esp + 0x80], 0x3f800000
jmp 0x514201
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 [0x672af8]
fnstsw ax
test ah, 5
jp 0x514241
fstp st(0)
mov dword [esp + 0x84], 0
jmp 0x514264
fcom dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x51425d
fstp st(0)
mov dword [esp + 0x84], 0x3f800000
jmp 0x514264
fstp dword [esp + 0x84]
fld dword [0x7c0ddc]
fmul dword [esp + 0x20]
fld dword [0x7c0dd8]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x7c0dd4]
faddp st(1)
fmul dword [esp + 0x2c]
fadd dword [esp + 0x10]
fcom dword [0x672af8]
fnstsw ax
test ah, 5
jp 0x5142aa
fstp st(0)
mov dword [esp + 0x88], 0
jmp 0x5142cd
fcom dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x5142c6
fstp st(0)
mov dword [esp + 0x88], 0x3f800000
jmp 0x5142cd
fstp dword [esp + 0x88]
fld dword [esp + 0x38]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x51460c
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 [0x672b0c]
fstp dword [esp + 0x24]
jle 0x51460c
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 0x51434b
mov edx, dword [esp + 0x10]
mov dword [esp + 0x38], edx
fld dword [esp + 0x10]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x5145f6
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 [0x672af8]
fld dword [edi + 0x40]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5143e7
fld dword [0x672af8]
fld dword [edi + 0x44]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5143e7
fld dword [0x672af8]
fld dword [edi + 0x48]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5143e7
fld dword [0x672af8]
fld dword [edi + 0x4c]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5143e7
mov eax, dword [esp + 0x10]
push eax
call fcn.00513450
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 0x5144bb
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 0x5144a5
fld dword [edi + 0x78]
sub esp, 8
fadd qword [0x7c0da0]
fdiv dword [edi + 0x74]
fstp qword [esp]
call fcn.004cc9f0
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.0043f6a0
fld dword [0x672afc]
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.004979b0
mov ecx, dword [edi + 0x40]
add esp, 4
mov ebx, eax
mov dword [esp + 0x5c], ecx
cmp word [esp + 0x3c], 0
jne 0x5144ed
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 0x51450a
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 0x514520
fld dword [esp + 0x34]
fadd dword [esp + 0x98]
fstp dword [esp + 0x34]
test al, 4
je 0x51453c
fld dword [esp + 0x30]
fadd dword [0x672afc]
fmul dword [esp + 0x28]
fmul dword [0x672af4]
fstp dword [esp + 0x28]
test al, 2
je 0x51454c
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.00512290
add esp, 4
test al, al
jne 0x51460c
mov eax, dword [esp + 0x5c]
push eax
call fcn.005122c0
mov al, byte [edi]
add esp, 4
test al, 8
je 0x5145bf
mov al, byte [esi + 0x22]
test al, al
mov word [0x746edc], 2
js 0x5145c8
mov word [0x746edc], 0
fld dword [esp + 0x34]
push ecx
fmul dword [0x672c70]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xb0]
lea eax, [esp + 0x90]
fstp dword [esp]
push ecx
push edx
call fcn.005376c0
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 0x514310
mov eax, dword [esp + 0x6c]
mov ecx, dword [0x71d05c]
inc eax
mov dword [esp + 0x6c], eax
movsx eax, ax
cmp eax, ecx
jl 0x513f00
xor eax, eax
call fcn.005193b0
cmp byte [0x6e1ce8], 1
je 0x514642
push 0
push 0
call fcn.005190f0
add esp, 8
call fcn.00536df0
mov eax, dword [0x71d1a0]
test eax, eax
je 0x51465f
mov eax, dword [eax]
test eax, eax
je 0x51465f
mov ecx, dword [eax]
push eax
call dword [ecx + 0x108]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 0
push eax
mov dword [0x71d1a0], 0
call dword [edx + 0x164]
mov al, byte [0x69c69a]
test al, al
jne 0x5146e8
mov al, byte [0x689426]
test al, al
je 0x5146e8
mov eax, dword [0x71d05c]
xor esi, esi
test eax, eax
jle 0x5146e8
xor eax, eax
mov edi, 0x42480000
lea ecx, [ecx]
lea eax, [eax + eax*4]
mov ecx, dword [eax*8 + 0x6ce764]
test ecx, ecx
lea eax, [eax*8 + 0x6ce740]
jle 0x5146da
movzx ecx, byte [eax + 0x22]
and ecx, 0xffffff7f
cmp cx, word [0x7c0dc2]
jne 0x5146da
mov ecx, dword [eax]
cmp dword [ecx + 0x10], edi
je 0x5146d5
test byte [ecx + 0x30], 1
je 0x5146da
call fcn.00525c20
mov ecx, dword [0x71d05c]
inc esi
movsx eax, si
cmp eax, ecx
jl 0x5146a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret