Function at 0x4350f0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, dword [0x611900]
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x435112
mov esi, dword [esp + 0x28]
cmp esi, eax
je 0x43511a
mov eax, dword [eax + 0x890]
cmp eax, ebx
jne 0x435104
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x88c]
push eax
call fcn.00502a60
add esp, 4
test eax, eax
jne 0x435143
push 0x5e6c98
push esi
call fcn.00434890
add esp, 8
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp dword [esi + 0x530], ebx
mov dword [esi + 0x520], 2
mov dword [esi + 0x878], ebx
mov dword [esi + 0x87c], ebx
jne 0x43516d
cmp dword [esi + 0x884], ebx
je 0x43521c
cmp word [esi + 0x51c], bx
jne 0x43521c
cmp dword [0x617030], ebx
je 0x4351d6
mov ecx, dword [0x61369c]
push ecx
push ebx
push 0x523
mov dword [0x63f7ac], ebx
call fcn.00421db0
mov edx, dword [esi]
add esp, 8
push eax
push edx
call fcn.00526870
call fcn.004236f0
mov ecx, dword [esi + 0x88c]
push ecx
push eax
push 1
mov dword [esi + 0x52c], eax
push ebx
add esi, 0x4b8
push esi
call fcn.00495580
add esp, 0x20
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x88c]
mov cl, byte [eax + 0x8a0]
add eax, 0x8a0
cmp cl, bl
je 0x43513b
push eax
lea edx, [esi + 0x4b8]
push 0x64
push edx
call fcn.00423900
push 8
push esi
call fcn.00434dc0
add esp, 0x14
test eax, eax
je 0x43513b
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
push edi
lea edi, [esi + 0x4b8]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov ecx, dword [0x617030]
mov dword [esp + 0xc], eax
jne 0x43528d
cmp ecx, ebx
je 0x435245
cmp dword [0x61702c], ebx
jne 0x43528d
cmp dword [esi + 0x534], ebx
je 0x43526f
mov ecx, dword [esi]
push 7
push ebx
push edi
lea eax, [esi + 0x3f0]
push eax
push ecx
call fcn.0047e8b0
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
push ebx
push 0x524
call fcn.00421db0
push eax
push esi
call fcn.00434890
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp ecx, ebx
je 0x4352e8
mov edx, dword [0x61369c]
push edx
push ebx
push 0x523
mov dword [0x63f7ac], ebx
call fcn.00421db0
add esp, 8
push eax
mov eax, dword [esi]
push eax
call fcn.00526870
call fcn.004236f0
mov ecx, dword [esi + 0x88c]
xor edx, edx
mov dx, word [esi + 0x51c]
push ecx
push eax
push ebx
mov dword [esi + 0x52c], eax
push edx
push edi
call fcn.00495580
add esp, 0x20
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x1c], eax
xor eax, eax
mov ax, word [esi + 0x51c]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], edx
mov word [esp + 0x18], 2
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0x10]
mov word [esp + 0x1a], ax
mov edx, dword [ecx]
push 1
xor eax, eax
mov ax, word [0x609e28]
push ebx
xor ecx, ecx
mov cx, word [0x609e24]
push 2
push ebx
mov dword [esp + 0x2c], edx
push eax
push ecx
call fcn.005285b0
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x888], eax
jne 0x43537a
push ebx
push 0x518
call fcn.00421db0
push eax
push esi
call fcn.00434890
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
push eax
call fcn.0058be80
mov edx, dword [0x645324]
mov eax, dword [esi + 0x888]
add esp, 4
push 0x10
push 0x801c
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edx, dword [esi + 0x888]
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x4353d1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4353d1
push 0x5e6c98
push esi
call fcn.00434890
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret