Function at 0x44ad12
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x49b854]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x124], ecx
mov ecx, dword [eax + 4]
push esi
push edi
mov edi, edx
mov ebx, dword [edi]
mov dword [ebp - 0x114], ecx
mov ecx, dword [edi + 0x80]
mov dword [ebp - 0x110], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10c], ecx
mov ecx, dword [eax + 0x10]
mov esi, 0x80
mov dword [ebp - 0x108], ecx
cmp ecx, esi
jbe 0x44ad6b
mov dword [ebp - 0x108], esi
push dword [ebp - 0x108]
push dword [eax + 0x18]
lea eax, [ebp - 0x104]
push eax
call fcn.0045c010
mov eax, dword [ebp - 0x124]
mov byte [eax], 0
mov eax, dword [ebx + 0x150]
add esp, 0xc
test eax, eax
je 0x44adac
lea ecx, [ebp - 0x114]
push ecx
push 0
push dword [ebx + 0x154]
call eax
add esp, 0xc
jmp 0x44adc4
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push dword [ebp - 0x114]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x118], eax
or eax, 0xffffffff
cmp dword [ebp - 0x118], eax
je 0x44afc9
push esi
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp - 0x114]
call fcn.0044c361
add esp, 0x10
test eax, eax
je 0x44ae33
lea eax, [ebp - 0x84]
push eax
push str.__Trying__s...
push ebx
call fcn.0044a4a9
lea eax, [ebp - 0x84]
push eax
push 0x48031c
lea esi, [ebx + 0x8590]
push 0x2e
push esi
call fcn.0044b798
lea eax, [edi + 0x3c]
push esi
push eax
call fcn.00462c90
add esp, 0x24
cmp byte [ebx + 0x286], 0
je 0x44ae48
push dword [ebp - 0x118]
call fcn.0044ac96
pop ecx
mov esi, dword [ebp - 0x118]
push esi
call fcn.0044acec
mov eax, dword [ebx + 0x148]
pop ecx
test eax, eax
je 0x44ae7d
push 0
push esi
push dword [ebx + 0x14c]
call eax
add esp, 0xc
mov dword [ebp - 0x120], eax
test eax, eax
je 0x44ae7d
push esi
jmp 0x44afc0
mov ecx, dword [ebp - 0x114]
push esi
push edi
call fcn.0044a909
pop ecx
pop ecx
test eax, eax
jne 0x44ae77
push 1
push esi
call fcn.0045ac90
cmp dword [edi + 0x80], 1
pop ecx
pop ecx
jne 0x44aebf
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x11c], eax
jmp 0x44aec6
and dword [ebp - 0x11c], 0
cmp dword [ebp - 0x11c], 0xffffffff
jne 0x44af66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov dword [ebp - 0x120], esi
cmp esi, 0xb
je 0x44af50
cmp esi, 0x2732
jle 0x44aef6
cmp esi, 0x2734
jle 0x44af50
push esi
push edi
call fcn.0045aa6f
push eax
lea eax, [ebp - 0x84]
push eax
push str.Failed_to_connect_to__s:__s
push ebx
call fcn.0044a513
add esp, 0x18
mov dword [ebx + 0x8494], esi
push dword [ebp - 0x118]
lea esi, [ebp - 0x120]
call fcn.0044ac37
cmp dword [ebp - 0x11c], 0
pop ecx
jne 0x44af80
test al, al
je 0x44af98
mov eax, dword [ebp - 0x124]
push str.connected_n
push ebx
mov byte [eax], 1
call fcn.0044a4a9
pop ecx
pop ecx
jmp 0x44af78
push dword [ebp + 0xc]
push dword [ebp - 0x118]
call fcn.0044a8dc
pop ecx
pop ecx
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 1
jne 0x44af19
cmp dword [ebx + 0x448], 2
jne 0x44af19
mov eax, dword [ebp - 0x118]
jmp 0x44afc9
cmp dword [ebp - 0x11c], 1
jne 0x44af98
push str.Timeout_n
push ebx
call fcn.0044a4a9
pop ecx
pop ecx
jmp 0x44afba
mov eax, dword [ebp - 0x120]
push eax
push edi
mov dword [ebx + 0x8494], eax
call fcn.0045aa6f
push eax
push 0x485244
push ebx
call fcn.0044a4a9
add esp, 0x14
push dword [ebp - 0x118]
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045bc90
leave
ret