Function at 0x49dc80
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, dword [0x63709c]
sub esp, 0x1c
test eax, eax
push esi
je 0x49dc9f
mov esi, dword [esp + 0x24]
cmp eax, esi
je 0x49dca6
mov eax, dword [eax + 0x4bc]
test eax, eax
jne 0x49dc91
xor eax, eax
pop esi
add esp, 0x1c
ret
mov eax, dword [esi + 0x4b8]
push eax
call fcn.00502a60
add esp, 4
test eax, eax
jne 0x49dccf
push 0x5e6c98
push eax
push esi
call fcn.0049d510
add esp, 0xc
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 0x49dddc
cmp word [esi + 0x454], 0
lea edi, [esi + 0x454]
jne 0x49dddc
mov eax, dword [0x617030]
test eax, eax
je 0x49dd56
push 0
push 0xb5c
call fcn.00421db0
push eax
push 1
push 1
push 1
push 1
push esi
call fcn.00568380
mov ecx, dword [esi + 0x4b8]
mov edx, dword [esi + 0x444]
push ecx
push edx
push 1
push 0
add esi, 0xcc
push esi
call fcn.00495580
add esp, 0x34
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
push 1
xor eax, eax
mov ax, word [0x609e28]
push 1
xor ecx, ecx
mov cx, word [0x609e24]
push 0
push edi
push eax
push ecx
call fcn.005285b0
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x4b0], eax
je 0x49df1a
mov edx, dword [0x645324]
push 8
push 0x8010
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 + 0x904]
lea eax, [esi + 0x234]
add esi, 4
push ecx
push edx
push eax
push esi
call fcn.0053d570
add esp, 0x1c
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 [0x617030]
mov dword [esp + 8], eax
jne 0x49de3b
test ecx, ecx
je 0x49de06
mov edx, dword [0x61702c]
test edx, edx
jne 0x49de3b
mov eax, dword [esi + 0x47c]
test eax, eax
je 0x49de2f
mov edx, dword [esi]
push 0xa
push 0
push edi
lea ecx, [esi + 4]
push ecx
push edx
call fcn.0047e8b0
add esp, 0x14
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
push 0
push 0xb5e
jmp 0x49df73
test ecx, ecx
je 0x49dea0
push 0
push 0xb5c
call fcn.00421db0
push eax
push 1
push 0
push 1
push 1
push esi
call fcn.00568380
mov eax, dword [esi + 0x444]
add esp, 0x20
test eax, eax
jne 0x49de72
call fcn.004236f0
mov dword [esi + 0x444], eax
mov eax, dword [esi + 0x4b8]
mov ecx, dword [esi + 0x444]
xor edx, edx
mov dx, word [esi + 0x454]
push eax
push ecx
push 0
push edx
push edi
call fcn.00495580
add esp, 0x14
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x18], eax
xor eax, eax
mov ax, word [esi + 0x454]
lea ecx, [esp + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], edx
mov word [esp + 0x14], 2
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0xc]
mov word [esp + 0x16], ax
mov edx, dword [ecx]
push 1
xor eax, eax
mov ax, word [0x609e28]
push 0
xor ecx, ecx
mov cx, word [0x609e24]
push 2
push 0
mov dword [esp + 0x28], edx
push eax
push ecx
call fcn.005285b0
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x4b0], eax
jne 0x49df23
push 0
push 0xb5d
jmp 0x49df73
push eax
call fcn.0058be80
mov edx, dword [0x645324]
mov eax, dword [esi + 0x4b0]
add esp, 4
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 0x49df84
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x49df84
push 0
push 0xb5f
call fcn.00421db0
push eax
push 0
push esi
call fcn.0049d510
add esp, 0x14
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret