Function at 0x46e2c0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x673010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add eax, 0x10a
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebx + eax*4]
mov byte [ebp - 0x1c5], 0
push edi
mov esi, dword [ebx]
mov dword [ebp - 0x1d8], eax
mov dword [eax], 0xffffffff
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x1cc], esi
push eax
push ecx
push ebx
call fcn.0046d6f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x46e638
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x1b4]
push eax
call fcn.0046cd10
add esp, 0x10
test al, al
jne 0x46e39d
call fcn.005c667b
mov esi, dword [eax]
call fcn.005c667b
mov edi, eax
lea eax, [ebp - 0x134]
push 0x100
push eax
push esi
call fcn.00490b30
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x1cc]
call fcn.0046c360
push dword [ebp - 0x1d4]
push ebx
call fcn.0046cd80
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1d0]
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s:_ld..._n
push esi
call fcn.0046c440
mov eax, dword [ebp - 0x1c4]
add esp, 0x10
cmp eax, 2
je 0x46e3c5
cmp eax, 0x17
jne 0x46e3ce
cmp dword [ebp - 0x1c0], 1
je 0x46e3df
mov esi, dword [ebp - 0x1d4]
push esi
call fcn.0046d650
add esp, 4
jmp 0x46e421
cmp byte [esi + 0xb17], 0
mov esi, dword [ebp - 0x1d4]
push esi
je 0x46e400
push ebx
call fcn.0046e730
push esi
call fcn.0046d650
add esp, 0xc
jmp 0x46e408
call fcn.0046d650
add esp, 4
mov eax, dword [ebp - 0x1cc]
cmp byte [eax + 0xb1f], 0
je 0x46e427
push esi
push eax
call fcn.0046e650
add esp, 8
mov eax, dword [ebp - 0x1cc]
cmp dword [eax + 0x610], 0
je 0x46e477
push 1
push eax
call fcn.00460900
mov eax, dword [ebp - 0x1cc]
push 0
push esi
push dword [eax + 0x614]
mov eax, dword [eax + 0x610]
call eax
push 0
push dword [ebp - 0x1cc]
mov dword [ebp - 0x1d0], eax
call fcn.00460900
mov eax, dword [ebp - 0x1d0]
add esp, 0x1c
cmp eax, 2
jne 0x46e4d2
mov byte [ebp - 0x1c5], 1
mov eax, dword [ebp - 0x1c4]
cmp eax, 2
je 0x46e487
cmp eax, 0x17
jne 0x46e4f6
lea eax, [ebp - 0x1b4]
push eax
call fcn.00491400
push eax
push dword [ebp - 0x1c4]
push esi
push ebx
call fcn.0046dbd0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x46e4f6
push esi
push ebx
call fcn.0046cd80
add esp, 8
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x46e477
push esi
push ebx
call fcn.0046cd80
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.00477520
lea eax, [ebp - 0x1e8]
push eax
call fcn.0046f4f0
add esp, 0xc
cmp dword [ebx + 0x528], 1
movups xmm0, xmmword [eax]
movups xmmword [ebx + 0x518], xmm0
jle 0x46e53c
push 3
push dword [ebx + 0x534]
push dword [ebx + 0x530]
push dword [ebp - 0x1cc]
call fcn.0045ffd0
add esp, 0x10
cmp byte [ebp - 0x1c5], 0
jne 0x46e62e
cmp dword [ebx + 0x2f8], 4
je 0x46e62e
cmp byte [ebx + 0x50f], 0
jne 0x46e59b
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x1b4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x46e59b
test edi, edi
jne 0x46e61b
mov eax, dword [ebp - 0x1d8]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0x1d0], eax
sub ecx, 0xb
je 0x46e611
sub ecx, 0x2728
je 0x46e611
sub ecx, 1
je 0x46e611
push 0x100
lea ecx, [ebp - 0x134]
push ecx
push eax
call fcn.00490b30
mov edi, dword [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push edi
call fcn.0046c440
mov eax, dword [ebp - 0x1d0]
push esi
push ebx
mov dword [edi + 0xd44], eax
call fcn.0046cd80
add esp, 0x24
mov edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1d8]
xor edi, edi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1d8]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045bfb6
mov esp, ebp
pop ebp
ret