Function at 0x489700
Capabilities:
Connect socket

Disassembly:
sub esp, 0xa8
mov eax, dword [0x5ed130]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb0]
push esi
push edi
mov edi, dword [ebp]
xor esi, esi
mov dword [edx], 0xffffffff
mov dword [ecx], esi
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x14], edx
lea edx, [esp + 0x24]
push edx
push eax
push ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
call fcn.00489610
add esp, 0x10
test eax, eax
je 0x489774
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0043dd0c
add esp, 0xa8
ret
push ebx
lea edi, [ebp + 0x9e]
lea ebx, [ebp + 0xcc]
lea esi, [esp + 0x34]
call fcn.004891c0
test eax, eax
jne 0x4897c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0048c1e0
push eax
mov eax, dword [esp + 0x24]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.004873e0
mov ecx, dword [esp + 0x38]
push ecx
push ebp
call fcn.004895c0
add esp, 0x20
jmp 0x489963
lea eax, [ebp + 0x40]
mov esi, edi
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
mov esi, dword [esp + 0x1c]
push str.__Trying__s..._n
push esi
call fcn.00487350
push ebp
call fcn.00489160
mov ebx, dword [esp + 0x30]
add esp, 0x10
cmp dword [esi + 0x34c], 0
je 0x489800
mov edx, ebx
mov edi, ebp
call fcn.00489390
push ebx
call fcn.004893f0
add esp, 4
cmp dword [esi + 0x458], 0
je 0x489819
mov edi, ebx
call fcn.00488ae0
mov eax, dword [esi + 0x1a4]
test eax, eax
je 0x489843
mov edx, dword [esi + 0x1a8]
push 0
push ebx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, 2
jne 0x489870
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x24]
push eax
push ebx
push ebp
call fcn.00488c60
mov edi, eax
add esp, 0xc
test edi, edi
je 0x489888
push ebx
push ebp
call fcn.004895c0
mov eax, edi
dec eax
add esp, 8
neg eax
sbb eax, eax
and eax, edi
jmp 0x489965
test eax, eax
je 0x489843
push ebx
push ebp
call fcn.004895c0
add esp, 8
mov eax, 0x2a
jmp 0x489965
mov edi, 1
push edi
push ebx
call fcn.004ad6b0
add esp, 8
call fcn.0048b140
cmp dword [ebp + 0x22c], edi
mov dword [ebp + 0x224], eax
mov dword [ebp + 0x228], edx
jle 0x4898c0
mov ecx, dword [ebp + 0x230]
push ecx
push esi
call fcn.004857d0
add esp, 8
cmp dword [esp + 0x1c], 0
jne 0x48995d
cmp dword [ebp + 0x74], edi
jne 0x48995d
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4898f6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], eax
xor ecx, ecx
cmp dword [esp + 0x24], 0x17
sete cl
mov dword [ebp + 0x1dc], ecx
cmp edi, 0xffffffff
jne 0x489955
mov edi, dword [esp + 0x10]
cmp edi, 0xb
je 0x48994d
cmp edi, 0x2732
jle 0x489924
cmp edi, 0x2734
jle 0x48994d
push edi
push ebp
call fcn.0048c1e0
push eax
lea eax, [ebp + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push esi
call fcn.004873e0
push ebx
push ebp
mov dword [esi + 0x85dc], edi
call fcn.004895c0
add esp, 0x20
jmp 0x489963
mov edx, dword [esp + 0x14]
mov dword [edx], ebx
jmp 0x489963
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
jmp 0x489963
mov ecx, dword [esp + 0x14]
mov dword [ecx], ebx
xor eax, eax
mov ecx, dword [esp + 0xb4]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043dd0c
add esp, 0xa8
ret