Function at 0x42d240
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, dword [0x5a3a48]
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov esi, ecx
je 0x42d260
cmp esi, eax
je 0x42d268
mov eax, dword [eax + 0x88c]
cmp eax, ebx
jne 0x42d252
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esi + 0x888]
call fcn.004e2760
test eax, eax
jne 0x42d28b
mov edx, 0x583b74
mov ecx, esi
call fcn.0042cb60
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 0x42d359
cmp word [esi + 0x51c], bx
jne 0x42d359
cmp dword [0x5a8b60], ebx
je 0x42d310
mov eax, dword [0x5a5504]
push eax
xor edx, edx
mov ecx, 0x523
mov dword [0x59bcec], ebx
call fcn.0041d620
mov ecx, dword [esi]
mov edx, eax
call fcn.00502c40
call fcn.0041ec80
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.0048a3e0
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 0x42d283
push eax
lea ecx, [esi + 0x4b8]
mov edx, 0x64
call fcn.0041ee40
mov edx, 8
mov ecx, esi
call fcn.0042cf70
test eax, eax
je 0x42d283
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 [0x5a8b60]
mov dword [esp + 0xc], eax
jne 0x42d3c5
cmp ecx, ebx
je 0x42d382
cmp dword [0x5a8b5c], ebx
jne 0x42d3c5
cmp dword [esi + 0x534], ebx
je 0x42d3a7
mov ecx, dword [esi]
push 7
push ebx
push edi
lea edx, [esi + 0x3f0]
call fcn.00470c10
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
xor edx, edx
mov ecx, 0x524
call fcn.0041d620
mov edx, eax
mov ecx, esi
call fcn.0042cb60
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp ecx, ebx
je 0x42d419
mov edx, dword [0x5a5504]
push edx
xor edx, edx
mov ecx, 0x523
mov dword [0x59bcec], ebx
call fcn.0041d620
mov ecx, dword [esi]
mov edx, eax
call fcn.00502c40
call fcn.0041ec80
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.0048a3e0
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 [0x59bcfc]
push 1
mov word [esp + 0x1e], ax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
push 2
mov dword [esp + 0x28], ecx
mov cx, word [0x59bcf8]
push ebx
call fcn.005049f0
cmp eax, 0xffffffff
mov dword [esi + 0x884], eax
jne 0x42d4a3
xor edx, edx
mov ecx, 0x518
call fcn.0041d620
mov edx, eax
mov ecx, esi
call fcn.0042cb60
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov ecx, eax
call fcn.0054af90
mov edx, dword [0x5b4314]
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 0x42d4f6
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x42d4f6
mov edx, 0x583b74
mov ecx, esi
call fcn.0042cb60
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret