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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47ca84
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push esi
push edi
mov eax, dword [0x498040]
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 0x41cac2
call fcn.0041bf49
jmp 0x41cac7
call fcn.0041befc
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 0x41cb01
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 0x41cb12
mov eax, dword [eax + 4]
jmp 0x41cb15
add eax, 4
push 0x4855f4
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.0040fa06
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 0x41cb5b
lea ecx, [ebx + 0x18]
push ecx
push dword [ebx + 0xc]
mov esi, eax
call fcn.0041b7a6
mov esi, eax
jmp 0x41cb5d
xor esi, esi
mov dword [esp + 0x48], esi
cmp dword [esi], edi
jne 0x41cba2
push 0x485550
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 0x41cb9c
lea ecx, [ebx + 0x18]
push ecx
push dword [ebx + 0xc]
mov esi, eax
call fcn.0041b7a6
jmp 0x41cb9e
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 0x41cbe7
mov dword [esp + 0x44], eax
push edi
push dword [esp + 0x44]
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, edi
je 0x41cbf9
mov dword [esp + 0x44], eax
push 4
push dword [esp + 0x3c]
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, edi
je 0x41cc0c
mov dword [esp + 0x3c], eax
push 0xffffff
push dword [esp + 0x3c]
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, edi
je 0x41cc22
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.0041b6ed
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 0x41cce1
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 0x41cf6a
push dword [esp + 0x24]
lea esi, [esp + 0xa0]
call fcn.004107a5
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 0x41cd5c
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.004090f2
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 0x41cd95
fadd dword [0x48cad8]
fdivp st(1)
push 0
push 1
lea ecx, [esp + 0x108]
fstp dword [esp + 0x24]
call fcn.004030c2
mov eax, dword [ebx + 0x7c]
cmp eax, 1
je 0x41cdca
cmp eax, 3
je 0x41cdca
fild dword [esp + 0x5c]
fisub dword [esp + 0x4c]
fld dword [esp + 0x1c]
fadd st(0), st(0)
fsubp st(1)
jmp 0x41cdd2
fild dword [esp + 0x54]
fadd dword [esp + 0x1c]
cmp dword [esp + 0x24], 0
fstp dword [esp + 0x20]
jne 0x41ce1a
cmp eax, 1
je 0x41ce0e
cmp eax, 2
je 0x41ce0e
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 0x41ce06
fadd dword [0x48cad8]
fsubp st(1)
fsub dword [esp + 0x1c]
jmp 0x41ce16
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 0x41cee3
dec eax
je 0x41cea6
dec eax
je 0x41ce75
dec eax
jne 0x41cf14
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 0x41ced5
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 0x41ced5
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 0x41cf16
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 0x41ced5
fstp st(0)
cmp dword [esi + 0x18], 8
mov eax, dword [esp + 0x2c]
jb 0x41cf22
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.0041b763
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 0x41cd28
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 [0x48caa8]
fmul qword [0x48ca38]
call fcn.00478f36
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 0x41d033
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.00406efb
push dword [esp + 0x9c]
call fcn.00460cb7
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