Function at 0x490880
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, dword [0x5a8ba4]
sub esp, 0x1c
test eax, eax
push esi
mov esi, ecx
je 0x49089e
nop
cmp eax, esi
je 0x4908a5
mov eax, dword [eax + 0x4bc]
test eax, eax
jne 0x490890
xor eax, eax
pop esi
add esp, 0x1c
ret
mov ecx, dword [esi + 0x4b8]
call fcn.004e2760
test eax, eax
jne 0x4908c9
push 0x583b74
xor edx, edx
mov ecx, esi
call fcn.00490190
xor eax, eax
pop esi
add esp, 0x1c
ret
mov eax, dword [esi + 0x444]
test eax, eax
push edi
mov dword [esi + 0x440], 2
mov dword [esi + 0x4ac], 0
je 0x4909c9
cmp word [esi + 0x454], 0
lea edi, [esi + 0x454]
jne 0x4909c9
mov eax, dword [0x5a8b60]
test eax, eax
je 0x490950
xor edx, edx
mov ecx, 0xb5c
call fcn.0041d620
push eax
push 1
push 1
push 1
mov edx, 1
mov ecx, esi
call fcn.00536d90
mov eax, dword [esi + 0x4b8]
mov ecx, dword [esi + 0x444]
push eax
push ecx
push 1
lea ecx, [esi + 0xcc]
xor edx, edx
call fcn.0048a3e0
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
mov dx, word [0x59bcfc]
mov cx, word [0x59bcf8]
push 1
push 1
push 0
push edi
call fcn.005049f0
cmp eax, 0xffffffff
mov dword [esi + 0x4b0], eax
je 0x490af4
mov edx, dword [0x5b4314]
push 8
push 0x8011
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x4b8]
mov ecx, dword [esi + 0x444]
mov edx, dword [esi + 0x464]
push eax
push ecx
xor ecx, ecx
mov cx, word [edi]
push edx
mov edx, dword [eax + 0x908]
push ecx
push edx
lea edx, [esi + 0x234]
lea ecx, [esi + 4]
call fcn.00514d30
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
lea edi, [esi + 0xcc]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov ecx, dword [0x5a8b60]
mov dword [esp + 8], eax
jne 0x490a21
test ecx, ecx
je 0x4909f3
mov edx, dword [0x5a8b5c]
test edx, edx
jne 0x490a21
mov eax, dword [esi + 0x47c]
test eax, eax
je 0x490a17
mov ecx, dword [esi]
push 0xa
push 0
push edi
lea edx, [esi + 4]
call fcn.00470c10
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
mov ecx, 0xb5e
jmp 0x490b47
test ecx, ecx
je 0x490a82
xor edx, edx
mov ecx, 0xb5c
call fcn.0041d620
push eax
push 1
push 0
push 1
mov edx, 1
mov ecx, esi
call fcn.00536d90
mov eax, dword [esi + 0x444]
test eax, eax
jne 0x490a59
call fcn.0041ec80
mov dword [esi + 0x444], eax
mov eax, dword [esi + 0x4b8]
mov ecx, dword [esi + 0x444]
mov dx, word [esi + 0x454]
push eax
push ecx
push 0
mov ecx, edi
call fcn.0048a3e0
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
lea edx, [esp + 8]
mov dword [esp + 0xc], edx
xor edx, edx
mov dx, word [esi + 0x454]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], ecx
push edx
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov dx, word [0x59bcfc]
push 1
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push 2
mov dword [esp + 0x24], ecx
mov cx, word [0x59bcf8]
push 0
call fcn.005049f0
cmp eax, 0xffffffff
mov dword [esi + 0x4b0], eax
jne 0x490afb
mov ecx, 0xb5d
jmp 0x490b47
mov ecx, eax
call fcn.0054af90
mov edx, dword [0x5b4314]
mov eax, dword [esi + 0x4b0]
push 0x10
push 0x800f
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edx, dword [esi + 0x4b0]
push 0x10
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x490b58
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x490b58
mov ecx, 0xb5f
xor edx, edx
call fcn.0041d620
mov ecx, esi
xor edx, edx
push eax
call fcn.00490190
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret