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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478ea7
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push esi
push edi
mov eax, dword [0x493040]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x78], 0
mov esi, ebx
jne 0x41980b
call fcn.00418c92
jmp 0x419810
call fcn.00418c45
and dword [esp + 0x54], 0
xor eax, eax
lea edi, [esp + 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
lea eax, [esp + 0x58]
push eax
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp dword [esp + 0x5c], edi
jne 0x41984a
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
call esi
push 1
mov dword [esp + 0x60], eax
call esi
mov dword [esp + 0x60], eax
lea eax, [ebx + 0xcc]
cmp dword [eax + 0x18], 8
jb 0x41985b
mov eax, dword [eax + 4]
jmp 0x41985e
add eax, 4
push 0x480bcc
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.0040cc88
add esp, 0xc
mov dword [esp + 0x128], edi
push dword [ebx + 0xc]
lea esi, [esp + 0x3c]
call fcn.00401000
push 8
call sub.gdiplus.dll_GdipAlloc
cmp eax, edi
je 0x4198a4
lea ecx, [ebx + 0x18]
push ecx
push dword [ebx + 0xc]
mov esi, eax
call fcn.004184ef
mov esi, eax
jmp 0x4198a6
xor esi, esi
mov dword [esp + 0x48], esi
cmp dword [esi], edi
jne 0x4198eb
push 0x480b28
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [esi]
call sub.gdiplus.dll_GdipDeleteFont
push esi
call sub.gdiplus.dll_GdipFree
push 8
call sub.gdiplus.dll_GdipAlloc
cmp eax, edi
je 0x4198e5
lea ecx, [ebx + 0x18]
push ecx
push dword [ebx + 0xc]
mov esi, eax
call fcn.004184ef
jmp 0x4198e7
xor eax, eax
mov dword [esp + 0x48], eax
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
push dword [ebx + 0xc]
mov dword [esp + 0x88], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x40]
push eax
push edi
push edi
mov dword [esp + 0x4c], edi
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x44], eax
push edi
push dword [esp + 0x44]
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, edi
je 0x419930
mov dword [esp + 0x44], eax
push edi
push dword [esp + 0x44]
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, edi
je 0x419942
mov dword [esp + 0x44], eax
push 4
push dword [esp + 0x3c]
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, edi
je 0x419955
mov dword [esp + 0x3c], eax
push 0xffffff
push dword [esp + 0x3c]
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, edi
je 0x41996b
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0xa0]
mov ecx, dword [ebx + 0xa4]
movzx edx, cl
mov dword [esp + 0x18], ebx
mov ebx, ecx
shr ecx, 0x10
mov esi, 0xffffff00
or edx, esi
shl edx, 8
movzx ecx, cl
shr ebx, 8
movzx edi, bl
or edx, edi
shl edx, 8
or edx, ecx
movzx ecx, al
mov dword [esp + 0x10], edx
mov edx, eax
or ecx, esi
shr edx, 8
shl ecx, 8
shr eax, 0x10
movzx edx, dl
movzx eax, al
or ecx, edx
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x90]
xor edi, edi
mov dword [esp + 0x30], ecx
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x34]
lea esi, [esp + 0xfc]
mov dword [esp + 0x9c], 0x80
mov dword [esp + 0xa0], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
call fcn.0041845a
push 0xffffff
mov byte [esp + 0x12c], 3
push dword [esp + 0x3c]
call sub.gdiplus.dll_GdipGraphicsClear
mov ebx, dword [esp + 0x18]
cmp eax, edi
je 0x419a2a
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xac]
fild dword [esp + 0x5c]
sub eax, dword [esp + 0xa8]
push 0x1c
fisub dword [esp + 0x58]
cdq
pop ecx
idiv ecx
fstp dword [esp + 0x34]
fild dword [esp + 0x58]
fstp dword [esp + 0x10]
fild dword [esp + 0x60]
fsub dword [esp + 0x10]
fstp dword [esp + 0x30]
fld dword [esp + 0x10]
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], eax
cmp eax, edi
jmp 0x419cb3
push dword [esp + 0x24]
lea esi, [esp + 0xa0]
call fcn.0040da92
and dword [esp + 0x4c], 0
mov esi, eax
xor eax, eax
lea edi, [esp + 0x50]
stosd dword es:[edi], eax
cmp dword [esi + 0x18], 8
mov ecx, dword [esi + 0x14]
lea eax, [esi + 4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], eax
jb 0x419aa5
mov eax, dword [eax]
lea edx, [esp + 0x4c]
push edx
push ecx
push eax
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
lea eax, [esp + 0x100]
push esi
push eax
call fcn.004068f5
fild dword [esp + 0x54]
mov eax, dword [eax + 0x14]
pop ecx
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
pop ecx
test eax, eax
jge 0x419ade
fadd dword [0x4880a0]
fdivp st(1)
push 0
push 1
lea ecx, [esp + 0x108]
fstp dword [esp + 0x24]
call fcn.00403022
mov eax, dword [ebx + 0x7c]
cmp eax, 1
je 0x419b13
cmp eax, 3
je 0x419b13
fild dword [esp + 0x5c]
fisub dword [esp + 0x4c]
fld dword [esp + 0x1c]
fadd st(0), st(0)
fsubp st(1)
jmp 0x419b1b
fild dword [esp + 0x54]
fadd dword [esp + 0x1c]
cmp dword [esp + 0x24], 0
fstp dword [esp + 0x20]
jne 0x419b63
cmp eax, 1
je 0x419b57
cmp eax, 2
je 0x419b57
mov ecx, dword [esp + 0x50]
fild dword [esp + 0x60]
imul ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
test ecx, ecx
jge 0x419b4f
fadd dword [0x4880a0]
fsubp st(1)
fsub dword [esp + 0x1c]
jmp 0x419b5f
fld dword [esp + 0x1c]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
dec eax
fldz
fst dword [esp + 0x70]
fst dword [esp + 0x6c]
fst dword [esp + 0x68]
fstp dword [esp + 0x64]
fld dword [esp + 0x14]
je 0x419c2c
dec eax
je 0x419bef
dec eax
je 0x419bbe
dec eax
jne 0x419c5d
fld dword [esp + 0x20]
lea esi, [esp + 0xd4]
fstp dword [esp + 0xd4]
fstp dword [esp + 0xd8]
fld dword [esp + 0x34]
fstp dword [esp + 0xdc]
fld dword [esp + 0x30]
fstp dword [esp + 0xe0]
jmp 0x419c1e
fld dword [esp + 0x20]
lea esi, [esp + 0xb4]
fstp dword [esp + 0xb4]
fstp dword [esp + 0xb8]
fld dword [esp + 0x34]
fstp dword [esp + 0xbc]
fld dword [esp + 0x30]
fstp dword [esp + 0xc0]
jmp 0x419c1e
fld dword [esp + 0x20]
lea esi, [esp + 0xe4]
fstp dword [esp + 0xe4]
fstp dword [esp + 0xe8]
fld dword [esp + 0x34]
fstp dword [esp + 0xec]
fld dword [esp + 0x30]
fstp dword [esp + 0xf0]
lea edi, [esp + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
jmp 0x419c5f
fld dword [esp + 0x20]
lea esi, [esp + 0xc4]
fstp dword [esp + 0xc4]
fstp dword [esp + 0xc8]
fld dword [esp + 0x34]
fstp dword [esp + 0xcc]
fld dword [esp + 0x30]
fstp dword [esp + 0xd0]
jmp 0x419c1e
fstp st(0)
cmp dword [esi + 0x18], 8
mov eax, dword [esp + 0x2c]
jb 0x419c6b
mov eax, dword [eax]
mov edi, dword [esp + 0x48]
lea ecx, [esp + 0x64]
push ecx
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x100]
lea ecx, [esp + 0x4c]
lea esi, [esp + 0x44]
call fcn.004184ac
fild dword [esp + 0x50]
mov eax, dword [esp + 0xac]
sub eax, dword [esp + 0xa8]
push 0x1c
fadd dword [esp + 0x18]
cdq
pop ecx
idiv ecx
inc dword [esp + 0x24]
dec dword [esp + 0x10]
cmp dword [esp + 0x24], eax
fstp dword [esp + 0x14]
jne 0x419a71
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [esp + 0x88], eax
call esi
mov dword [esp + 0x88], eax
xor eax, eax
lea edi, [esp + 0x29]
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, byte [ebx + 0x9c]
mov dword [esp + 0x10], eax
mov byte [esp + 0x28], 0
fild dword [esp + 0x10]
mov byte [esp + 0x29], 0
mov byte [esp + 0x2b], 1
fdiv qword [0x488070]
fmul qword [0x488000]
call fcn.00475816
push dword [ebx + 8]
mov byte [esp + 0x2e], al
call dword [sym.imp.USER32.dll_GetDC]
push 2
mov esi, eax
lea eax, [esp + 0x2c]
push eax
xor edi, edi
push edi
lea eax, [esp + 0x80]
push eax
push dword [ebx + 0xc]
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x8c]
push eax
push esi
push dword [ebx + 8]
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push esi
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x48]
cmp esi, edi
je 0x419d7c
push dword [esi]
call sub.gdiplus.dll_GdipDeleteFont
push esi
call sub.gdiplus.dll_GdipFree
push dword [esp + 0x7c]
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x80]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0xf8]
call sub.gdiplus.dll_GdipDeleteBrush
push dword [esp + 0x40]
call sub.gdiplus.dll_GdipDeleteStringFormat
push dword [esp + 0x38]
call sub.gdiplus.dll_GdipDeleteGraphics
lea esi, [esp + 0x9c]
call fcn.0040e195
push dword [esp + 0x9c]
call fcn.0045d598
pop ecx
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret