Function at 0x453000
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5864d8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
mov esi, ecx
mov edi, edx
cmp dword [esp + 0x5c], 0
je 0x453438
test esi, esi
je 0x453438
cmp byte [esi + 0x5c5], 0
jne 0x4530ce
cmp byte [esi + 0x188], 0
jne 0x4530ce
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, ebx
shr eax, 8
movzx edx, bl
movzx ecx, al
shl edx, 8
or ecx, edx
shr ebx, 0x10
movzx eax, bl
shl ecx, 8
or ecx, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, ebp
mov eax, esi
call fcn.0044c960
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov ebx, eax
mov eax, dword [esp + 0x68]
or eax, 0x800
push eax
push ecx
push 0xffffffffffffffff
push edx
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push ebx
push edi
call esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov eax, ebp
mov dword [esp + 0x50], 0
call fcn.0044cb40
push 8
mov edi, eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x453122
mov eax, dword [edi + 4]
push esi
push 0
push eax
mov dword [esi], 0
call sub.gdiplus.dll_GdipCreateFontFamilyFromName
mov dword [esi + 4], eax
jmp 0x453124
xor esi, esi
cmp dword [esi], 0
mov ecx, esi
mov dword [esp + 0x14], ecx
jne 0x453191
xor ebp, ebp
jmp 0x453137
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x45314d
mov edx, dword [ecx]
push edx
call sub.gdiplus.dll_GdipDeleteFontFamily
mov eax, dword [esp + 0x14]
push eax
call sub.gdiplus.dll_GdipFree
push 8
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x453174
mov eax, dword [ebp + 0x5ece00]
push esi
push 0
push eax
mov dword [esi], 0
call sub.gdiplus.dll_GdipCreateFontFamilyFromName
mov dword [esi + 4], eax
jmp 0x453176
xor esi, esi
cmp dword [esi], 0
mov dword [esp + 0x14], esi
jne 0x45318d
add ebp, 0x84
cmp ebp, 0x18c
jb 0x453133
mov ecx, dword [esp + 0x14]
movzx eax, byte [edi + 0x8c]
fild dword [edi + 0x88]
lea edx, [esp + 0x1c]
push edx
push 2
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
push eax
mov eax, dword [ecx]
push ecx
mov dword [esp + 0x2c], 0
fstp dword [esp]
push eax
call sub.gdiplus.dll_GdipCreateFont
mov ebp, dword [esp + 0x58]
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
sub edx, eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
fstp dword [esp + 0x38]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x20]
fstp dword [esp + 0x3c]
push ecx
fild dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov edx, ebx
shr edx, 0x10
movzx eax, dl
fstp dword [esp + 0x44]
fild dword [esp + 0x24]
or eax, 0xfffffe00
mov ecx, ebx
shr ecx, 8
movzx edx, cl
fstp dword [esp + 0x48]
shl eax, 8
or eax, edx
movzx ecx, bl
shl eax, 8
or eax, ecx
xor esi, esi
push eax
mov dword [esp + 0x28], esi
call sub.gdiplus.dll_GdipCreateSolidFill
push 0x5f06a4
call sub.gdiplus.dll_GdipStringFormatGetGenericTypographic
lea edx, [esp + 0x30]
mov dword [0x5f06a8], eax
mov eax, dword [0x5f06a4]
push edx
push eax
mov dword [esp + 0x38], esi
call sub.gdiplus.dll_GdipCloneStringFormat
cmp byte [0x5f0b68], 0
mov dword [esp + 0x34], eax
jne 0x453298
push 0x11c
push esi
push 0x5f0bd8
call fcn.0052e300
add esp, 0xc
push 0x5f0bd8
mov dword [0x5f0bd8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov byte [0x5f0b68], 1
cmp dword [0x5f0bdc], 5
ja 0x4532b8
cmp dword [0x5f0be0], 2
ja 0x4532b8
fld dword [esp + 0x3c]
fadd qword [0x5d9748]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x18]
push ecx
push edi
call sub.gdiplus.dll_GdipSetTextRenderingHint
mov ebx, dword [esp + 0x68]
test ebx, 0x8000
je 0x4532e7
mov edx, dword [esp + 0x30]
push 3
push edx
call sub.gdiplus.dll_GdipSetStringFormatTrimming
cmp eax, esi
je 0x4532e7
mov dword [esp + 0x34], eax
xor eax, eax
test ebx, 0x100
je 0x4532f6
mov eax, 0x4000
test bl, 0x20
je 0x453300
or eax, 0x1000
push eax
mov eax, dword [esp + 0x34]
push eax
call sub.gdiplus.dll_GdipSetStringFormatFlags
cmp eax, esi
je 0x453313
mov dword [esp + 0x34], eax
test bl, 1
je 0x453321
mov ecx, dword [esp + 0x30]
push 1
push ecx
jmp 0x453335
test bl, 2
je 0x45332f
mov edx, dword [esp + 0x30]
push 2
push edx
jmp 0x453335
mov eax, dword [esp + 0x30]
push esi
push eax
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, esi
je 0x453342
mov dword [esp + 0x34], eax
push 0x5f06a4
call sub.gdiplus.dll_GdipStringFormatGetGenericTypographic
mov dword [0x5f06a8], eax
test bl, 4
je 0x45335f
mov ecx, dword [esp + 0x30]
push 1
push ecx
jmp 0x453373
test bl, 8
je 0x45336d
mov edx, dword [esp + 0x30]
push 2
push edx
jmp 0x453373
mov eax, dword [esp + 0x30]
push esi
push eax
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, esi
je 0x453380
mov dword [esp + 0x34], eax
test ebx, 0x400
mov ebx, dword [esp + 0x20]
je 0x4533e9
mov edx, dword [esp + 0x30]
fldz
push esi
fst dword [esp + 0x30]
push esi
fst dword [esp + 0x30]
mov esi, dword [esp + 0x24]
fst dword [esp + 0x2c]
lea ecx, [esp + 0x28]
fstp dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x68]
push edx
lea eax, [esp + 0x48]
push eax
push esi
push 0xffffffffffffffff
push ecx
push edi
call sub.gdiplus.dll_GdipMeasureString
fld dword [esp + 0x2c]
call fcn.00584320
fld dword [esp + 0x28]
mov edx, dword [ebp + 4]
lea eax, [eax + edx + 1]
mov dword [ebp + 0xc], eax
call fcn.00584320
mov ecx, dword [ebp]
lea edx, [eax + ecx + 1]
mov dword [ebp + 8], edx
jmp 0x453406
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x5c]
push ebx
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
push 0xffffffffffffffff
push edx
push edi
call sub.gdiplus.dll_GdipDrawString
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
push eax
call sub.gdiplus.dll_GdipDeleteFontFamily
push edi
call sub.gdiplus.dll_GdipFree
mov ecx, dword [esp + 0x30]
push ecx
call sub.gdiplus.dll_GdipDeleteStringFormat
push ebx
call sub.gdiplus.dll_GdipDeleteBrush
push esi
call sub.gdiplus.dll_GdipDeleteFont
mov edx, dword [esp + 0x18]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret