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

Disassembly:
sub esp, 0x140
mov eax, dword [0x507b40]
xor eax, esp
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x144]
push ebx
push esi
mov esi, dword [esp + 0x150]
push edi
mov edi, ecx
push 0
mov dword [edi + 0x58], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 2
mov ebx, eax
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_MonitorFromWindow]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x40]
push ecx
push 0
push eax
call sub.api_ms_win_shcore_scaling_l1_1_1.dll_GetDpiForMonitor
mov eax, dword [esp + 0x24]
movss xmm1, dword [0x4ca598]
push ecx
mov dword [edi + 0x6c], 0x3f800000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4c99e0]
mov eax, dword [edi + 0x50]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4cb304]
subss xmm0, xmm1
subss xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4c99e0]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm0
movss dword [esp + 0x18], xmm1
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.004ace3e
add esp, 4
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
call fcn.00498b50
mov dword [edi + 0x50], eax
cmp eax, 0x28
jbe 0x438bba
mov dword [edi + 0x68], 0x400
mov dword [edi + 0x64], 0x400
jmp 0x438bdd
cmp eax, 0x14
jbe 0x438bcf
mov dword [edi + 0x68], 0x200
mov dword [edi + 0x64], 0x200
jmp 0x438bdd
mov dword [edi + 0x68], 0x100
mov dword [edi + 0x64], 0x100
mov eax, dword [edi + 0x58]
lea edx, [esp + 0x74]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 0xcc]
cmp ecx, edx
jbe 0x438c3c
movd xmm0, edx
mov eax, edx
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [edi + 0x68], edx
mov dword [edi + 0x64], edx
addsd xmm0, qword [eax*8 + 0x4c99e0]
cvtpd2ps xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4c99e0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [edi + 0x6c], xmm1
jmp 0x438c3e
mov edx, ecx
mov ecx, dword [edi + 0x58]
lea esi, [edi + 0x5c]
push esi
push 1
push 0x1a
mov eax, dword [ecx]
push 0
push 1
push dword [edi + 0x68]
mov dword [esp + 0x48], esi
push edx
push ecx
call dword [eax + 0x50]
test eax, eax
js 0x438fa2
mov eax, dword [edi + 0x64]
xorps xmm0, xmm0
push ebp
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x68]
push 0
neg eax
movlpd qword [esp + 0x64], xmm0
push 0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x34]
push eax
push 0
lea eax, [esp + 0x5c]
movlpd qword [esp + 0x78], xmm0
push eax
push ebx
mov dword [esp + 0x88], 0
mov dword [esp + 0x64], 0x28
mov dword [esp + 0x70], 0x200001
mov dword [esp + 0x74], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push 1
mov esi, eax
push ebx
mov dword [esp + 0x40], esi
call dword [sym.imp.GDI32.dll_SetMapMode]
push 0x5a
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x48
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [edi + 0x6c]
cvttss2si eax, xmm0
push eax
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [edi + 0x54]
mov edx, eax
push edi
push 2
push 4
push 0
push 0
push 1
push 0
push 0
mov eax, ecx
neg edx
shr eax, 1
and eax, 1
test cl, 1
push eax
mov ecx, 0x2bc
mov eax, 0x190
cmovne eax, ecx
push eax
push 0
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
mov ebp, eax
mov dword [esp + 0x3c], ebp
test ebp, ebp
jne 0x438d41
mov eax, 0x80004005
jmp 0x438fa1
push esi
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call esi
push ebp
push ebx
call esi
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, 0x78
lea ecx, [edi + 0x74]
xor esi, esi
mov word [esp + 0x14], ax
mov al, 0x20
mov dword [esp + 0x1c], esi
xor ebp, ebp
mov byte [esp + 0x13], al
mov dword [esp + 0x18], ecx
nop dword [eax]
mov byte [esp + 0x14], al
lea eax, [esp + 0x20]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x64]
inc ecx
add ecx, esi
cmp ecx, edx
jbe 0x438dbc
mov eax, dword [esp + 0x24]
inc eax
add ebp, eax
push 0
push 1
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push 0
push 2
cmp ecx, edx
push ebp
cmovbe esi, dword [esp + 0x34]
push esi
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add ecx, esi
addsd xmm0, qword [eax*8 + 0x4c99e0]
mov eax, dword [edi + 0x64]
lea esi, [ecx + 1]
mov dword [esp + 0x1c], esi
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4c99e0]
mov eax, ebp
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, ebp
cvtdq2pd xmm0, xmm0
movss dword [edx - 4], xmm1
addsd xmm0, qword [eax*8 + 0x4c99e0]
mov eax, dword [edi + 0x68]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4c99e0]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movss dword [edx], xmm1
addsd xmm0, qword [eax*8 + 0x4c99e0]
mov eax, dword [edi + 0x64]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4c99e0]
mov eax, dword [esp + 0x24]
add eax, ebp
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movss dword [edx + 4], xmm1
addsd xmm0, qword [eax*8 + 0x4c99e0]
mov eax, dword [edi + 0x68]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4c99e0]
mov al, byte [esp + 0x13]
inc al
mov byte [esp + 0x13], al
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [edx + 8], xmm1
add edx, 0x10
mov dword [esp + 0x18], edx
cmp al, 0x7f
jl 0x438d90
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0x44]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x40]
mov esi, dword [esp + 0x48]
xor ebp, ebp
cmp dword [edi + 0x68], ebp
jbe 0x438f78
mov ebx, 0xfff
mov ecx, dword [edi + 0x64]
xor edx, edx
test ecx, ecx
je 0x438f6e
jmp 0x438f35
mov ebx, 0xfff
mov eax, dword [esp + 0x2c]
imul ecx, ebp
add ecx, edx
mov eax, dword [eax + ecx*4]
shr eax, 4
and al, 0xf
jbe 0x438f57
movzx eax, al
shl ax, 0xc
or ax, bx
movzx eax, ax
jmp 0x438f59
xor eax, eax
mov word [esi], ax
lea ebx, [esi + 2]
mov ecx, dword [edi + 0x64]
inc edx
mov esi, ebx
cmp edx, ecx
jb 0x438f30
mov ebx, 0xfff
inc ebp
cmp ebp, dword [edi + 0x68]
jb 0x438f24
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push 0
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
push dword [esp + 0x38]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x3c]
call esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00498846
add esp, 0x140
ret 8