Function at 0x4a2744
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5df7e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edx + 4]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x118], eax
mov ecx, 0x80
mov dword [ebp - 0x11c], esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x80]
mov ebx, dword [esi]
mov dword [ebp - 0x114], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x110], eax
mov eax, dword [edx + 0x10]
cmp eax, ecx
mov dword [ebp - 0x124], edi
cmova eax, ecx
push eax
push dword [edx + 0x18]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x108]
push eax
call fcn.00529780
xor eax, eax
add esp, 0xc
mov byte [edi], al
mov ecx, dword [ebx + 0x150]
test ecx, ecx
je 0x4a27d4
lea edx, [ebp - 0x118]
push edx
push eax
push dword [ebx + 0x154]
call ecx
add esp, 0xc
jmp 0x4a27ec
push dword [ebp - 0x110]
push dword [ebp - 0x114]
push dword [ebp - 0x118]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a29ca
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x88]
push 0x80
push eax
lea edx, [ebp - 0x104]
call fcn.004b5d40
pop ecx
pop ecx
test eax, eax
je 0x4a285c
lea eax, [ebp - 0x88]
push eax
push str.__Trying__s...
push ebx
call fcn.0049dbc9
add esp, 0xc
lea eax, [ebp - 0x88]
lea esi, [ebx + 0x85a0]
push eax
push 0x5b7acc
push 0x2e
push esi
call sym.wwbizsrv.exe_curl_msnprintf
push esi
mov esi, dword [ebp - 0x11c]
lea eax, [esi + 0x3c]
push eax
call fcn.0053f1b0
add esp, 0x18
cmp byte [ebx + 0x27e], 0
je 0x4a286e
mov edx, edi
mov ecx, esi
call fcn.004a26c5
mov ecx, edi
call fcn.004a2720
mov eax, dword [ebx + 0x148]
xor esi, esi
test eax, eax
je 0x4a289c
push esi
push edi
push dword [ebx + 0x14c]
call eax
add esp, 0xc
mov dword [ebp - 0x120], eax
test eax, eax
jne 0x4a29c3
push dword [ebp - 0x118]
mov ecx, dword [ebp - 0x11c]
mov edx, edi
call fcn.004a21cf
pop ecx
test eax, eax
jne 0x4a29c3
xor edx, edx
mov ecx, edi
inc edx
call fcn.004a218f
mov eax, dword [ebp - 0x11c]
cmp dword [eax + 0x80], 1
jne 0x4a28e7
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a2977
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x120], eax
cmp eax, 0xb
je 0x4a296b
cmp eax, 0x2732
jle 0x4a290f
cmp eax, 0x2734
jle 0x4a296b
mov ecx, dword [ebp - 0x11c]
mov edx, eax
call fcn.004a6e35
push eax
lea eax, [ebp - 0x88]
push eax
push str.Failed_to_connect_to__s:__s
push ebx
call fcn.0049dc37
mov eax, dword [ebp - 0x120]
add esp, 0x10
mov dword [ebx + 0x84a4], eax
lea edx, [ebp - 0x120]
mov ecx, edi
call fcn.004a24be
test esi, esi
jne 0x4a2989
test al, al
je 0x4a299d
mov eax, dword [ebp - 0x124]
push str.connected_n
push ebx
mov byte [eax], 1
call fcn.0049dbc9
pop ecx
pop ecx
jmp 0x4a2985
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004a21a8
mov esi, eax
cmp esi, 1
jne 0x4a293e
cmp dword [ebx + 0x458], 2
jne 0x4a293e
mov eax, edi
jmp 0x4a29cd
cmp esi, 1
jne 0x4a299d
push str.Timeout_n
push ebx
call fcn.0049dbc9
pop ecx
pop ecx
jmp 0x4a29c3
mov edx, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x11c]
mov dword [ebx + 0x84a4], edx
call fcn.004a6e35
push eax
push 0x5b8134
push ebx
call fcn.0049dbc9
add esp, 0xc
push edi
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.005121be
leave
ret