Function at 0x57d950
Capabilities:
Hide graphical window

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov esi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ebx
call fcn.0057d4d0
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x57dc11
mov ebx, 0x80000000
mov dword [esp + 0x4c], 3
lea esi, [esp + 0x58]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.user32.dll_AdjustWindowRectEx
mov eax, dword [0x742be0]
sub esp, 0x10
test eax, eax
mov dword [esp], 0
je 0x57db80
call sub.kernel32.dll_GetModuleHandleA
push ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x60]
mov eax, dword [0x679e04]
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x64]
sub ecx, ebp
mov dword [esp], eax
mov dword [esp + 0x3c], edx
sub edi, edx
mov dword [esp + 0x44], ecx
call fcn.00583d00
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 8], eax
mov dword [esp + 4], 0x731bc0
mov dword [esp], 0
call sub.user32.dll_CreateWindowExW
sub esp, 0x30
mov ebx, eax
test ebx, ebx
je 0x57dc90
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.user32.dll_GetClientRect
push esi
push esi
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
sub eax, edx
sub edi, ebp
lea ebp, [esp + 0x78]
mov edx, dword [esp + 0xd0]
mov dword [esp + 0x48], eax
mov eax, ebp
call fcn.0057d0e0
mov dword [esp], ebx
call sub.user32.dll_GetDC
mov esi, eax
push edx
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.gdi32.dll_ChoosePixelFormat
test eax, eax
push ecx
push ecx
je 0x57dc80
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.gdi32.dll_SetPixelFormat
sub esp, 0xc
mov dword [esp], esi
call sub.opengl32.dll_wglCreateContext
mov ebp, eax
mov eax, dword [0x7381b0]
push edx
test eax, eax
je 0x57dafd
mov dword [esp + 4], ebp
mov eax, dword [eax + 0x24]
mov dword [esp], eax
call sub.opengl32.dll_wglShareLists
push eax
push eax
mov dword [esp], 0x28
call sub.msvcrt.dll_malloc
mov edx, eax
mov dword [eax], 0
mov eax, dword [esp + 0x4c]
mov dword [edx + 0x1c], esi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0xc8]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0xcc]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0xd0]
mov dword [edx + 0x18], eax
mov eax, dword [0x7381b8]
mov dword [edx + 8], edi
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], ebp
mov dword [edx], eax
mov dword [esp + 4], 5
mov dword [esp], ebx
mov dword [0x7381b8], edx
mov dword [esp + 0x44], edx
call sub.user32.dll_ShowWindow
push esi
push esi
mov edx, dword [esp + 0x44]
add esp, 0xac
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.kernel32.dll_GetModuleHandleA
push edi
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x60]
mov eax, dword [0x679e04]
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x64]
sub ecx, ebp
mov dword [esp], eax
mov dword [esp + 0x3c], edx
sub edi, edx
mov dword [esp + 0x44], ecx
call fcn.00583ce0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 8], eax
mov dword [esp + 4], str.BlitzMax_GLGraphics
mov dword [esp], 0
call sub.user32.dll_CreateWindowExA
sub esp, 0x30
mov ebx, eax
jmp 0x57da64
call sub.user32.dll_GetDesktopWindow
lea edx, [esp + 0x68]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.user32.dll_GetWindowRect
push eax
push eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x4c], 2
mov edx, eax
shr edx, 0x1f
add edx, eax
mov eax, esi
shr eax, 0x1f
sar edx, 1
add eax, esi
sar eax, 1
sub edx, eax
mov eax, dword [esp + 0x74]
mov ecx, eax
add esi, edx
shr ecx, 0x1f
mov dword [esp + 0x58], edx
add eax, ecx
mov ecx, ebx
shr ecx, 0x1f
mov dword [esp + 0x60], esi
sar eax, 1
add ecx, ebx
sar ecx, 1
sub eax, ecx
add ebx, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], ebx
mov ebx, 0xca0000
jmp 0x57d9a1
mov dword [esp], ebx
call sub.user32.dll_DestroyWindow
xor edx, edx
push ecx
jmp 0x57db70
xor edx, edx
jmp 0x57db70