Function at 0x4df2e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov eax, 0x105c
call fcn.0057a710
mov eax, dword [0x64aa84]
push ebx
push ebp
push esi
push edi
push 6
push 1
push 2
mov dword [esp + 0x1074], eax
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
xor ecx, ecx
mov dword [esp + 0x58], ecx
push 0x10
mov dword [esp + 0x60], ecx
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x68], ecx
xor edi, edi
push eax
mov dword [esi + 0x14], eax
mov dword [esp + 0x70], ecx
mov word [esp + 0x64], 2
mov dword [esp + 0x68], edi
mov word [esp + 0x66], di
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x28]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esi + 0x14]
push 0x10
lea edx, [esi + 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x14]
push 0x33
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov al, byte [esi + 0x474]
xor ebp, ebp
xor ebx, ebx
test al, al
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], edi
je 0x4df451
mov al, byte [esi + 0x475]
test al, al
jne 0x4df3fc
xor eax, eax
lea ecx, [esi + 0x450]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4df3d1
sub eax, edx
inc eax
push eax
call fcn.005abeeb
mov ecx, dword [esi + 0x48]
add esp, 4
mov dword [esi + 0x458], eax
mov edx, eax
nop
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4df3f0
jmp 0x4df419
mov eax, dword [esi + 0x45c]
test eax, eax
je 0x4df419
push eax
call fcn.005abee6
add esp, 4
mov dword [esi + 0x45c], 0
push 0
call fcn.00547630
lea edx, [esi + 0x450]
mov edi, eax
push edx
push edi
mov dword [esp + 0x20], edi
call fcn.00540ce0
push 0x4de8b0
push 0x4de830
push edi
call fcn.00540d00
push 0x4de8f0
push edi
call fcn.00540d20
add esp, 0x20
mov dword [esp + 0x24], 1
lea esp, [esp]
mov eax, dword [esi + 0xc]
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [esp + 0x2c], 0x10
je 0x4df492
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4df6c4
mov eax, dword [esi + 0x44c]
cmp ebp, eax
jge 0x4df4cf
mov edx, dword [esi + 0x14]
push 0
sub eax, ebp
push eax
lea ecx, [esi + ebp + 0x4c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4df4c7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4df6c4
jmp 0x4df4cf
jle 0x4df4cf
add ebp, eax
mov dword [esp + 0x1c], ebp
test byte [esp + 0x2c], 1
je 0x4df647
mov dl, byte [esp + 0x13]
xor eax, eax
test dl, dl
setne al
push 0
mov ecx, 0xfff
dec eax
and eax, ebx
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x70]
mov eax, dword [esi + 0x14]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4df664
mov cl, byte [esp + 0x13]
test cl, cl
mov byte [esp + eax + 0x68], 0
je 0x4df560
mov edx, dword [esp + 0x18]
mov cl, byte [esi + 0x474]
add edx, eax
test cl, cl
mov dword [esp + 0x18], edx
je 0x4df647
test edi, edi
je 0x4df647
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp dword [esp + 0x18], edx
sete cl
push ecx
push eax
lea eax, [esp + 0x70]
push eax
push edi
call fcn.00542c00
add esp, 0x10
test eax, eax
je 0x4df6c4
jmp 0x4df647
lea ecx, [esp + 0x68]
add ebx, eax
push str._r_n_r_n
push ecx
mov byte [esp + ebx + 0x70], 0
call fcn.0051ee60
add esp, 8
test eax, eax
je 0x4df64e
lea edx, [esp + 0x68]
mov edi, eax
mov byte [eax + 2], 0
mov eax, edx
sub edi, edx
push 0x5fc798
push eax
add edi, 4
call fcn.0051ee60
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4df5e8
push 0x5eb6c0
push ebp
call fcn.0051ee60
add esp, 8
test eax, eax
je 0x4df6c0
cmp byte [ebp + 0xf], 0x20
mov eax, 0xf
jne 0x4df5d1
mov cl, byte [eax + ebp + 1]
inc eax
cmp cl, 0x20
je 0x4df5c7
add eax, ebp
push eax
call fcn.0057bc91
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
je 0x4df6c0
cmp ebx, edi
mov byte [esp + 0x13], 1
jbe 0x4df63f
mov ebp, ebx
sub ebp, edi
push ebp
lea ecx, [esp + edi + 0x6c]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.00579dc0
mov al, byte [esi + 0x474]
add esp, 0xc
test al, al
mov dword [esp + 0x18], ebp
je 0x4df63f
mov edi, dword [esp + 0x20]
xor ecx, ecx
mov eax, ebp
cmp eax, edi
sete cl
lea edx, [esp + 0x68]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.00542c00
add esp, 0x10
test eax, eax
je 0x4df6c0
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
test byte [esp + 0x2c], 0x20
jne 0x4df675
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0x3e8
mov dword [esp + 0x24], eax
jl 0x4df460
jmp 0x4df6c4
je 0x4df675
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4df6c4
jmp 0x4df647
mov eax, dword [esi + 0x450]
test eax, eax
jne 0x4df689
mov al, byte [esi + 0x475]
test al, al
je 0x4df6c4
test edi, edi
je 0x4df696
push edi
call fcn.00542ab0
add esp, 4
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
mov ecx, dword [esp + 0x1068]
pop edi
mov dword [esi + 0x14], 0xffffffff
pop esi
pop ebp
pop ebx
call fcn.0057981f
add esp, 0x105c
ret
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4df6d1
push edi
call fcn.00542ab0
add esp, 4
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x4df6a2