Function at 0x422b00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4dc100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push dword [0x4dfc78]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, dword [0x4dfce4]
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push eax
mov dword [ebp - 0x84], 0x30
mov dword [ebp - 0x80], 3
mov dword [ebp - 0x7c], 0x422980
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], eax
call esi
push 0x7f00
push 0
mov dword [ebp - 0x6c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push dword [ebp - 0x70]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 6
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], str.KnightGenie_Hagen
call esi
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
test ax, ax
jne 0x422be9
push 0x4ddf78
push str.Call_to_RegisterClassEx_failed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x422d11
push dword [ebp - 0x70]
push 0
push 0
push 0xdb
push 0x1c0
push 0
push 0
push accept
push 0x4ddf78
push str.KnightGenie_Hagen
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
mov dword [0x4dfc7c], ebx
test ebx, ebx
jne 0x422c38
push eax
push 0x4ddf78
push str.Call_to_CreateWindow_failed_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x422d11
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x54]
push ecx
push eax
call esi
lea eax, [ebp - 0x44]
push eax
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
sub eax, dword [ebp - 0x3c]
cdq
sub eax, edx
mov edi, eax
push 1
sar edi, 1
call esi
sub eax, dword [ebp - 0x38]
push 4
push 0xdb
cdq
push 0x1c0
sub eax, edx
sar eax, 1
push eax
push edi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x34]
movq qword [ebp - 0x24], xmm0
push eax
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x422cf5
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
nop dword [eax]
cmp eax, 0xffffffff
je 0x422cf5
lea eax, [ebp - 0x34]
push eax
call esi
lea eax, [ebp - 0x34]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x422cd0
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp - 0x70]
push dword [ebp - 0x5c]
call dword [sym.imp.USER32.dll_UnregisterClassA]
push dword [ebp - 8]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004748e0
mov esp, ebp
pop ebp
ret