Function at 0x10047e09
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x100b5350]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx]
or dword [ecx], 0xffffffff
mov dword [ebp - 0xdc], ecx
lea ecx, [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0xc4]
push ecx
push eax
xor esi, esi
push ebx
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xd4], edi
call fcn.1004762f
add esp, 0x10
mov dword [ebp - 0xd0], eax
test eax, eax
jne 0x100480cd
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.10047db0
add esp, 0xc
test eax, eax
jne 0x10047ec3
call fcn.100762f9
mov esi, eax
call fcn.100762f9
push dword [esi]
mov edi, eax
push ebx
call fcn.10052f6d
push eax
push dword [edi]
mov edi, dword [ebp - 0xd4]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.10046801
mov esi, dword [ebp - 0xc8]
add esp, 0x18
jmp 0x10047fb6
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s..._n
push edi
call fcn.100468bd
xor eax, eax
add esp, 0xc
inc eax
cmp dword [ebp - 0xc4], 2
jne 0x10047f08
cmp dword [ebp - 0xc0], eax
jne 0x10047f08
cmp dword [edi + 0x42c], esi
mov esi, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
je 0x10047f14
push esi
push ebx
call fcn.100476e9
pop ecx
pop ecx
jmp 0x10047f14
mov dword [ebp - 0xcc], esi
mov esi, dword [ebp - 0xc8]
push esi
call fcn.100475a5
cmp dword [ebp - 0xcc], 0
pop ecx
je 0x10047f36
cmp dword [edi + 0x574], 0
je 0x10047f36
push esi
push edi
call fcn.100480de
pop ecx
pop ecx
mov eax, dword [edi + 0x1e8]
test eax, eax
je 0x10047f5d
push 0
push esi
push dword [edi + 0x1ec]
call eax
add esp, 0xc
cmp eax, 2
jne 0x10047fa8
mov dword [ebp - 0xd8], 1
cmp dword [ebp - 0xc4], 2
jne 0x10047fca
lea eax, [ebp - 0xb4]
push eax
call fcn.1006503c
push eax
push dword [ebp - 0xc4]
push esi
push ebx
call fcn.100479c1
mov edi, eax
add esp, 0x14
mov dword [ebp - 0xd0], edi
test edi, edi
je 0x10047fca
push esi
push ebx
call fcn.10046f2d
pop ecx
pop ecx
push 7
pop eax
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x100480cf
test eax, eax
je 0x10047f5d
mov dword [ebp - 0xcc], 0x2a
push esi
push ebx
call fcn.10046f2d
mov eax, dword [ebp - 0xcc]
pop ecx
pop ecx
jmp 0x100480cf
push 1
push esi
call fcn.1006503f
lea eax, [ebp - 0xf0]
push eax
call fcn.1003dd2b
lea edi, [ebx + 0x450]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
cmp dword [ebx + 0x460], 1
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xd4]
jle 0x10048013
push 3
push dword [ebx + 0x46c]
push dword [ebx + 0x468]
push edi
call fcn.10039fd1
add esp, 0x10
cmp dword [ebp - 0xd8], 0
jne 0x100480bf
cmp dword [ebx + 0x94], 1
jne 0x100480bf
mov esi, dword [ebp - 0xc8]
xor eax, eax
cmp dword [ebx + 0x438], eax
jne 0x10048056
push dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100480ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xd0], eax
cmp eax, 0xb
je 0x100480a7
cmp eax, 0x2732
jle 0x10048075
cmp eax, 0x2734
jle 0x100480a7
push eax
push ebx
call fcn.10052f6d
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push edi
call fcn.100468bd
mov eax, dword [ebp - 0xd0]
push esi
push ebx
mov dword [edi + 0x47e4], eax
call fcn.10046f2d
add esp, 0x20
push 7
pop eax
jmp 0x100480cf
xor eax, eax
jmp 0x100480b1
mov eax, dword [ebp - 0xd0]
test eax, eax
jne 0x100480cf
mov ecx, dword [ebp - 0xdc]
mov dword [ecx], esi
jmp 0x100480cf
mov ecx, dword [ebp - 0xdc]
mov esi, dword [ebp - 0xc8]
mov dword [ecx], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100704e7
leave
ret