Function at 0x401420
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41d6db
push eax
mov dword fs:[0], esp
sub esp, 0x3d8
lea eax, [esp + 0x248]
push ebx
push ebp
push esi
push edi
push eax
mov ebp, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor ebx, ebx
cmp eax, ebx
push ebx
je 0x401468
push ebx
push 0x428430
call fcn.00419597
jmp 0x4017bb
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp + 0x9c], eax
jne 0x40148e
push ebx
push ebx
push 0x428420
call fcn.00419597
jmp 0x4017bb
lea ecx, [ebp + 0xa0]
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4014b4
push ebx
push ebx
push 0x428410
call fcn.00419597
jmp 0x4017bb
push str.Get_Time
lea ecx, [esp + 0x14]
call fcn.00416cc7
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x9c]
mov ecx, 0x3f
lea edi, [esp + 0x15c]
mov esi, dword [edx - 8]
mov dword [esp + 0x158], eax
xor eax, eax
mov dword [esp + 0x154], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x154]
push ecx
push ebx
push edx
push ebx
mov dword [esp + 0x400], ebx
mov dword [esp + 0x60], ebx
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x60], 5
call ebx
test eax, eax
push 0
jne 0x40153e
push 0
push 0x4283f8
call fcn.00419597
mov dword [esp + 0x3f0], 0xffffffff
jmp 0x4017b2
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x9c]
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x401574
push 0
push 0
push 0x4283e8
call fcn.00419597
mov dword [esp + 0x3f0], 0xffffffff
jmp 0x4017b2
cmp eax, esi
jne 0x40177f
mov esi, dword [sym.imp.WS2_32.dll_recv]
lea edx, [esp + 0x4c]
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x54]
push edx
push eax
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x160]
push eax
push 0
call ebx
test eax, eax
push 0
je 0x4015c6
mov edx, dword [ebp + 0x9c]
lea ecx, [esp + 0x58]
push 0xff
push ecx
push edx
call esi
cmp eax, 0xffffffff
je 0x4015e2
test eax, eax
jg 0x401600
jmp 0x401582
push 0
push 0x4283dc
call fcn.00419597
mov dword [esp + 0x3f0], 0xffffffff
jmp 0x4017b2
push 0
push 0
push 0x4283cc
call fcn.00419597
mov dword [esp + 0x3f0], 0xffffffff
jmp 0x4017b2
xor eax, eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x40], eax
push 8
lea edx, [esp + 0x44]
mov dword [esp + 0x48], eax
push ecx
push edx
mov byte [esp + 0x54], al
call fcn.004097d0
add esp, 0xc
mov esi, str.Set_Time
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401653
test cl, cl
je 0x40164f
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401653
add eax, 2
add esi, 2
test cl, cl
jne 0x40162b
xor eax, eax
jmp 0x401658
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40177f
xor ecx, ecx
mov dword [esp + 0x28], eax
mov word [esp + 0x20], cx
mov byte [esp + 0x2c], al
mov byte [esp + 0x22], cl
xor edx, edx
mov word [esp + 0x14], ax
mov word [esp + 0x18], cx
mov word [esp + 0x24], dx
mov byte [esp + 0x16], al
mov byte [esp + 0x1a], cl
lea eax, [esp + 0x5c]
mov byte [esp + 0x26], dl
push 4
lea ecx, [esp + 0x2c]
mov word [esp + 0x20], dx
push eax
push ecx
mov byte [esp + 0x2a], dl
call fcn.004097d0
lea edx, [esp + 0x6c]
push 2
lea eax, [esp + 0x30]
push edx
push eax
call fcn.004097d0
lea ecx, [esp + 0x7a]
push 2
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.004097d0
lea eax, [esp + 0x88]
push 2
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.004097d0
lea edx, [esp + 0x96]
push 2
lea eax, [esp + 0x4c]
push edx
push eax
call fcn.004097d0
lea ecx, [esp + 0xa4]
push 2
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.004097d0
add esp, 0x48
lea eax, [esp + 0x28]
push eax
call fcn.004097bf
lea ecx, [esp + 0x24]
mov word [esp + 0x34], ax
push ecx
call fcn.004097bf
lea edx, [esp + 0x2c]
mov word [esp + 0x3a], ax
push edx
call fcn.004097bf
mov word [esp + 0x42], ax
lea eax, [esp + 0x20]
push eax
call fcn.004097bf
lea ecx, [esp + 0x28]
mov word [esp + 0x48], ax
push ecx
call fcn.004097bf
lea edx, [esp + 0x30]
mov word [esp + 0x4e], ax
push edx
call fcn.004097bf
add esp, 0x18
mov word [esp + 0x3c], ax
xor eax, eax
mov word [esp + 0x3e], ax
mov word [esp + 0x34], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
mov ecx, dword [ebp + 0x9c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
cmp eax, esi
jne 0x4017ab
push 0
push 0
push 0x4283b0
call fcn.00419597
mov dword [ebp + 0x9c], 0
mov dword [esp + 0x3f0], esi
lea ecx, [esp + 0x10]
call fcn.00416c9d
mov ecx, dword [esp + 0x3e8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3e4
ret