Function at 0x50ad50
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x550dc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
mov ecx, dword [esp + 0x30]
push ebx
mov dword [esp + 0x20], ebx
call fcn.004dd290
push eax
lea ecx, [esp + 0x1c]
call fcn.0053ffba
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
call fcn.00540410
fld qword [ebp + 0x270]
fcom qword [0x55a2b8]
fnstsw ax
test ah, 0x40
jne 0x50b08c
mov eax, dword [ebp + 0x278]
mov ecx, dword [ebp + 0x27c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
fld qword [esp + 0x10]
fcomp qword [0x55a2b8]
fnstsw ax
test ah, 0x40
jne 0x50b08c
fabs
fcomp qword [0x5699f8]
fnstsw ax
test ah, 0x41
jne 0x50b08e
mov edx, dword [ebp + 0x270]
mov eax, dword [ebp + 0x274]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
fld qword [esp + 8]
fsub qword [0x5566b8]
fabs
fcomp qword [0x5699f8]
fnstsw ax
test ah, 0x41
je 0x50ae2a
fld qword [esp + 0x10]
fabs
fcomp qword [0x5699f0]
fnstsw ax
test ah, 0x41
jne 0x50b08e
mov eax, dword [ebp + 0x1a4]
cmp eax, 6
je 0x50b08e
cmp eax, 7
je 0x50b08e
cmp eax, ebx
jne 0x50ae75
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
call fcn.0050aa20
add esp, 0x18
mov dword [esp + 0x1c], eax
jmp 0x50b08e
cmp dword [ebp + 0x1b4], 1
jne 0x50b060
fld qword [ebp + 0x278]
push esi
mov esi, dword [esp + 0x38]
fstp dword [esp + 0xc]
fld qword [ebp + 0x270]
push edi
mov edi, esi
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fsub dword [0x562668]
fabs
fcom qword [0x5699e0]
fnstsw ax
test ah, 1
je 0x50aece
fld dword [esp + 0x10]
fabs
fcomp qword [0x5699e0]
fnstsw ax
test ah, 1
jne 0x50b012
fld dword [esp + 0x10]
fabs
fcomp qword [0x5699e0]
fnstsw ax
test ah, 1
je 0x50af49
mov eax, dword [esp + 0x40]
cmp eax, ebx
fstp st(0)
jle 0x50b014
lea ebx, [eax]
xor ecx, ecx
mov cx, word [edi]
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
fmul dword [esp + 0x18]
fcom qword [0x5699d8]
fnstsw ax
test ah, 0x41
jne 0x50af18
fstp st(0)
mov word [esi], 0x7fff
jmp 0x50af3c
fcom qword [0x5699d0]
fnstsw ax
test ah, 1
je 0x50af2e
fstp st(0)
mov word [esi], 0x8001
jmp 0x50af3c
fadd qword [0x554618]
call fcn.00540a50
mov word [esi], ax
add edi, 2
dec ebx
mov esi, edi
jne 0x50aef1
jmp 0x50b014
fcomp qword [0x5699e0]
fnstsw ax
test ah, 1
mov eax, dword [esp + 0x40]
je 0x50afb3
cmp eax, ebx
jle 0x50b014
lea ebx, [eax]
xor edx, edx
mov dx, word [edi]
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fadd dword [esp + 0x10]
fcom qword [0x5699d8]
fnstsw ax
test ah, 0x41
jne 0x50af8b
fstp st(0)
mov word [esi], 0x7fff
jmp 0x50afa9
fcom qword [0x5699d0]
fnstsw ax
test ah, 1
je 0x50afa1
fstp st(0)
mov word [esi], 0x8001
jmp 0x50afa9
call fcn.00540a50
mov word [esi], ax
add edi, 2
dec ebx
mov esi, edi
jne 0x50af64
jmp 0x50b014
cmp eax, ebx
jle 0x50b014
lea ebx, [eax]
xor eax, eax
mov ax, word [edi]
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fmul dword [esp + 0x18]
fadd dword [esp + 0x10]
fcom qword [0x5699d8]
fnstsw ax
test ah, 0x41
jne 0x50afe4
fstp st(0)
mov word [esi], 0x7fff
jmp 0x50b008
fcom qword [0x5699d0]
fnstsw ax
test ah, 1
je 0x50affa
fstp st(0)
mov word [esi], 0x8001
jmp 0x50b008
fadd qword [0x554618]
call fcn.00540a50
mov word [esi], ax
add edi, 2
dec ebx
mov esi, edi
jne 0x50afb9
jmp 0x50b014
fstp st(0)
lea ecx, [esp + 0x40]
push 2
push ecx
lea ecx, [esp + 0x28]
call fcn.0053ffd2
mov eax, dword [eax]
push 0x5942a0
push eax
call dword [0x553af0]
add esp, 8
lea ecx, [esp + 0x40]
test eax, eax
setne bl
call fcn.0053feb8
pop edi
pop esi
test bl, bl
je 0x50b08e
mov ecx, dword [esp + 0x30]
push 1
call fcn.004e0510
mov dword [ebp + 0x1a4], 0
jmp 0x50b08e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
call fcn.0050abb0
add esp, 0x18
mov dword [esp + 0x1c], eax
jmp 0x50b08e
fstp st(0)
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.0053feb8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc