Function at 0x462ef0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x535100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push dword [0x544e18]
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 [0x544e88]
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], 0x462d70
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_Curse
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 0x462fd9
push 0x540c54
push str.Call_to_RegisterClassEx_failed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x463101
push dword [ebp - 0x70]
push 0
push 0
push 0x190
push 0x2bc
push 0
push 0
push closesocket
push 0x540c54
push str.Knight_OnLine_Curse
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
mov dword [0x544e1c], ebx
test ebx, ebx
jne 0x463028
push eax
push 0x540c54
push str.Call_to_CreateWindow_failed_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x463101
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 0x190
cdq
push 0x2bc
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 0x4630e5
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
nop dword [eax]
cmp eax, 0xffffffff
je 0x4630e5
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 0x4630c0
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.004b4e90
mov esp, ebp
pop ebp
ret