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

Disassembly:
sub esp, 0x2e8
push esi
mov esi, dword [esp + 0x2f0]
test esi, esi
je 0x401cd4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x401cd4
push ebx
push ebp
push edi
mov ebx, 0x42532c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call esi
mov eax, dword [esp + 0x300]
push eax
push 0x425530
call esi
mov ecx, dword [esp + 0x304]
mov edx, dword [esp + 0x308]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov dword [0x425258], ecx
mov dword [0x425328], edx
call esi
push 1
mov edi, eax
call esi
add eax, 0xffffffdd
add edi, 0xffffffba
mov dword [0x42574c], eax
mov eax, dword [0x425730]
push eax
mov dword [0x425748], edi
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x425734]
mov edi, eax
xor ebp, ebp
push ecx
push edi
xor esi, esi
mov dword [esp + 0x24], ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, ebx
mov dword [esp + 0x24], eax
test edx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
je 0x401989
push 0xa
push ebx
call dword [sym.imp.MSVCRT.dll_wcschr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401989
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call ebp
mov edx, 1
sub edx, eax
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], edx
call ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
add ecx, eax
lea eax, [esp + 0xf8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x28]
lea edx, [esp + 0xf8]
push ecx
push edx
call ebp
push eax
lea eax, [esp + 0x100]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x28]
cmp esi, eax
jg 0x40195f
mov esi, eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
cmp ebp, eax
jg 0x401971
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov ecx, dword [esp + 0x10]
add ebx, 2
inc ecx
mov dword [esp + 0x14], ebx
test ebx, ebx
mov dword [esp + 0x10], ecx
jne 0x4018eb
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x18]
cmp esi, eax
jg 0x4019b0
mov esi, eax
mov eax, dword [esp + 0x1c]
cmp ebp, eax
jg 0x4019ba
mov ebp, eax
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, ebx
jne 0x4019fb
mov edx, dword [esp + 0x2fc]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [esp + 0x304]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x18]
cmp esi, eax
jg 0x4019f1
mov esi, eax
mov eax, dword [esp + 0x1c]
cmp ebp, eax
jg 0x4019fb
mov ebp, eax
mov ecx, dword [0x419828]
mov edx, dword [0x419830]
mov eax, dword [0x425738]
add edx, ecx
push eax
push edi
add esi, edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x300]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x401a82
mov eax, dword [esp + 0x300]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x304]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edx, dword [0x419840]
mov eax, dword [0x419820]
mov ecx, dword [0x419838]
add eax, edx
mov edx, dword [0x419818]
add eax, ecx
mov ecx, dword [esp + 0x18]
add eax, edx
lea eax, [ecx + eax + 0x20]
cmp esi, eax
jg 0x401a78
mov esi, eax
mov eax, dword [esp + 0x1c]
cmp ebp, eax
jg 0x401a82
mov ebp, eax
mov edx, dword [0x41982c]
mov eax, dword [0x419834]
mov ecx, dword [0x42574c]
add eax, edx
add ebp, eax
mov eax, dword [0x425748]
mov edx, eax
mov dword [esp + 0x30], ebx
sub edx, esi
mov esi, ecx
sub esi, ebp
mov dword [0x425740], edx
mov dword [0x425744], esi
sub eax, edx
sub ecx, esi
mov esi, 5
mov edx, 1
mov ebp, 4
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], edx
lea esi, [eax - 5]
lea ebx, [eax - 4]
lea ebp, [eax - 3]
lea edx, [eax - 1]
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], eax
lea eax, [ecx - 5]
mov dword [esp + 0x78], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x98], edx
lea eax, [ecx - 4]
mov dword [esp + 0xa0], edx
lea edx, [ecx - 3]
mov dword [esp + 0x20], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], ebp
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], ebp
lea eax, [ecx - 1]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xdc], edx
mov edx, dword [esp + 0x10]
mov esi, 5
mov ebp, 1
xor ebx, ebx
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 3
mov dword [esp + 0x7c], 3
mov dword [esp + 0x84], 4
mov dword [esp + 0x8c], 5
mov dword [esp + 0xac], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc8], 4
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], 3
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], ebx
push 2
lea eax, [esp + 0x34]
push 0x19
push eax
mov dword [esp + 0x100], esi
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
mov ecx, dword [0x425730]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push ecx
mov esi, eax
call ebx
mov edx, dword [0x42574c]
mov eax, dword [0x425744]
mov ecx, dword [0x425740]
sub edx, eax
push ebp
push edx
mov edx, dword [0x425748]
sub edx, ecx
push edx
push eax
mov eax, dword [0x425730]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [0x425730]
push ebp
push esi
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov edx, dword [0x425730]
push 8
push edx
call ebx
mov eax, dword [0x425730]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x24]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x425730]
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2e8
ret
mov eax, dword [0x425730]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
add esp, 0x2e8
ret