Function at 0x84b5b0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x1cc
mov eax, dword [esp + 0x1d8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1e0]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
mov esi, dword [edi]
mov dword [edi + eax*4 + 0x410], 0xffffffff
mov eax, dword [esp + 0x1e4]
push ecx
push edx
push eax
push edi
mov dword [esp + 0x24], 0
call fcn.0084c0a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x84b609
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
lea edx, [esp + 0xac]
push ecx
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0084abb0
add esp, 0x10
test eax, eax
jne 0x84b678
lea edx, [esp + 0xdc]
push 0x100
push edx
call fcn.00833938
mov eax, dword [eax]
push eax
call fcn.00872650
add esp, 0xc
push eax
call fcn.00833938
mov ecx, dword [eax]
push ecx
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.00846120
mov edx, dword [esp + 0x20]
push edx
push edi
call fcn.0084c010
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xac]
push eax
push ecx
push str.__Trying__s:_ld..._n
push esi
call fcn.00846060
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, 2
jne 0x84b6a9
mov eax, dword [esp + 0x20]
mov ebp, 1
cmp eax, ebp
je 0x84b6ad
xor ebp, ebp
jmp 0x84b6c5
mov eax, dword [esi + 0xba8]
test eax, eax
je 0x84b6c5
mov edx, dword [esp + 0x10]
push edx
push edi
call fcn.0084bdf0
add esp, 8
mov eax, dword [esp + 0x10]
push eax
call fcn.0084b500
add esp, 4
test ebp, ebp
je 0x84b6ee
mov eax, dword [esi + 0xbcc]
test eax, eax
je 0x84b6ee
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.0084b8e0
add esp, 8
mov eax, dword [esi + 0x600]
test eax, eax
je 0x84b72e
push 1
push esi
call fcn.00846000
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x604]
push 0
push edx
push eax
call dword [esi + 0x600]
push 0
push esi
mov ebp, eax
call fcn.00846000
add esp, 0x1c
cmp ebp, 2
jne 0x84b780
mov dword [esp + 0x14], 1
cmp dword [esp + 0x1c], 2
jne 0x84b7a2
lea edx, [esp + 0x2c]
push edx
call fcn.0083e830
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
push edi
call fcn.0084b9c0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x84b7a2
mov edx, dword [esp + 0x10]
push edx
push edi
call fcn.0084c010
add esp, 8
cmp ebx, 1
jne 0x84b8a7
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x1cc
ret
test ebp, ebp
je 0x84b72e
mov ecx, dword [esp + 0x10]
push ecx
push edi
call fcn.0084c010
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret
mov eax, dword [esp + 0x10]
push 1
push eax
call fcn.00870820
add esp, 8
call fcn.0084e480
mov dword [edi + 0x590], eax
mov eax, dword [edi + 0x598]
cmp eax, 1
mov dword [edi + 0x594], edx
jle 0x84b7e6
mov ecx, dword [edi + 0x5a4]
mov edx, dword [edi + 0x5a0]
push 3
push ecx
push edx
push esi
call fcn.00845ca0
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x84b8b4
cmp dword [edi + 0x2f8], 4
je 0x84b8b4
mov eax, dword [edi + 0x580]
test eax, eax
jne 0x84b823
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x84b891
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0xb
je 0x84b88d
cmp ebx, 0x2732
jle 0x84b840
cmp ebx, 0x2734
jle 0x84b88d
lea eax, [esp + 0xdc]
push 0x100
push eax
push ebx
call fcn.00872650
lea ecx, [esp + 0xb8]
push eax
push ecx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.00846060
mov dword [esi + 0xdc4], ebx
mov edx, dword [esp + 0x2c]
push edx
push edi
call fcn.0084c010
add esp, 0x24
mov ebx, 7
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret
xor ebx, ebx
jmp 0x84b895
test ebx, ebx
jne 0x84b8a7
mov ecx, dword [esp + 0x1e8]
mov eax, dword [esp + 0x10]
mov dword [edi + ecx*4 + 0x410], eax
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1cc
ret
mov eax, dword [esp + 0x1e8]
mov edx, dword [esp + 0x10]
mov dword [edi + eax*4 + 0x410], edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1cc
ret