Function at 0x690651e0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xe8
mov ebx, dword [ecx]
mov eax, dword [ebx + 0x4c]
sub eax, 4
cmp eax, 1
jbe 0x690652c0
mov eax, dword [ebx + 0x58]
lea edi, [ebp - 0xa8]
mov dword [ebx + 0x5c], 0
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CloseEnhMetaFile]
mov edx, dword [ebx + 0x60]
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x50], eax
sub esp, 4
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0xac], eax
call eax
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
sub esp, 0xc
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sym.gdiplus.dll_GdipGetMetafileHeaderFromEmf
sub esp, 8
test eax, eax
mov esi, eax
je 0x69065370
lea esi, [esi]
lea esi, [esi]
nop
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x690652a9
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [ebx + 0x6c], 0
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
lea edi, [ebp - 0xa8]
mov ecx, 0xc
mov dword [esp], edi
mov edx, 0x4002
mov eax, ebx
call sym._METAFILE_AllocateRecord
test eax, eax
mov esi, eax
jne 0x69065318
mov edx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x58]
cmp edx, 4
jbe 0x69065211
mov ecx, dword [ebx + 0x60]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call dword [sym.imp.gdi32.dll_GdiComment]
mov eax, dword [ebx + 0x58]
mov dword [ebx + 0x68], 4
sub esp, 0xc
jmp 0x69065211
mov dword [ebx + 0x5c], 0
mov eax, dword [ebx + 0x58]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CloseEnhMetaFile]
mov edx, dword [ebx + 0x60]
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x50], eax
sub esp, 4
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
sub esp, 0xc
jmp 0x69065290
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x69065810
movss xmm5, dword [ebx + 0x7c]
movss xmm0, dword [ebx + 0x74]
comiss xmm5, xmm0
jb 0x69065810
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
movss xmm2, dword [0x69084f78]
movss xmm4, dword [ebx + 0x80]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x6c]
movups xmm1, xmm2
mov ecx, dword [ebp - 0x78]
divss xmm2, dword [ebp - 0x94]
movss dword [ebp - 0xb8], xmm4
divss xmm1, dword [ebp - 0x98]
movss dword [ebp - 0xb0], xmm2
mov dword [ebp - 0xd0], edx
cmp eax, edx
movss xmm2, dword [ebx + 0x78]
mov dword [ebp - 0xc4], eax
jle 0x6906555f
cmp ecx, dword [ebp - 0xc0]
jge 0x6906555f
pxor xmm3, xmm3
cvtsi2sd xmm3, ecx
movss dword [ebp - 0xe4], xmm1
movss dword [ebp - 0xe0], xmm5
mov ecx, dword [sym.imp.ucrtbase.dll_fmin]
cvtss2sd xmm0, xmm0
movss dword [ebp - 0xe8], xmm2
movsd qword [esp + 8], xmm3
movsd qword [esp], xmm0
mov dword [ebp - 0xdc], ecx
call ecx
mov edx, dword [ebp - 0xd0]
pxor xmm0, xmm0
movss xmm2, dword [ebp - 0xe8]
pxor xmm3, xmm3
mov ecx, dword [ebp - 0xdc]
cvtsi2sd xmm3, edx
cvtss2sd xmm2, xmm2
fstp qword [ebp - 0xd8]
cvtsd2ss xmm0, qword [ebp - 0xd8]
movss dword [ebx + 0x74], xmm0
movsd qword [esp + 8], xmm3
movss dword [ebp - 0xc8], xmm0
movsd qword [esp], xmm2
call ecx
mov edx, dword [sym.imp.ucrtbase.dll_fmax]
pxor xmm2, xmm2
movss xmm5, dword [ebp - 0xe0]
pxor xmm3, xmm3
cvtsi2sd xmm3, dword [ebp - 0xc0]
cvtss2sd xmm5, xmm5
fstp qword [ebp - 0xd0]
cvtsd2ss xmm2, qword [ebp - 0xd0]
movss dword [ebx + 0x78], xmm2
movsd qword [esp + 8], xmm3
movss dword [ebp - 0xd8], xmm2
movsd qword [esp], xmm5
mov dword [ebp - 0xd0], edx
call edx
mov eax, dword [ebp - 0xc4]
pxor xmm5, xmm5
mov edx, dword [ebp - 0xd0]
pxor xmm3, xmm3
cvtsi2sd xmm3, eax
fstp qword [ebp - 0xc0]
cvtsd2ss xmm5, qword [ebp - 0xc0]
movss dword [ebx + 0x7c], xmm5
movsd qword [esp + 8], xmm3
movss dword [ebp - 0xc0], xmm5
pxor xmm3, xmm3
cvtss2sd xmm3, dword [ebp - 0xb8]
movsd qword [esp], xmm3
call edx
pxor xmm5, xmm5
movss xmm1, dword [ebp - 0xe4]
movss xmm0, dword [ebp - 0xc8]
movss xmm2, dword [ebp - 0xd8]
fstp qword [ebp - 0xb8]
cvtsd2ss xmm5, qword [ebp - 0xb8]
movss dword [ebp - 0xb8], xmm5
movss dword [ebx + 0x80], xmm5
movss xmm5, dword [ebp - 0xc0]
mulss xmm0, xmm1
movq xmm3, qword [0x69084f60]
movsd xmm4, qword [0x69084f58]
movupd xmm7, xmm3
cvtss2sd xmm0, xmm0
movupd xmm6, xmm0
andpd xmm6, xmm3
ucomisd xmm4, xmm6
jbe 0x690655ba
andnpd xmm7, xmm0
addsd xmm6, xmm4
subsd xmm6, xmm4
orpd xmm6, xmm7
movupd xmm7, xmm6
cmpnlesd xmm7, xmm0
movupd xmm0, xmm7
movsd xmm7, qword [0x69084f70]
andpd xmm0, xmm7
subsd xmm6, xmm0
movupd xmm0, xmm6
cvtsd2ss xmm0, xmm0
mulss xmm2, dword [ebp - 0xb0]
movupd xmm6, xmm3
cvttss2si eax, xmm0
cvtss2sd xmm2, xmm2
movupd xmm0, xmm2
andpd xmm0, xmm3
mov dword [ebp - 0xc0], eax
ucomisd xmm4, xmm0
jbe 0x69065617
andnpd xmm6, xmm2
addsd xmm0, xmm4
subsd xmm0, xmm4
orpd xmm0, xmm6
movupd xmm6, xmm0
cmpnlesd xmm6, xmm2
movupd xmm2, xmm6
movsd xmm6, qword [0x69084f70]
andpd xmm2, xmm6
subsd xmm0, xmm2
movupd xmm2, xmm0
cvtsd2ss xmm2, xmm2
cvttss2si eax, xmm2
mulss xmm1, xmm5
movupd xmm2, xmm3
cvtss2sd xmm1, xmm1
mov dword [ebp - 0xc4], eax
movupd xmm0, xmm1
andpd xmm0, xmm3
ucomisd xmm4, xmm0
jbe 0x69065668
andnpd xmm2, xmm1
addsd xmm0, xmm4
movsd xmm5, qword [0x69084f70]
subsd xmm0, xmm4
orpd xmm0, xmm2
cmpnlesd xmm1, xmm0
andpd xmm1, xmm5
addsd xmm1, xmm0
orpd xmm1, xmm2
movss xmm0, dword [ebp - 0xb0]
cvtsd2ss xmm1, xmm1
cvttss2si eax, xmm1
mulss xmm0, dword [ebp - 0xb8]
mov dword [ebp - 0xd0], eax
cvtss2sd xmm0, xmm0
movupd xmm1, xmm0
andpd xmm1, xmm3
ucomisd xmm4, xmm1
jbe 0x690656c1
andnpd xmm3, xmm0
addsd xmm1, xmm4
movsd xmm2, qword [0x69084f70]
subsd xmm1, xmm4
orpd xmm1, xmm3
cmpnlesd xmm0, xmm1
andpd xmm0, xmm2
addsd xmm0, xmm1
orpd xmm0, xmm3
cvtsd2ss xmm0, xmm0
cvttss2si eax, xmm0
mov ecx, dword [sym.imp.gdi32.dll_GetEnhMetaFileBits]
mov dword [ebp - 0xb8], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [ebp - 0xc8], ecx
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call ecx
mov ecx, dword fs:[0x18]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xb0], eax
sub esp, 0xc
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0xc8]
sub esp, 0xc
test eax, eax
je 0x69065936
mov dword [esp + 8], eax
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xb0]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xb0]
mov dword [edx + 0x18], ecx
mov ecx, dword [ebp - 0xc4]
sub esp, 0xc
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebp - 0xd0]
mov dword [edx + 0x20], ecx
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xb8], edx
mov dword [edx + 0x24], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetEnhMetaFileBits]
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
sub esp, 8
test eax, eax
je 0x69065908
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_DeleteEnhMetaFile]
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xd8]
mov dword [ebx + 0x50], ecx
xor ecx, ecx
sub esp, 4
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0xac]
call eax
sub esp, 0xc
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sym.gdiplus.dll_GdipGetMetafileHeaderFromEmf
sub esp, 8
test eax, eax
je 0x69065810
mov esi, eax
jmp 0x69065290
mov eax, dword [ebx + 0x6c]
movdqu xmm7, xmmword [ebp - 0x90]
cvtdq2ps xmm0, xmm7
test eax, eax
movlps qword [ebx + 0x38], xmm0
movhps qword [ebx + 0x40], xmm0
je 0x690652a9
xor ecx, ecx
xor edi, edi
mov dword [esp + 8], ecx
mov ecx, dword [sym.imp.gdi32.dll_GetEnhMetaFileBits]
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0xb8], ecx
mov dword [esp], eax
call ecx
sub esp, 0xc
mov edx, eax
mov dword [esp + 8], edx
mov dword [ebp - 0xb0], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x69065936
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xb8]
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call ecx
mov eax, dword [ebx + 0x6c]
xor edx, edx
mov ecx, dword [eax]
sub esp, 0xc
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0xb0]
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 8], edx
call dword [ecx + 0x10]
sub esp, 0x10
test eax, eax
js 0x690658f8
mov dword [esp + 8], edi
xor edi, edi
mov dword [esp + 4], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0xac]
call eax
sub esp, 0xc
jmp 0x69065290
mov dword [esp], eax
call sym._hresult_to_status
mov esi, eax
jmp 0x690658ca
mov eax, dword [ebp - 0xd8]
xor ecx, ecx
mov esi, 3
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0xac]
call eax
sub esp, 0xc
jmp 0x69065290
mov esi, 3
jmp 0x69065290