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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47a293
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push esi
push edi
mov eax, dword [0x495040]
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 0x41a3bb
call fcn.00419842
jmp 0x41a3c0
call fcn.004197f5
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 0x41a3fa
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 0x41a40b
mov eax, dword [eax + 4]
jmp 0x41a40e
add eax, 4
push 0x48358c
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.0040d788
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 0x41a454
lea ecx, [ebx + 0x18]
push ecx
push dword [ebx + 0xc]
mov esi, eax
call fcn.0041909f
mov esi, eax
jmp 0x41a456
xor esi, esi
mov dword [esp + 0x48], esi
cmp dword [esi], edi
jne 0x41a49b
push 0x4834e8
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 0x41a495
lea ecx, [ebx + 0x18]
push ecx
push dword [ebx + 0xc]
mov esi, eax
call fcn.0041909f
jmp 0x41a497
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 0x41a4e0
mov dword [esp + 0x44], eax
push edi
push dword [esp + 0x44]
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, edi
je 0x41a4f2
mov dword [esp + 0x44], eax
push 4
push dword [esp + 0x3c]
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, edi
je 0x41a505
mov dword [esp + 0x3c], eax
push 0xffffff
push dword [esp + 0x3c]
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, edi
je 0x41a51b
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.0041900a
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 0x41a5da
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 0x41a863
push dword [esp + 0x24]
lea esi, [esp + 0xa0]
call fcn.0040e579
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 0x41a655
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.00406e6d
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 0x41a68e
fadd dword [0x48aaa0]
fdivp st(1)
push 0
push 1
lea ecx, [esp + 0x108]
fstp dword [esp + 0x24]
call fcn.00403021
mov eax, dword [ebx + 0x7c]
cmp eax, 1
je 0x41a6c3
cmp eax, 3
je 0x41a6c3
fild dword [esp + 0x5c]
fisub dword [esp + 0x4c]
fld dword [esp + 0x1c]
fadd st(0), st(0)
fsubp st(1)
jmp 0x41a6cb
fild dword [esp + 0x54]
fadd dword [esp + 0x1c]
cmp dword [esp + 0x24], 0
fstp dword [esp + 0x20]
jne 0x41a713
cmp eax, 1
je 0x41a707
cmp eax, 2
je 0x41a707
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 0x41a6ff
fadd dword [0x48aaa0]
fsubp st(1)
fsub dword [esp + 0x1c]
jmp 0x41a70f
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 0x41a7dc
dec eax
je 0x41a79f
dec eax
je 0x41a76e
dec eax
jne 0x41a80d
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 0x41a7ce
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 0x41a7ce
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 0x41a80f
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 0x41a7ce
fstp st(0)
cmp dword [esi + 0x18], 8
mov eax, dword [esp + 0x2c]
jb 0x41a81b
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.0041905c
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 0x41a621
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 [0x48aa70]
fmul qword [0x48aa00]
call fcn.00476b16
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 0x41a92c
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.0040ecd9
push dword [esp + 0x9c]
call fcn.0045e8a6
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