Function at 0x4218b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4da0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push dword [0x4ddb88]
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 [0x4ddbf0]
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], 0x421730
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.Knight_OnLine_HSACSX
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 0x421999
push 0x4dbf20
push str.Call_to_RegisterClassEx_failed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x421ac1
push dword [ebp - 0x70]
push 0
push 0
push 0xdb
push 0x1c0
push 0
push 0
push connect
push 0x4dbf20
push str.Knight_OnLine_HSACSX
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
mov dword [0x4ddb8c], ebx
test ebx, ebx
jne 0x4219e8
push eax
push 0x4dbf20
push str.Call_to_CreateWindow_failed_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x421ac1
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 0x421aa5
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
nop dword [eax]
cmp eax, 0xffffffff
je 0x421aa5
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 0x421a80
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.00473461
mov esp, ebp
pop ebp
ret