Function at 0x41af90
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x49a02c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, 0x80
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x114], eax
push edi
mov eax, dword [esi + 0x80]
mov edi, dword [ebp + 0x14]
mov ebx, dword [esi]
mov dword [ebp - 0x110], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x10c], eax
mov eax, dword [ecx + 0x10]
cmp eax, edx
mov dword [ebp - 0x11c], esi
cmova eax, edx
mov dword [ebp - 0x120], edi
push eax
push dword [ecx + 0x18]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x104]
push eax
call fcn.0042a190
mov byte [edi], 0
add esp, 0xc
mov eax, dword [ebx + 0x150]
test eax, eax
je 0x41b024
lea ecx, [ebp - 0x114]
push ecx
push 0
push dword [ebx + 0x154]
call eax
add esp, 0xc
jmp 0x41b03c
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push dword [ebp - 0x114]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x41b258
push 0x80
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp - 0x114]
call fcn.0041dde0
add esp, 0x10
test eax, eax
je 0x41b0b9
lea eax, [ebp - 0x84]
push eax
push str.__Trying__s...
push ebx
call fcn.0041a550
lea eax, [ebp - 0x84]
push eax
push 0x4875b8
lea esi, [ebx + 0x8590]
push 0x2e
push esi
call fcn.0041bb80
mov ecx, dword [ebp - 0x11c]
add esp, 0x1c
add ecx, 0x3c
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x41b0a6
mov esi, dword [ebp - 0x11c]
cmp byte [ebx + 0x286], 0
je 0x41b0cc
push edi
push esi
call fcn.0041b270
add esp, 8
push edi
call fcn.0041aae0
mov eax, dword [ebx + 0x148]
add esp, 4
test eax, eax
je 0x41b0fb
push 0
push edi
push dword [ebx + 0x14c]
call eax
add esp, 0xc
mov dword [ebp - 0x118], eax
test eax, eax
jne 0x41b251
push dword [ebp - 0x114]
push edi
push esi
call fcn.0041abc0
add esp, 0xc
test eax, eax
jne 0x41b251
push 1
push edi
call fcn.00425200
add esp, 8
cmp dword [esi + 0x80], 1
jne 0x41b1c5
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41b1a4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x118], eax
cmp eax, 0xb
je 0x41b196
cmp eax, 0x2732
jle 0x41b165
cmp eax, 0x2734
jle 0x41b196
push eax
mov eax, dword [ebp - 0x11c]
push eax
call fcn.0041deb0
push eax
lea eax, [ebp - 0x84]
push eax
push str.Failed_to_connect_to__s:__s
push ebx
call fcn.0041a4b0
mov eax, dword [ebp - 0x118]
add esp, 0x18
mov dword [ebx + 0x8494], eax
jmp 0x41b1c7
push dword [ebp + 0x10]
push edi
call fcn.0041b340
add esp, 8
mov esi, eax
cmp esi, 1
jne 0x41b1c7
cmp dword [ebx + 0x448], 2
jne 0x41b1c7
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004261a3
mov esp, ebp
pop ebp
ret
xor esi, esi
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.0041b2d0
add esp, 8
test esi, esi
jne 0x41b209
test al, al
je 0x41b22a
mov eax, dword [ebp - 0x120]
push str.connected_n
push ebx
mov byte [eax], 1
call fcn.0041a550
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004261a3
mov esp, ebp
pop ebp
ret
cmp esi, 1
jne 0x41b22a
mov eax, dword [ebp - 0x118]
push str.Timeout_n
push ebx
mov dword [ebx + 0x8494], eax
call fcn.0041a550
add esp, 8
jmp 0x41b251
mov eax, dword [ebp - 0x118]
push eax
push dword [ebp - 0x11c]
mov dword [ebx + 0x8494], eax
call fcn.0041deb0
push eax
push 0x475664
push ebx
call fcn.0041a550
add esp, 0x14
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004261a3
mov esp, ebp
pop ebp
ret