Function at 0x420bb5
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
mov eax, 0x43313f
call fcn.00425878
sub esp, 0x324
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x28], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
push ebx
push 1
push 2
mov dword [ebp - 4], ebx
mov dword [esi], 0x43a764
mov byte [esi + 0x10], 1
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x10], edi
jge 0x420c0a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.unable_to_create_socket
jmp 0x420d6d
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.00426600
add esp, 0xc
push dword [ebp + 8]
mov word [ebp - 0x24], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp - 0x20], 0xffffffff
mov word [ebp - 0x22], ax
jne 0x420c59
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x420c84
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp eax, ebx
je 0x420c84
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x420c9e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
push str.unable_to_connect_to_host
jmp 0x420d6d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
push str.unable_to_resolve_host_by_name
jmp 0x420d6d
push ebx
mov edi, str._lm_auth_code_718_
push edi
call fcn.00425370
pop ecx
inc eax
push eax
push edi
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x420cc8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [ebp - 0x10]
mov esi, eax
jmp 0x420c73
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x330], bl
lea edi, [ebp - 0x32f]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 0xff
lea eax, [ebp - 0x330]
push eax
push dword [ebp - 0x10]
call edi
cmp eax, ebx
je 0x420d27
lea eax, [ebp - 0x330]
jg 0x420d13
push ebx
push 0xff
push eax
push dword [ebp - 0x10]
call edi
cmp eax, ebx
jne 0x420cf9
jmp 0x420d2c
push str._lm_auth_code_719
push eax
call fcn.004247ab
test eax, eax
pop ecx
pop ecx
jne 0x420d2c
push 0xfffffffffffffffe
pop eax
cmp eax, 0xfffffffe
je 0x420d3b
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
jmp 0x420c7a
mov edi, dword [ebp - 0x10]
push 4
xor eax, eax
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push 6
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x420d93
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
push str.unable_to_setsockopt_TCP_NODELAY
lea ecx, [ebp - 0x230]
call fcn.004080dc
push 0x4402ac
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x230], 0x43a73c
call fcn.0042409a
push 0x34
call fcn.0042479d
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x420db4
push ebx
push ebx
push 0xffffffffffffffff
push edi
mov ecx, eax
call fcn.0040d721
jmp 0x420db6
xor eax, eax
push 0x20
mov byte [ebp - 4], bl
mov dword [esi + 4], eax
call fcn.0042479d
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x420ddc
push ebx
push 0xffffffffffffffff
push edi
mov ecx, eax
call fcn.0040d3be
jmp 0x420dde
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword [esi + 8], eax
pop edi
mov byte [esi + 0xc], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8