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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54115b
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5857cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [esi + 0x19220]
mov edx, dword [esi + 0x19230]
push ecx
lea edi, [esi + 0x44]
push edi
push 0x20
push 0x20
push edx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xd0], edi
call fcn.00514aa0
mov eax, dword [esi + 0x19230]
add eax, eax
add eax, eax
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00514680
fldz
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x19228]
test eax, eax
je 0x50e5be
mov ecx, 0xfffe
fst dword [eax + 0x44]
and word [eax + 4], cx
mov eax, dword [eax + 0x68]
test eax, eax
jne 0x50e5ab
mov eax, dword [esi + 0x19214]
fstp st(0)
mov ecx, 0xfffffff3
test eax, eax
je 0x50e5da
nop
and dword [eax + 4], ecx
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x50e5d0
mov esi, dword [esi + 0x1922c]
test esi, esi
je 0x50e5ef
mov byte [esi + 0x38], 0
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x50e5e4
mov edx, dword [ebp - 0x50]
fld1
mov esi, dword [edx + 0x19214]
fstp dword [ebp - 0x44]
mov dword [ebp - 0x40], 0
test esi, esi
je 0x50ee83
lea esp, [esp]
mov eax, dword [esi + 4]
test al, 1
jne 0x50e732
test al, 0x20
je 0x50e732
test al, 2
je 0x50e732
test al, 8
je 0x50e63d
fld dword [esi + 0x78]
fstp dword [ebp - 0x30]
fld dword [ebp - 0x30]
jmp 0x50e70f
mov eax, dword [esi + 0x30]
mov edi, dword [eax + 0x18]
cmp dword [edi], 2
mov ecx, dword [esi + 0x34]
mov ebx, dword [ecx + 0x18]
jne 0x50e654
test byte [edi + 4], 2
jne 0x50e667
cmp dword [ebx], 2
jne 0x50e732
test byte [ebx + 4], 2
je 0x50e732
fld dword [edi + 0x44]
fstp dword [ebp - 0x38]
fld dword [edi + 0x44]
fld dword [ebx + 0x44]
fcompp
fnstsw ax
test ah, 0x41
jne 0x50e685
fld dword [ebx + 0x44]
push ecx
lea ecx, [edi + 0x24]
jmp 0x50e69b
fld dword [ebx + 0x44]
fld dword [edi + 0x44]
fcompp
fnstsw ax
test ah, 0x41
jne 0x50e6a9
fld dword [edi + 0x44]
push ecx
lea ecx, [ebx + 0x24]
fstp dword [ebp - 0x38]
fld dword [ebp - 0x38]
fstp dword [esp]
call fcn.0050d970
add ebx, 0x24
push ebx
add edi, 0x24
push edi
mov ecx, esi
call fcn.00517af0
fstp dword [ebp - 0x30]
fld dword [ebp - 0x30]
fcom qword [0x546578]
fnstsw ax
test ah, 0x41
jne 0x50e708
fld1
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x50e706
fld st(1)
fld1
fsubrp st(1)
fmul dword [ebp - 0x38]
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x2c]
fld dword [ebp - 0x2c]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x50e6fc
fstp st(1)
fstp dword [ebp - 0x30]
fld dword [ebp - 0x30]
jmp 0x50e708
fstp st(0)
fstp dword [ebp - 0x30]
fld dword [ebp - 0x30]
jmp 0x50e708
fstp st(0)
or dword [esi + 4], 8
fst dword [esi + 0x78]
fcom qword [0x564730]
fnstsw ax
test ah, 0x41
jne 0x50e730
fld dword [ebp - 0x44]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x50e730
fstp dword [ebp - 0x44]
mov dword [ebp - 0x40], esi
jmp 0x50e732
fstp st(0)
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x50e610
cmp dword [ebp - 0x40], esi
je 0x50ee83
fld dword [ebp - 0x44]
fcom qword [0x564738]
fnstsw ax
test ah, 0x41
je 0x50ee81
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x30]
mov ebx, dword [ecx + 0x18]
mov edx, dword [eax + 0x34]
mov edx, dword [edx + 0x18]
mov ecx, 9
lea esi, [ebx + 0x24]
lea edi, [ebp - 0x114]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x24]
mov ecx, 9
lea edi, [ebp - 0x138]
rep movsd dword es:[edi], dword [esi]
push ecx
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x38], edx
fstp dword [esp]
call fcn.0050d970
mov eax, dword [ebx + 0x2c]
fld dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x30]
fstp dword [ebp - 0x2c]
mov dword [ebx + 0x34], eax
fld dword [ebp - 0x2c]
mov dword [ebx + 0x38], ecx
fst dword [ebx + 0x40]
fstp dword [ebp - 0x30]
fld dword [ebp - 0x30]
call fcn.00521712
fstp dword [ebp - 0x2c]
fld dword [ebp - 0x2c]
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x30]
call fcn.00521718
fstp dword [ebp - 0x2c]
fld dword [ebp - 0x2c]
mov edi, dword [ebp - 0x38]
fstp dword [ebp - 0x2c]
push ecx
fld dword [ebp - 0x3c]
lea ecx, [edi + 0x24]
fst dword [ebx + 0x14]
fld dword [ebp - 0x2c]
fld st(0)
fchs
fstp dword [ebx + 0x1c]
fstp dword [ebx + 0x18]
fstp dword [ebx + 0x20]
fld dword [ebx + 0x28]
fmul dword [ebx + 0x1c]
fld dword [ebx + 0x24]
fmul dword [ebx + 0x14]
faddp st(1)
fstp dword [ebp - 0xe8]
fld dword [ebx + 0x28]
fmul dword [ebx + 0x20]
fld dword [ebx + 0x24]
fmul dword [ebx + 0x18]
faddp st(1)
fstp dword [ebp - 0xe4]
fld dword [ebx + 0x34]
fsub dword [ebp - 0xe8]
fstp dword [ebp - 0x90]
mov edx, dword [ebp - 0x90]
fld dword [ebx + 0x38]
mov dword [ebx + 0xc], edx
fsub dword [ebp - 0xe4]
fstp dword [ebp - 0x8c]
mov eax, dword [ebp - 0x8c]
fld dword [ebp - 0x44]
mov dword [ebx + 0x10], eax
fstp dword [esp]
call fcn.0050d970
mov esi, edi
fld dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x3c]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edx
fst dword [esi + 0x40]
fstp dword [ebp - 0x30]
fld dword [ebp - 0x30]
call fcn.00521712
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x3c]
fstp dword [ebp - 0x2c]
fld dword [ebp - 0x30]
call fcn.00521718
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x3c]
mov edx, dword [ebp - 0x50]
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x2c]
fst dword [esi + 0x14]
fld dword [ebp - 0x3c]
fld st(0)
fchs
fstp dword [esi + 0x1c]
fstp dword [esi + 0x18]
fstp dword [esi + 0x20]
fld dword [edi + 0x28]
fmul dword [esi + 0x1c]
fld dword [esi + 0x14]
fmul dword [edi + 0x24]
faddp st(1)
fstp dword [ebp - 0xf0]
fld dword [edi + 0x28]
fmul dword [esi + 0x20]
fld dword [esi + 0x18]
fmul dword [edi + 0x24]
faddp st(1)
fstp dword [ebp - 0xec]
fld dword [esi + 0x34]
fsub dword [ebp - 0xf0]
fstp dword [ebp - 0xac]
mov eax, dword [ebp - 0xac]
fld dword [esi + 0x38]
mov dword [esi + 0xc], eax
fsub dword [ebp - 0xec]
fstp dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa8]
mov dword [esi + 0x10], ecx
mov eax, dword [edx + 0x19220]
mov esi, dword [ebp - 0x40]
push eax
mov ecx, esi
call fcn.005177c0
and dword [esi + 4], 0xfffffff7
mov eax, dword [esi + 4]
test al, 1
jne 0x50ed2a
test al, 0x20
je 0x50ed2a
test al, 0x10
je 0x50e5ef
cmp dword [ebx], 2
je 0x50e93c
mov ebx, edi
mov ecx, dword [ebp - 0x4c]
fldz
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], eax
mov edx, 1
mov dword [ecx], ebx
or word [ebx + 4], dx
mov dword [ebp - 0x30], edx
jmp 0x50e964
mov eax, dword [ebp - 0x40]
mov edx, 1
mov ecx, dword [ebp - 0x4c]
mov ecx, dword [ecx + eax*4]
sub dword [ebp - 0x30], edx
add eax, edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x6c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x80]
mov dword [esi + eax*4], ecx
add dword [ebp - 0x6c], edx
movzx eax, word [ecx + 4]
mov dword [ebp - 0x34], ecx
test al, 2
jne 0x50e99c
or eax, 2
fst dword [ecx + 0x98]
mov word [ecx + 4], ax
cmp dword [ecx], 2
jne 0x50ec56
mov ebx, dword [ecx + 0x78]
test ebx, ebx
je 0x50eb04
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x4c]
lea edx, [eax + edx*4]
mov dword [ebp - 0x2c], edx
mov edi, 1
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x5c]
je 0x50eb04
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test al, 5
jne 0x50eaf9
test al, 0x20
je 0x50eaf9
test al, 0x10
je 0x50eaf9
mov eax, dword [ebx + 4]
mov esi, dword [ebp - 0x7c]
mov dword [esi + edx*4], eax
add dword [ebp - 0x64], edi
mov eax, dword [ebx + 4]
or dword [eax + 4], 4
mov esi, dword [ebx]
test byte [esi + 4], 1
jne 0x50eaf9
cmp dword [esi], 0
je 0x50eae7
fstp st(0)
push ecx
fld dword [ebp - 0x44]
lea ecx, [esi + 0x24]
fstp dword [esp]
call fcn.0050d970
fld dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x3c]
mov dword [esi + 0x34], ecx
fst dword [esi + 0x40]
mov dword [esi + 0x38], edx
fstp dword [ebp - 0x38]
fld dword [ebp - 0x38]
call fcn.00521712
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x3c]
fstp dword [ebp - 0x48]
fld dword [ebp - 0x38]
call fcn.00521718
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x3c]
mov edi, 1
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x48]
fst dword [esi + 0x14]
fld dword [ebp - 0x3c]
fld st(0)
fchs
fstp dword [esi + 0x1c]
fstp dword [esi + 0x18]
fstp dword [esi + 0x20]
fld dword [esi + 0x1c]
fmul dword [esi + 0x28]
fld dword [esi + 0x14]
fmul dword [esi + 0x24]
faddp st(1)
fstp dword [ebp - 0xd8]
fld dword [esi + 0x20]
fmul dword [esi + 0x28]
fld dword [esi + 0x24]
fmul dword [esi + 0x18]
faddp st(1)
fstp dword [ebp - 0xd4]
fld dword [esi + 0x34]
fsub dword [ebp - 0xd8]
fstp dword [ebp - 0xbc]
mov eax, dword [ebp - 0xbc]
fld dword [esi + 0x38]
or word [esi + 4], 2
fsub dword [ebp - 0xd4]
mov dword [esi + 0xc], eax
fstp dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb8]
fldz
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x34]
fst dword [esi + 0x98]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x30], edi
mov dword [eax], esi
add eax, 4
or word [esi + 4], di
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x50e9c4
mov edi, dword [ecx + 0x74]
test edi, edi
je 0x50ec56
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
lea edx, [ecx + edx*4]
mov dword [ebp - 0x38], edx
mov ecx, 1
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x58]
je 0x50ec4b
mov edx, dword [edi + 4]
cmp byte [edx + 0x38], 1
je 0x50ec4b
mov esi, dword [edi]
test byte [esi + 4], 0x20
je 0x50ec4b
mov ebx, dword [ebp - 0x78]
mov dword [ebx + eax*4], edx
add dword [ebp - 0x68], ecx
mov eax, dword [edi + 4]
mov byte [eax + 0x38], 1
test byte [esi + 4], 1
jne 0x50ec4b
cmp dword [esi], 0
je 0x50ec39
fstp st(0)
push ecx
fld dword [ebp - 0x44]
lea ecx, [esi + 0x24]
fstp dword [esp]
call fcn.0050d970
fld dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
fstp dword [ebp - 0x34]
fld dword [ebp - 0x34]
mov dword [esi + 0x34], ecx
fst dword [esi + 0x40]
mov dword [esi + 0x38], edx
fstp dword [ebp - 0x2c]
fld dword [ebp - 0x2c]
call fcn.00521712
fstp dword [ebp - 0x34]
fld dword [ebp - 0x34]
fstp dword [ebp - 0x48]
fld dword [ebp - 0x2c]
call fcn.00521718
fstp dword [ebp - 0x34]
fld dword [ebp - 0x34]
fstp dword [ebp - 0x34]
fld dword [ebp - 0x48]
fst dword [esi + 0x14]
fld dword [ebp - 0x34]
fld st(0)
fchs
fstp dword [esi + 0x1c]
fstp dword [esi + 0x18]
fstp dword [esi + 0x20]
fld dword [esi + 0x14]
fmul dword [esi + 0x24]
fld dword [esi + 0x1c]
fmul dword [esi + 0x28]
faddp st(1)
fstp dword [ebp - 0xe0]
fld dword [esi + 0x24]
fmul dword [esi + 0x18]
fld dword [esi + 0x20]
fmul dword [esi + 0x28]
faddp st(1)
fstp dword [ebp - 0xdc]
fld dword [esi + 0x34]
fsub dword [ebp - 0xe0]
fstp dword [ebp - 0xcc]
mov eax, dword [ebp - 0xcc]
fld dword [esi + 0x38]
or word [esi + 4], 2
fsub dword [ebp - 0xdc]
mov dword [esi + 0xc], eax
fstp dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc8]
fldz
mov dword [esi + 0x10], ecx
fst dword [esi + 0x98]
mov ecx, 1
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x30], ecx
mov dword [eax], esi
add eax, 4
or word [esi + 4], cx
mov dword [ebp - 0x38], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x50eb23
cmp dword [ebp - 0x30], 0
jg 0x50e95c
fld dword [ebp - 0x44]
mov eax, dword [ebp - 0x9c]
fld1
mov edx, dword [eax + 0xc]
fld st(0)
lea ecx, [ebp - 0x28]
fsubrp st(2)
push ecx
fld dword [eax]
lea ecx, [ebp - 0x88]
mov eax, dword [eax + 0x10]
mov byte [ebp - 0x14], 0
fmulp st(2)
mov dword [ebp - 0x1c], edx
fxch st(1)
mov dword [ebp - 0x18], eax
fstp dword [ebp - 0x28]
fdiv dword [ebp - 0x28]
fstp dword [ebp - 0x24]
fstp dword [ebp - 0x20]
call fcn.00515250
xor edi, edi
cmp dword [ebp - 0x6c], edi
jle 0x50ece5
lea ebx, [edi - 9]
mov edx, dword [ebp - 0x80]
mov esi, dword [edx + edi*4]
mov eax, 0xfffe
and word [esi + 4], ax
test byte [esi + 4], 2
je 0x50ecdf
cmp dword [esi], 0
je 0x50ecdf
mov ecx, esi
call fcn.00511a60
mov eax, dword [esi + 0x78]
test eax, eax
je 0x50ecdf
mov ecx, dword [eax + 4]
and dword [ecx + 4], ebx
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x50ecd2
inc edi
cmp edi, dword [ebp - 0x6c]
jl 0x50ecaa
xor eax, eax
cmp dword [ebp - 0x64], eax
jle 0x50ed00
mov edx, 0xfffffff3
mov ecx, dword [ebp - 0x7c]
mov ecx, dword [ecx + eax*4]
and dword [ecx + 4], edx
inc eax
cmp eax, dword [ebp - 0x64]
jl 0x50ecf1
xor eax, eax
cmp dword [ebp - 0x68], eax
jle 0x50ed17
mov edx, dword [ebp - 0x78]
mov ecx, dword [edx + eax*4]
inc eax
mov byte [ecx + 0x38], 0
cmp eax, dword [ebp - 0x68]
jl 0x50ed07
mov ecx, dword [ebp - 0x50]
add ecx, 0x191d8
call fcn.005164b0
jmp 0x50e5ef
mov ecx, 9
lea esi, [ebp - 0x114]
lea edi, [ebx + 0x24]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x38]
mov ecx, 9
lea esi, [ebp - 0x138]
add edi, 0x24
rep movsd dword es:[edi], dword [esi]
fld dword [ebx + 0x40]
fstp dword [ebp - 0x2c]
fld dword [ebp - 0x2c]
call fcn.00521712
fstp dword [ebp - 0x34]
fld dword [ebp - 0x34]
fstp dword [ebp - 0x48]
fld dword [ebp - 0x2c]
call fcn.00521718
fstp dword [ebp - 0x34]
fld dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
fstp dword [ebp - 0x34]
fld dword [ebp - 0x48]
fst dword [ebx + 0x14]
fld dword [ebp - 0x34]
fld st(0)
fchs
fstp dword [ebx + 0x1c]
fstp dword [ebx + 0x18]
fstp dword [ebx + 0x20]
fld dword [ebx + 0x28]
fmul dword [ebx + 0x1c]
fld dword [ebx + 0x24]
fmul dword [ebx + 0x14]
faddp st(1)
fstp dword [ebp - 0x98]
fld dword [ebx + 0x28]
fmul dword [ebx + 0x20]
fld dword [ebx + 0x24]
fmul dword [ebx + 0x18]
faddp st(1)
fstp dword [ebp - 0x94]
fld dword [ebx + 0x34]
fsub dword [ebp - 0x98]
fstp dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa4]
fld dword [ebx + 0x38]
mov dword [ebx + 0xc], edx
fsub dword [ebp - 0x94]
fstp dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa0]
mov dword [ebx + 0x10], eax
fld dword [esi + 0x40]
fstp dword [ebp - 0x2c]
fld dword [ebp - 0x2c]
call fcn.00521712
fstp dword [ebp - 0x34]
fld dword [ebp - 0x34]
fstp dword [ebp - 0x48]
fld dword [ebp - 0x2c]
call fcn.00521718
fstp dword [ebp - 0x34]
fld dword [ebp - 0x34]
fstp dword [ebp - 0x34]
fld dword [ebp - 0x48]
fst dword [esi + 0x14]
fld dword [ebp - 0x34]
fld st(0)
fchs
fstp dword [esi + 0x1c]
fstp dword [esi + 0x18]
fstp dword [esi + 0x20]
fld dword [esi + 0x28]
fmul dword [esi + 0x1c]
fld dword [esi + 0x14]
fmul dword [esi + 0x24]
faddp st(1)
fstp dword [ebp - 0xb4]
fld dword [esi + 0x28]
fmul dword [esi + 0x20]
fld dword [esi + 0x18]
fmul dword [esi + 0x24]
faddp st(1)
fstp dword [ebp - 0xb0]
fld dword [esi + 0x34]
fsub dword [ebp - 0xb4]
fstp dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc4]
fld dword [esi + 0x38]
mov dword [esi + 0xc], ecx
fsub dword [ebp - 0xb0]
fstp dword [ebp - 0xc0]
mov edx, dword [ebp - 0xc0]
mov dword [esi + 0x10], edx
jmp 0x50e5ef
fstp st(0)
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xd0]
push eax
call fcn.00514630
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
call fcn.00514b40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521458
mov esp, ebp
pop ebp
ret 4