Function at 0x4101c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 0x410410
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
push 0x7f00
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x20], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x1c], eax
push 1
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_RegisterClassW]
movzx eax, ax
test eax, eax
jne 0x410255
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x582
je 0x410255
xor eax, eax
jmp 0x410395
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x23c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x240]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
mov ecx, dword [edx + 0x244]
sub ecx, dword [eax + 0x23c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
mov ecx, dword [edx + 0x248]
sub ecx, dword [eax + 0x240]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0xc], 0
jne 0x4102ab
mov dword [ebp - 4], 0x80000000
mov dword [ebp - 0xc], 0x80000000
cmp dword [ebp - 8], 0
jne 0x4102bf
mov dword [ebp - 0x38], 0x80000000
mov dword [ebp - 8], 0x80000000
mov edx, dword [ebp + 0x14]
or edx, 0x100
mov dword [ebp + 0x14], edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 4]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x40]
add eax, 0x12
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x40]
cmp dword [edx + 8], 0
jne 0x41032c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PKGMAIN::CreateWin32___CreateWindowEx_failed___ld__n
call fcn.00413880
add esp, 8
xor eax, eax
jmp 0x410395
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x40]
push edx
push 0xffffffffffffffeb
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 0x40]
add eax, 0x23c
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x40]
add eax, 0x24c
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x14