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

Disassembly:
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x4635a2
mov ecx, dword [esp + 0x60]
push ecx
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x34]
add dword [esp + 0x34], eax
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
add dword [esp + 0x38], ecx
sub dword [esp + 0x3c], edx
sub dword [esp + 0x40], eax
cmp dword [esi + 0x1c], 3
jne 0x46326d
cmp byte [esp + 0x68], bl
jne 0x46326d
mov eax, dword [esp + 0x64]
and eax, 0xffffff
or eax, 0xb2000000
jmp 0x463283
movzx eax, byte [esi + 0xbc]
mov ecx, dword [esp + 0x64]
shl eax, 0x18
and ecx, 0xffffff
or eax, ecx
push ebp
push edi
lea edx, [esp + 0x70]
push edx
push eax
mov dword [esp + 0x38], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x78], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
cmp dword [esi + 0x98], 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x34], eax
jne 0x463457
mov edi, dword [esp + 0x60]
mov ecx, dword [edi]
push 5
push ecx
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, ebx
je 0x4632ca
mov dword [edi + 4], eax
mov eax, dword [0x4d73b8]
add eax, 0xfffffff0
push eax
call fcn.00424d50
mov edx, dword [esi + 0xa0]
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x9c]
add edi, 0x10
push edi
push 0x20
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
mov ebp, eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463320
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x64]
push ebp
push ecx
lea ecx, [esp + 0x20]
call fcn.00459290
lea edx, [esp + 0x10]
push edx
push ebx
push 0x5000
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc4]
mov ecx, 1
cmp eax, ecx
jne 0x46335a
xor ecx, ecx
jmp 0x463364
cmp eax, 3
jne 0x463364
mov ecx, 2
mov eax, dword [esp + 0x10]
push ecx
push eax
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebx
je 0x463377
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
push 1
push ecx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebx
je 0x46338b
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x6c]
push edx
push ecx
push edi
call sub.gdiplus.dll_GdipGetFontHeight
cmp eax, ebx
je 0x4633a9
mov dword [esp + 0x1c], eax
fld dword [esp + 0x6c]
mov edx, dword [esp + 0x44]
fdiv qword [0x4bfc20]
sub edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov esi, dword [esi + 0xc]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
fstp dword [esp + 0x70]
fild dword [esp + 0x40]
fld dword [esp + 0x70]
fld st(0)
fsubp st(2)
mov dword [esp + 0x70], edx
fxch st(1)
lea edx, [esp + 0x14]
push edx
fstp dword [esp + 0x28]
fild dword [esp + 0x48]
fstp dword [esp + 0x2c]
fild dword [esp + 0x74]
mov dword [esp + 0x74], eax
fxch st(1)
lea eax, [esp + 0x28]
fadd st(0), st(0)
push eax
push ecx
mov ecx, dword [esp + 0x70]
faddp st(1)
fstp dword [esp + 0x38]
fild dword [esp + 0x7c]
fstp dword [esp + 0x3c]
mov edx, dword [esi - 0xc]
push edx
push esi
call fcn.00458eb0
mov eax, dword [esp + 0x10]
push eax
call sub.gdiplus.dll_GdipDeleteStringFormat
push edi
call sub.gdiplus.dll_GdipDeleteFont
cmp ebp, ebx
je 0x463596
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x70]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x4c
ret 0x14
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], ebx
jge 0x463469
push 0x80070057
call fcn.00423860
movzx eax, word [eax]
mov ecx, dword [esp + 0x64]
push eax
push ecx
mov ecx, esi
call fcn.00462820
cmp eax, ebx
je 0x463596
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x1c]
push ecx
push 1
mov ecx, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x78], ebx
call fcn.004591a0
cmp dword [esp + 0x6c], ebx
je 0x46358c
mov edx, dword [esi + 0xcc]
mov edi, dword [esp + 0x60]
push edx
mov ecx, edi
call fcn.00458c50
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
push 2
mov dword [esp + 0x64], eax
fild dword [esp + 0x64]
push ebx
push ecx
lea ecx, [esp + 0x24]
fstp dword [esp]
push ecx
lea ecx, [esp + 0x30]
call fcn.00459330
push edi
lea ecx, [esp + 0x24]
call fcn.00459380
fdiv qword [0x4bfc20]
lea edx, [esp + 0x10]
push edx
push ebx
push 0x5000
mov dword [esp + 0x1c], ebx
fstp dword [esp + 0x6c]
call sub.gdiplus.dll_GdipCreateStringFormat
fild dword [esp + 0x3c]
fld dword [esp + 0x60]
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
fld st(0)
fsubp st(2)
mov esi, dword [esi + 0xc]
mov dword [esp + 0x14], eax
fxch st(1)
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
fstp dword [esp + 0x4c]
lea edx, [esp + 0x30]
fild dword [esp + 0x40]
mov dword [esp + 0x60], eax
push edx
lea eax, [esp + 0x14]
fstp dword [esp + 0x54]
push eax
fild dword [esp + 0x68]
mov dword [esp + 0x68], ecx
fxch st(1)
lea ecx, [esp + 0x54]
fadd st(0), st(0)
push ecx
lea edx, [esp + 0x2c]
push edx
faddp st(1)
mov ecx, edi
fstp dword [esp + 0x64]
fild dword [esp + 0x70]
fstp dword [esp + 0x68]
mov eax, dword [esi - 0xc]
push eax
push esi
call fcn.00458eb0
mov ecx, dword [esp + 0x10]
push ecx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov edx, dword [esp + 0x20]
push edx
call sub.gdiplus.dll_GdipDeleteFont
mov eax, dword [esp + 0x18]
push eax
call sub.gdiplus.dll_GdipDeleteFontFamily
mov ecx, dword [esp + 0x70]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x4c
ret 0x14