Function at 0x4022e0
Capabilities:
Hide graphical window
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2cc
mov eax, dword [0x42c010]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x14]
push 0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 1
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x405fb0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x45f2d8
push 0x67
push edi
mov dword [0x45f2d4], eax
call esi
push 0x64
push 0x45f270
push 0x6d
push edi
call esi
mov ecx, edi
call fcn.00402570
push 0
push edi
push 0
push 0
push 0x258
push 0x258
push 0
push connect
push 0xcf0000
push 0x45f2d8
push 0x45f270
push 0
mov dword [0x45f26c], edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x45f268], eax
test eax, eax
je 0x402557
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x45f268]
call dword [sym.imp.USER32.dll_UpdateWindow]
sub esp, 8
mov ecx, 0x45de90
call fcn.0040a630
push 0
push str.PREMIUM
lea eax, [esp + 0x1d8]
push str.__s__NXTServer__UserCount_:__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x1d0]
push eax
push dword [0x45f268]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x45f268]
push 0x428fa8
push ecx
mov dword [0x4c5c74], eax
call fcn.004057d0
push str.LOGHACK_LOG
push ecx
call fcn.004057d0
lea eax, [esp + 0x40]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x40248c
movzx eax, word [0x45ded8]
push eax
call fcn.0040ab20
test al, al
je 0x4024a2
mov ecx, 0x45de90
call fcn.0040a560
push 0
push 0x3e8
push 0x64
push dword [0x45f268]
call esi
push 0
push 0x1388
push 0x66
push dword [0x45f268]
call esi
push 0
push 1
push 0x67
push dword [0x45f264]
call esi
jmp 0x4024a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
call fcn.0040a230
push 0
push 0x7d0
push 0x65
push dword [0x45f268]
call esi
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push 0
push eax
call esi
test eax, eax
je 0x402526
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4024f0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x10]
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x402515
lea eax, [esp + 0x24]
push eax
call edi
lea eax, [esp + 0x24]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call esi
test eax, eax
jne 0x4024f0
push dword [0x45f2d4]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push dword [esp + 0x10]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x2d4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret 0x10