Function at 0x42bb80
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, dword [0x592640]
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov esi, ecx
je 0x42bba0
cmp esi, eax
je 0x42bba8
mov eax, dword [eax + 0x88c]
cmp eax, ebx
jne 0x42bb92
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esi + 0x888]
call fcn.004dbea0
test eax, eax
jne 0x42bbcb
mov edx, 0x574b10
mov ecx, esi
call fcn.0042b4a0
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
je 0x42bc99
cmp word [esi + 0x51c], bx
jne 0x42bc99
cmp dword [0x597618], ebx
je 0x42bc50
mov eax, dword [0x594094]
push eax
xor edx, edx
mov ecx, 0x523
mov dword [0x589b90], ebx
call fcn.0041c9e0
mov ecx, dword [esi]
mov edx, eax
call fcn.004fb730
call fcn.0041df60
mov ecx, dword [esi + 0x888]
push ecx
push eax
push 1
lea ecx, [esi + 0x4b8]
xor edx, edx
mov dword [esi + 0x52c], eax
call fcn.00486340
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x888]
mov cl, byte [eax + 0x8a4]
add eax, 0x8a4
cmp cl, bl
je 0x42bbc3
push eax
lea ecx, [esi + 0x4b8]
mov edx, 0x64
call fcn.0041e120
mov edx, 8
mov ecx, esi
call fcn.0042b8b0
test eax, eax
je 0x42bbc3
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 [0x597618]
mov dword [esp + 0xc], eax
jne 0x42bd05
cmp ecx, ebx
je 0x42bcc2
cmp dword [0x597614], ebx
jne 0x42bd05
cmp dword [esi + 0x534], ebx
je 0x42bce7
mov ecx, dword [esi]
push 7
push ebx
push edi
lea edx, [esi + 0x3f0]
call fcn.0046d660
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
xor edx, edx
mov ecx, 0x524
call fcn.0041c9e0
mov edx, eax
mov ecx, esi
call fcn.0042b4a0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp ecx, ebx
je 0x42bd59
mov edx, dword [0x594094]
push edx
xor edx, edx
mov ecx, 0x523
mov dword [0x589b90], ebx
call fcn.0041c9e0
mov ecx, dword [esi]
mov edx, eax
call fcn.004fb730
call fcn.0041df60
mov ecx, dword [esi + 0x888]
mov dx, word [esi + 0x51c]
push ecx
push eax
push ebx
mov ecx, edi
mov dword [esi + 0x52c], eax
call fcn.00486340
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
lea edx, [esp + 0xc]
mov dword [esp + 0x10], edx
xor edx, edx
mov dx, word [esi + 0x51c]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ecx
push edx
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov dx, word [0x589910]
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ebx
push 2
mov dword [esp + 0x24], ecx
mov cx, word [0x58990c]
push ebx
call fcn.004fd380
cmp eax, 0xffffffff
mov dword [esi + 0x884], eax
jne 0x42bde1
xor edx, edx
mov ecx, 0x518
call fcn.0041c9e0
mov edx, eax
mov ecx, esi
call fcn.0042b4a0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov ecx, eax
call fcn.0053e860
mov edx, dword [0x5a1b00]
mov eax, dword [esi + 0x884]
push 0x10
push 0x801c
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edx, dword [esi + 0x884]
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x42be34
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x42be34
mov edx, 0x574b10
mov ecx, esi
call fcn.0042b4a0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret