Function at 0x4014b3
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8dc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
lea eax, [ebp - 0x852]
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x7ff
lea eax, [ebp - 0x834]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._recv_16
sub esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40154f
call sym._WSAGetLastError_0
mov ebx, eax
call sym._showServerTime
mov dword [esp + 0x10], ebx
lea edx, [ebp - 0x852]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_t__s__recv___failed:_error__d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
jmp 0x401928
cmp dword [ebp - 0x1c], 0
jne 0x401579
call sym._showServerTime
lea edx, [ebp - 0x852]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str._s_t__s__Client_closed_connection._n
call sym._printf
jmp 0x401928
mov al, byte [ebp - 0x833]
movsx esi, al
mov al, byte [ebp - 0x834]
movsx ebx, al
call sym._showServerTime
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
lea edx, [ebp - 0x852]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str._s_t__s__Command__02X__02X_n
call sym._printf
mov al, byte [ebp - 0x834]
cmp al, 1
jne 0x4015ea
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3a
mov dword [esp + 4], 0x403000
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x4018e4
mov al, byte [ebp - 0x834]
cmp al, 3
jne 0x401622
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x13
mov dword [esp + 4], 0x40303a
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x4018e4
mov al, byte [ebp - 0x834]
cmp al, 5
jne 0x4017b6
mov dword [esp + 0xc], 0x406088
mov dword [esp + 8], 0x406088
mov dword [esp + 4], str._http:___s_IRQ_Mission_IRQ_Update_UpdateService.ashx_IRQ_Update_MissionSync.ashx_name0_Users_true_false_true_true__http:___s
lea eax, [ebp - 0x834]
add eax, 8
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x834]
add eax, 8
mov dword [ebp - 0x8bc], 0xffffffff
mov edx, eax
mov al, 0
mov ecx, dword [ebp - 0x8bc]
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
dec eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x834], 6
mov byte [ebp - 0x833], 0x64
mov eax, dword [ebp - 0x30]
add eax, 4
mov dword [esp + 4], eax
lea eax, [ebp - 0x834]
add eax, 2
mov dword [esp], eax
call sym._setLL
mov byte [ebp - 0x830], 0
mov eax, dword [ebp - 0x30]
inc eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x834]
add eax, 5
mov dword [esp], eax
call sym._setLL
mov byte [ebp - 0x82d], 0xa
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x24], 9
jmp 0x401756
lea eax, [ebp - 0x834]
add eax, dword [ebp - 0x24]
mov al, byte [eax]
cmp al, 0x5e
jne 0x401753
mov eax, dword [ebp - 0x24]
inc eax
mov al, byte [ebp + eax - 0x834]
cmp al, 0x5e
jne 0x401727
mov eax, dword [ebp - 0x24]
mov dl, al
mov eax, dword [ebp - 0x20]
mov cl, dl
sub cl, al
mov al, cl
dec eax
mov dl, al
lea eax, [ebp - 0x834]
add eax, dword [ebp - 0x20]
mov byte [eax], dl
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
inc dword [ebp - 0x24]
jmp 0x401753
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov edi, edx
sub edi, eax
mov eax, edi
lea edx, [eax - 2]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x834]
add eax, ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._setLL
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x30]
jl 0x4016e2
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov ecx, edx
sub ecx, eax
mov eax, ecx
lea edx, [eax - 2]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x834]
add eax, ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._setLL
mov eax, dword [ebp - 0x30]
add eax, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x834]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x4018e4
mov al, byte [ebp - 0x834]
cmp al, 7
jne 0x401868
mov dword [esp + 8], 6
mov dword [esp + 4], 0x40304d
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._sendpeerData
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x403060
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._sendpeerData
mov dword [esp + 8], 0x186
mov dword [esp + 4], 0x403460
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._sendpeerData
mov dword [esp + 8], 0x27a
mov dword [esp + 4], 0x403600
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._sendpeerData
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x403880
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._sendpeerData
mov dword [esp + 8], 0x113
mov dword [esp + 4], 0x403c80
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._sendpeerData
jmp 0x4018e4
mov al, byte [ebp - 0x834]
cmp al, 0x65
jne 0x4018e4
lea eax, [ebp - 0x834]
add eax, 0xc
mov dword [ebp - 0x34], eax
mov dword [esp], 0
call sym._time
mov edx, dword [0x4060a8]
mov edi, eax
sub edi, edx
mov edx, edi
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 3
mov edx, eax
mov eax, dword [ebp - 0x34]
mov dword [eax], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x14
lea eax, [ebp - 0x834]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x401922
call sym._WSAGetLastError_0
mov ebx, eax
call sym._showServerTime
mov dword [esp + 0x10], ebx
lea edx, [ebp - 0x852]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_t__s__send___failed:_error__d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
jmp 0x401923
nop
jmp 0x4014e3
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret