Function at 0x56e030
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d786e
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
xor ebp, ebp
test byte [0x6fde68], 1
push edi
jne 0x56e09f
or dword [0x6fde68], 1
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x60], ebp
call fcn.005a0970
mov ecx, 0x10
add esp, 4
cmp dword [eax + 0x18], ecx
jb 0x56e084
mov edx, dword [eax + 4]
mov dword [0x6fde64], edx
jmp 0x56e08c
add eax, 4
mov dword [0x6fde64], eax
cmp dword [esp + 0x28], ecx
jb 0x56e09f
mov eax, dword [esp + 0x14]
push eax
call fcn.00570810
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebp
mov dword [esp + 0x30], 0x4008
mov dword [esp + 0x34], 0x56dcc0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call ebx
mov dword [esp + 0x3c], eax
mov eax, dword [0x6fde44]
cmp eax, ebp
jne 0x56e0d9
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 [0x6fde64]
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 [0x6fde34], eax
call edi
push esi
mov dword [0x6fde38], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
push ebp
call ebx
mov ecx, dword [0x6a7ac4]
mov esi, dword [0x6a7ac8]
push eax
mov eax, dword [0x6fde38]
sub eax, ecx
push ebp
cdq
push ebp
push ecx
mov ecx, dword [0x6fde64]
sub eax, edx
sar eax, 1
push esi
push eax
mov eax, dword [0x6fde34]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [0x6fde5c]
push 0x10cf0000
push eax
push ecx
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x6fde40], eax
cmp eax, ebp
jne 0x56e1c1
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 [0x6fde40]
push eax
push ebp
push 0x80
push ecx
call esi
mov eax, dword [0x6fde40]
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 [0x6fde40]
push 0xfffffffffffffff0
push eax
mov ebx, eax
call edi
and eax, 0xfffeffff
push eax
push 0xfffffffffffffff0
push ebx
call esi
mov edx, dword [0x6fde40]
push ebp
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x6fde40]
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [0x6fde40]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x6fde40]
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