Function at 0x42cb10
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x44c076
push eax
mov eax, 0x2838
mov dword fs:[0], esp
call fcn.0043abc0
push ebx
push ebp
push esi
push edi
mov al, byte [esp + 0x286c]
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2854], 1
mov byte [esp + 0x18], al
call fcn.00401ff0
mov ecx, dword [0x44e274]
lea edx, [esp + 0x286c]
push ecx
push 0
push edx
lea ecx, [esp + 0x20]
call fcn.004025b0
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ebx, 2
test edi, edi
mov byte [esp + 0x2850], bl
jne 0x42cb8b
mov edi, 0x44e270
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x48]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x285c]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x42cbbc
mov eax, 0x44e270
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [esp + 0x2868]
xor ecx, ecx
mov dword [esp + 0x24], ecx
push edx
mov dword [esp + 0x2c], ecx
mov esi, eax
mov dword [esp + 0x30], ecx
mov word [esp + 0x28], bx
mov dword [esp + 0x34], ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push ebx
mov word [esp + 0x32], ax
mov dword [esp + 0x34], esi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
lea eax, [esp + 0x44]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x50], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [esp + 0x24]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
call edi
xor ebx, ebx
lea edx, [esp + 0x48]
push ebx
push ebp
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
push 0x64
call edi
push ebx
lea eax, [esp + 0x4c]
push 0x2800
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
push esi
mov ebp, eax
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
cmp ebp, esi
je 0x42cc6b
cmp ebp, ebx
jne 0x42ccb0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2854], 1
call fcn.00401ff0
push 1
lea ecx, [esp + 0x285c]
mov byte [esp + 0x2854], 0
call fcn.00401ff0
push 1
lea ecx, [esp + 0x2870]
mov dword [esp + 0x2854], esi
call fcn.00401ff0
xor al, al
jmp 0x42cdd1
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
call fcn.00401ff0
push 1
push ebp
lea ecx, [esp + 0x3c]
call fcn.00402180
test al, al
je 0x42ccf6
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], ebp
mov byte [eax + ebp], 0
mov ecx, dword [0x44e274]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x2880]
push ebx
push edx
mov byte [esp + 0x285c], 3
call fcn.004025b0
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x42cd3c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x42cd33
cmp al, 0xff
je 0x42cd33
dec al
mov byte [ecx], al
jmp 0x42cd3c
push ecx
call fcn.00439308
add esp, 4
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x42cd60
mov al, byte [ecx - 1]
test al, al
je 0x42cd56
cmp al, 0xff
je 0x42cd56
dec al
mov byte [ecx - 1], al
jmp 0x42cd60
dec ecx
push ecx
call fcn.00439308
add esp, 4
mov ecx, dword [esp + 0x285c]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x42cd93
mov al, byte [ecx - 1]
test al, al
je 0x42cd89
cmp al, 0xff
je 0x42cd89
dec al
mov byte [ecx - 1], al
jmp 0x42cd93
dec ecx
push ecx
call fcn.00439308
add esp, 4
mov ecx, dword [esp + 0x2870]
mov dword [esp + 0x285c], ebx
cmp ecx, ebx
mov dword [esp + 0x2860], ebx
mov dword [esp + 0x2864], ebx
je 0x42cdcf
mov al, byte [ecx - 1]
test al, al
je 0x42cdc5
cmp al, 0xff
je 0x42cdc5
dec al
mov byte [ecx - 1], al
jmp 0x42cdcf
dec ecx
push ecx
call fcn.00439308
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2848]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2844
ret