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

Disassembly:
mov al, byte [0x6249df]
sub esp, 0xbc
test al, al
push ebx
push ebp
push esi
push edi
je 0x517f88
cmp word [0x75c140], 1
jne 0x517f88
mov eax, dword [0x6b8304]
test eax, eax
jle 0x517f88
cmp byte [0x67ccb8], 1
je 0x51778d
push 0x45800000
push 0x3d000200
call fcn.0051c7f0
add esp, 8
xor ecx, ecx
mov eax, 5
call fcn.0053a590
mov eax, dword [0x6b8304]
test eax, eax
mov dword [esp + 0x6c], 0
jle 0x517ed6
xor eax, eax
lea esi, [eax + eax*4]
lea esi, [esi*8 + 0x669680]
mov ecx, esi
call fcn.00516f20
mov ecx, dword [esi + 0x10]
mov edi, eax
lea eax, [esp + 0xb8]
call fcn.00516e30
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 [0x75c142]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
jne 0x517ebc
mov eax, dword [esi + 0x24]
test eax, eax
mov ebp, dword [esi]
jle 0x517ebc
movzx ecx, byte [esi + 0x1b]
test ecx, ecx
jbe 0x517ebc
mov eax, dword [ebp + 0xc4]
test eax, eax
jle 0x517ebc
lea edx, [esi + 4]
mov eax, dword [edx]
mov dword [esp + 0x60], eax
fld dword [esp + 0x60]
fsub dword [0x75c148]
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 [0x67ccb8]
test al, al
fsub dword [0x75c14c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x68]
fsub dword [0x75c150]
fstp dword [esp + 0x20]
fld dword [0x75c15c]
fmul dword [esp + 0x20]
fld dword [0x75c158]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x75c154]
faddp st(1)
fstp dword [esp + 0x14]
fld dword [0x75c154]
fmul dword [esp + 0x14]
fld dword [0x75c158]
fmul dword [esp + 0x14]
fld dword [0x75c15c]
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 0x5178f2
fld dword [esp + 0x14]
fmul dword [0x61221c]
fstp dword [esp + 0x14]
movzx eax, byte [edi]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fmul dword [0x612234]
fstp dword [esp + 0x30]
fld dword [ebp + 0x1c]
fcomp dword [0x612220]
fnstsw ax
test ah, 0x41
jne 0x517968
fld dword [esp + 0x14]
fsub dword [ebp + 0x1c]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x1c]
fdivp st(1)
fcomp dword [0x612220]
fnstsw ax
test ah, 5
jp 0x51793b
fld dword [0x612220]
jmp 0x51796e
fld dword [esp + 0x14]
fsub dword [ebp + 0x1c]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x1c]
fdivp st(1)
fcomp dword [0x612224]
fnstsw ax
test ah, 0x41
je 0x517968
fld dword [esp + 0x14]
fsub dword [ebp + 0x1c]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x1c]
fdivp st(1)
jmp 0x51796e
fld dword [0x612224]
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 [0x612234]
fstp dword [esp + 0x38]
fstp st(0)
call fcn.00516f70
fmul dword [ebp + 0x84]
fstp dword [esp + 0x94]
fld dword [0x75c1ec]
fmul dword [esp + 0x20]
fld dword [0x75c1e8]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x75c1e4]
faddp st(1)
fld dword [0x75c1f8]
fmul dword [esp + 0x20]
fld dword [0x75c1f4]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x75c1f0]
faddp st(1)
fpatan
fmul dword [0x612290]
fstp dword [esp + 0x98]
fld dword [ebp + 8]
fsub dword [ebp + 0xc]
fld dword [0x612220]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x517a1e
fld dword [0x612224]
fdiv st(1)
fstp dword [esp + 0x2c]
jmp 0x517a26
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 [0x75c15c]
fmul dword [esp + 0x78]
fld dword [0x75c158]
fmul dword [esp + 0x74]
faddp st(1)
fld dword [esp + 0x70]
fmul dword [0x75c154]
faddp st(1)
fmul dword [esp + 0x2c]
fsubr dword [esp + 0x10]
fcom dword [0x612220]
fnstsw ax
test ah, 5
jp 0x517a8e
fstp st(0)
mov dword [esp + 0x80], 0
jmp 0x517ab1
fcom dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x517aaa
fstp st(0)
mov dword [esp + 0x80], 0x3f800000
jmp 0x517ab1
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 [0x612220]
fnstsw ax
test ah, 5
jp 0x517af1
fstp st(0)
mov dword [esp + 0x84], 0
jmp 0x517b14
fcom dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x517b0d
fstp st(0)
mov dword [esp + 0x84], 0x3f800000
jmp 0x517b14
fstp dword [esp + 0x84]
fld dword [0x75c15c]
fmul dword [esp + 0x20]
fld dword [0x75c158]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x75c154]
faddp st(1)
fmul dword [esp + 0x2c]
fadd dword [esp + 0x10]
fcom dword [0x612220]
fnstsw ax
test ah, 5
jp 0x517b5a
fstp st(0)
mov dword [esp + 0x88], 0
jmp 0x517b7d
fcom dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x517b76
fstp st(0)
mov dword [esp + 0x88], 0x3f800000
jmp 0x517b7d
fstp dword [esp + 0x88]
fld dword [esp + 0x38]
fcomp dword [0x612220]
fnstsw ax
test ah, 0x41
jne 0x517ebc
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 [0x612234]
fstp dword [esp + 0x24]
jle 0x517ebc
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 0x517bfb
mov edx, dword [esp + 0x10]
mov dword [esp + 0x38], edx
fld dword [esp + 0x10]
fcomp dword [0x612220]
fnstsw ax
test ah, 0x41
jne 0x517ea6
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 [0x612220]
fld dword [edi + 0x40]
fucompp
fnstsw ax
test ah, 0x44
jp 0x517c97
fld dword [0x612220]
fld dword [edi + 0x44]
fucompp
fnstsw ax
test ah, 0x44
jp 0x517c97
fld dword [0x612220]
fld dword [edi + 0x48]
fucompp
fnstsw ax
test ah, 0x44
jp 0x517c97
fld dword [0x612220]
fld dword [edi + 0x4c]
fucompp
fnstsw ax
test ah, 0x44
jp 0x517c97
mov eax, dword [esp + 0x10]
push eax
call fcn.00516ce0
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 0x517d6b
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 0x517d55
fld dword [edi + 0x78]
sub esp, 8
fadd qword [0x75c130]
fdiv dword [edi + 0x74]
fstp qword [esp]
call fcn.004cfdb0
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 [0x612224]
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.0049a9a0
mov ecx, dword [edi + 0x40]
add esp, 4
mov ebx, eax
mov dword [esp + 0x5c], ecx
cmp word [esp + 0x3c], 0
jne 0x517d9d
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 0x517dba
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 0x517dd0
fld dword [esp + 0x34]
fadd dword [esp + 0x98]
fstp dword [esp + 0x34]
test al, 4
je 0x517dec
fld dword [esp + 0x30]
fadd dword [0x612224]
fmul dword [esp + 0x28]
fmul dword [0x61221c]
fstp dword [esp + 0x28]
test al, 2
je 0x517dfc
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.00515b40
add esp, 4
test al, al
jne 0x517ebc
mov eax, dword [esp + 0x5c]
push eax
call fcn.00515b70
mov al, byte [edi]
add esp, 4
test al, 8
je 0x517e6f
mov al, byte [esi + 0x22]
test al, al
mov word [0x6e21bc], 2
js 0x517e78
mov word [0x6e21bc], 0
fld dword [esp + 0x34]
push ecx
fmul dword [0x612398]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xb0]
lea eax, [esp + 0x90]
fstp dword [esp]
push ecx
push edx
call fcn.0053a9a0
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 0x517bc0
mov eax, dword [esp + 0x6c]
mov ecx, dword [0x6b8304]
inc eax
mov dword [esp + 0x6c], eax
movsx eax, ax
cmp eax, ecx
jl 0x5177b0
xor eax, eax
call fcn.0051cab0
cmp byte [0x67ccb8], 1
je 0x517ef2
push 0
push 0
call fcn.0051c7f0
add esp, 8
call fcn.0053a0e0
mov eax, dword [0x6b8344]
mov ecx, dword [eax]
push 0
push eax
mov dword [0x6b8440], 0
call dword [ecx + 0x164]
mov al, byte [0x637d52]
test al, al
jne 0x517f88
mov al, byte [0x624a06]
test al, al
je 0x517f88
mov eax, dword [0x6b8304]
xor esi, esi
test eax, eax
jle 0x517f88
xor eax, eax
mov edi, 0x42480000
jmp 0x517f40
lea eax, [eax + eax*4]
mov ecx, dword [eax*8 + 0x6696a4]
test ecx, ecx
lea eax, [eax*8 + 0x669680]
jle 0x517f7a
movzx edx, byte [eax + 0x22]
and edx, 0xffffff7f
cmp dx, word [0x75c142]
jne 0x517f7a
mov ecx, dword [eax]
cmp dword [ecx + 0x10], edi
je 0x517f75
test byte [ecx + 0x30], 1
je 0x517f7a
call fcn.00528f50
mov ecx, dword [0x6b8304]
inc esi
movsx eax, si
cmp eax, ecx
jl 0x517f40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret