Function at 0x580c10
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x611e1e
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
xor ebp, ebp
test byte [0x759c58], 1
push edi
jne 0x580c7f
or dword [0x759c58], 1
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x60], ebp
call fcn.005b37a0
mov ecx, 0x10
add esp, 4
cmp dword [eax + 0x18], ecx
jb 0x580c64
mov edx, dword [eax + 4]
mov dword [0x759c54], edx
jmp 0x580c6c
add eax, 4
mov dword [0x759c54], eax
cmp dword [esp + 0x28], ecx
jb 0x580c7f
mov eax, dword [esp + 0x14]
push eax
call fcn.00583350
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebp
mov dword [esp + 0x30], 0x4008
mov dword [esp + 0x34], 0x5808a0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call ebx
mov dword [esp + 0x3c], eax
mov eax, dword [0x759c34]
cmp eax, ebp
jne 0x580cb9
push 0x7f00
push ebp
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebp
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [0x759c54]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebp
push ebp
push ebp
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateICA]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 8
push esi
call edi
push 0xa
push esi
mov dword [0x759c24], eax
call edi
push esi
mov dword [0x759c28], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
push ebp
call ebx
mov ecx, dword [0x703f2c]
mov esi, dword [0x703f30]
push eax
mov eax, dword [0x759c28]
sub eax, ecx
push ebp
cdq
push ebp
push ecx
mov ecx, dword [0x759c54]
sub eax, edx
sar eax, 1
push esi
push eax
mov eax, dword [0x759c24]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [0x759c4c]
push 0x10cf0000
push eax
push ecx
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x759c30], eax
cmp eax, ebp
jne 0x580da1
push ebp
push str.Error
push str.Window_Creation_Failed
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov edx, dword [esp + 0x40]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edx
push 1
push 0x80
push eax
call esi
mov eax, dword [esp + 0x40]
mov ecx, dword [0x759c30]
push eax
push ebp
push 0x80
push ecx
call esi
mov eax, dword [0x759c30]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push eax
mov esi, eax
call edi
and eax, 0xfffbffff
push eax
push 0xfffffffffffffff0
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
call esi
mov eax, dword [0x759c30]
push 0xfffffffffffffff0
push eax
mov ebx, eax
call edi
and eax, 0xfffeffff
push eax
push 0xfffffffffffffff0
push ebx
call esi
mov edx, dword [0x759c30]
push ebp
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x759c30]
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [0x759c30]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x759c30]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret