Function at 0x4827e0
Capabilities:
Create udp socket
Hide graphical window
Initialize winsock library
Resolve dns
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1670
call fcn.00545c90
mov eax, dword [0x57a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1654], eax
jmp 0x482815
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4ba380
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ebx, dword [ebp - 0x1654]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0xbfc1e0
push 0x67
push ebx
mov dword [0xbfbfac], eax
call esi
push 0x64
push 0xbfc178
push 0x6d
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push ebx
mov dword [ebp - 0x138], 0x30
mov dword [ebp - 0x134], 3
mov dword [ebp - 0x130], 0x482d60
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], ebx
call esi
push 0x7f00
push 0
mov dword [ebp - 0x120], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0
mov dword [ebp - 0x11c], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x6c
push dword [ebp - 0x124]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 0x6d
mov dword [ebp - 0x110], 0xbfc178
call esi
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
mov dword [0xbfbe14], ebx
call esi
sub eax, 0x2ee
cdq
sub eax, edx
mov edi, eax
push 0
sar edi, 1
call esi
push 0
mov esi, dword [sym.imp.USER32.dll_CreateWindowExA]
sub eax, 0x4c4
push ebx
push 0
push 0
push 0x2ee
push 0x4c4
cdq
push edi
sub eax, edx
sar eax, 1
push eax
push 0xa0000
push 0xbfc1e0
push 0xbfc178
push 0
call esi
mov dword [0xbfb31c], eax
test eax, eax
je 0x4829d0
push 0
push ebx
push 0x3eb
push eax
push 0
push 0
push 0
push 0
push 0x50000000
push 0
push str.msctls_statusbar32
push 0
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, eax
push 0
push esi
call edi
movaps xmm0, xmmword [0x56a8b0]
lea eax, [ebp - 0x120]
push eax
push 6
push 0x404
push esi
movups xmmword [ebp - 0x120], xmm0
mov dword [ebp - 0x110], 0x230
mov dword [ebp - 0x10c], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 0x14]
push dword [0xbfb31c]
call edi
push dword [0xbfb31c]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
test eax, eax
jne 0x4829e7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 0x10
call fcn.00529e31
sub esp, 8
lea ecx, [ebp - 0x1650]
push eax
call fcn.005269e0
push 0x1388
mov eax, ecx
push eax
push 0xbf5410
call fcn.0052b7a0
add esp, 4
mov dword [0xbf6798], 0
mov ecx, 0xbda750
mov dword [0xbf679c], 0x7fffffff
call fcn.004fb690
push 0xbda79c
push str.GameServer_Siege
push 0x55ba60
lea eax, [ebp - 0x108]
push str.__s___s____s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
push dword [0xbfb31c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0xbfb31c]
mov ecx, 0xbd8ef0
call fcn.004f7b30
lea eax, [ebp - 0x2c8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x482c7e
movzx eax, word [0xbda7e0]
mov ecx, 0xbf3318
push eax
call fcn.00518c80
test al, al
jne 0x482abf
push str.Could_not_start_GameServer
push 1
call fcn.005262e0
add esp, 8
jmp 0x482c94
call fcn.00481bb0
call fcn.00482000
call fcn.004820a0
movzx edi, word [0xbda85c]
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0xbf33ac], eax
cmp eax, 0xffffffff
jne 0x482b52
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__WSASocket___failed_with_error:__d
push 4
push 0x9f30a0
call fcn.004b2600
mov eax, dword [0xbf33c0]
add esp, 0x10
test eax, eax
je 0x482b2e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0xbf33c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xbf33c0], 0
mov eax, dword [0xbf33ac]
cmp eax, 0xffffffff
je 0x482bda
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0xbf33ac], 0xffffffff
jmp 0x482bda
mov eax, 2
push 0xbda84c
mov word [0xbf33b0], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov dword [0xbf33b4], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [0xbf33b4], 0xffffffff
mov word [0xbf33b2], ax
jne 0x482bbc
push 0xbda84c
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x482ba5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__gethostbyname___failed_with_error:__d
jmp 0x482af7
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
push 0xbf33b4
call fcn.0052b7a0
add esp, 0xc
push 0x1000
push 0
push 0xbf43c8
call fcn.0052bd20
add esp, 0xc
mov dword [0xbf53c8], 0
push 0
push 0x3e8
push 0x64
push dword [0xbfb31c]
call esi
push 0
push 0x2710
push 0x66
push dword [0xbfb31c]
call esi
push ecx
push 0x64
push 0
call fcn.004f32c0
push ecx
push 0x64
push 1
call fcn.004f32c0
push ecx
push 0x64
push 2
call fcn.004f32c0
push ecx
push 0x64
push 3
call fcn.004f32c0
push ecx
push 0x64
push 4
call fcn.004f32c0
push ecx
push 0x3e8
push 5
call fcn.004f32c0
push ecx
push 0x3e8
push 6
call fcn.004f32c0
push ecx
push 0x3e8
push 7
call fcn.004f32c0
push ecx
push 0x2710
push 8
call fcn.004f32c0
push ecx
push 0xea60
push 9
call fcn.004f32c0
push ecx
push 0x1770
push 0xa
call fcn.004f32c0
jmp 0x482c94
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.005262e0
add esp, 0xc
push 0
push 0x7d0
push 0x65
push dword [0xbfb31c]
call esi
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
mov dword [ebp - 0x1654], eax
lea eax, [ebp - 0x1670]
push 0
push eax
call esi
test eax, eax
je 0x482d22
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
nop dword [eax]
lea eax, [ebp - 0x1670]
push eax
push dword [ebp - 0x1654]
push dword [ebp - 0x1670]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x482d0f
lea eax, [ebp - 0x1670]
push eax
call edi
lea eax, [ebp - 0x1670]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1670]
push eax
call esi
test eax, eax
jne 0x482ce0
push dword [0xbfbfac]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
jmp 0x482d40
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1668]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00529f01
mov esp, ebp
pop ebp
ret 0x10