Function at 0x401c80
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ec
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push eax
push 0x4dade8
call esi
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4dace8
call esi
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebx, ebx
push ebx
mov dword [0x4dace4], edx
mov dword [0x4dace0], eax
call esi
push 1
mov edi, eax
call esi
mov ecx, dword [0x4daf50]
add edi, 0xffffff9c
add eax, 0xffffffce
push ecx
mov dword [0x4daf68], edi
mov dword [0x4daf6c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [0x4daf54]
mov esi, eax
push edx
push esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, 0x4dade8
mov dword [esp + 0x2c], eax
mov eax, edi
mov ebx, edi
test eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0
je 0x401dc7
push 0xa
push edi
call fcn.00420d90
mov edi, eax
add esp, 8
test edi, edi
je 0x401dc7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, 1
push ebx
sub edx, eax
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add ecx, eax
lea eax, [esp + 0xf8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0xf8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x100]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jg 0x401d9f
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jg 0x401daf
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
inc edi
inc ecx
mov ebx, edi
test edi, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
jne 0x401d24
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x18]
push ecx
push ebx
call edi
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jg 0x401dee
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jg 0x401dfe
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x401e3a
mov ebx, dword [ebp + 8]
lea edx, [esp + 0x18]
push edx
push ebx
call edi
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jg 0x401e2a
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jg 0x401e3a
mov dword [esp + 0x14], eax
mov eax, dword [0x4a3680]
mov ecx, dword [0x4a3688]
mov edx, dword [0x4daf58]
add ecx, eax
mov eax, dword [esp + 0x10]
push edx
add eax, ecx
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x18]
push eax
push ebx
call edi
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [0x4a3698]
mov edx, dword [0x4a3678]
mov ebx, dword [0x4a3690]
mov edi, dword [0x4a3670]
mov eax, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [esp + 0x10]
add edx, ebx
add edx, edi
lea eax, [eax + edx + 0x20]
cmp ecx, eax
jg 0x401ea5
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jg 0x401eb5
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov edi, dword [0x4daf68]
mov eax, dword [esp + 0x10]
mov ebx, edi
fmul qword [0x4a36a0]
sub ebx, eax
mov dword [0x4daf60], ebx
call fcn.00420e9c
mov ecx, eax
mov eax, dword [0x4daf6c]
sub eax, ecx
mov ecx, dword [esp + 0x20]
imul ecx, dword [esp + 0x14]
mov edx, dword [0x4a3674]
sub eax, ecx
mov ecx, dword [0x4a367c]
sub edi, ebx
sub eax, ecx
mov ecx, edi
sub eax, edx
mov edx, dword [0x4daf6c]
sub edx, eax
mov dword [0x4daf64], eax
mov eax, edx
xor edx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], edx
lea edx, [ecx - 4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x68], edx
mov ebx, 5
lea edx, [ecx - 3]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x70], edx
lea ebx, [ecx - 5]
lea edx, [ecx - 1]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x90], ecx
lea ecx, [eax - 5]
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x28]
lea ecx, [eax - 4]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x9c], ecx
lea ecx, [eax - 3]
mov dword [esp + 0x20], ecx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xb0], edx
mov edi, 1
lea ecx, [eax - 1]
mov edx, 5
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 4
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 3
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], 3
mov dword [esp + 0x84], 4
mov dword [esp + 0x8c], 5
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xf4], edx
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe4], ecx
mov ecx, dword [esp + 0x10]
push 2
lea edx, [esp + 0x34]
xor eax, eax
push 0x19
push edx
mov dword [esp + 0xd4], 4
mov dword [esp + 0xdc], 3
mov dword [esp + 0xe4], edi
mov dword [esp + 0xec], edi
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], eax
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
mov ebx, eax
mov eax, dword [0x4daf50]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4daf6c]
mov eax, dword [0x4daf64]
mov edx, dword [0x4daf68]
sub ecx, eax
push edi
push ecx
mov ecx, dword [0x4daf60]
sub edx, ecx
push edx
push eax
mov eax, dword [0x4daf50]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [0x4daf50]
push edi
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov edx, dword [0x4daf50]
push 8
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4daf50]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x4daf50]
push esi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret