Function at 0x5d4480
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x6a6040]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x91]
lea edi, [esi + 0x23c]
mov ebx, dword [esi + 0x228]
mov dword [esp + 0x1c], ecx
bswap ebx
cmp ecx, 0x17
jne 0x5d44c5
movzx edx, word [esi + 0x236]
jmp 0x5d44cc
movzx edx, word [esi + 0x226]
cmp dword [ebp + 8], 0x64
mov ah, dl
mov al, dh
movzx eax, ax
mov dword [esp + 0x10], eax
jne 0x5d45a9
mov eax, dword [esi]
mov ecx, esi
push 0
push 0x800
call dword [eax + 8]
push 1
mov ecx, esi
call fcn.005d2b10
cmp dword [esp + 0x1c], 0x17
mov eax, dword [esi]
mov dword [esp + 0x14], eax
jne 0x5d453b
push ecx
mov edx, edi
lea ecx, [esp + 0x24]
call fcn.005d1e00
add esp, 4
mov ecx, esi
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push edi
call dword [eax + 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00606a47
mov esp, ebp
pop ebp
ret 4
mov edx, ebx
lea ecx, [esp + 0x20]
push 0x2e
shr edx, 0x18
call fcn.005d24d0
add esp, 4
mov edx, ebx
shr edx, 0x10
mov ecx, eax
push 0x2e
call fcn.005d24d0
add esp, 4
mov edx, ebx
shr edx, 8
mov ecx, eax
push 0x2e
call fcn.005d24d0
add esp, 4
mov dl, bl
mov ecx, eax
push 0
call fcn.005d24d0
add esp, 4
lea eax, [esp + 0x20]
mov ecx, esi
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push ebx
call dword [eax + 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00606a47
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 0x8d]
cmp ecx, 0x17
jne 0x5d45be
push 0x1c
lea eax, [esi + 0x234]
jmp 0x5d45c6
push 0x10
lea eax, [esi + 0x224]
push eax
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x5d46cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x5d46a9
sub eax, 2
je 0x5d46a9
sub eax, 0x13
jne 0x5d477b
cmp dword [ebp + 8], eax
je 0x5d468d
mov eax, dword [esi]
mov ecx, esi
push 0
push 0x800
call dword [eax + 8]
push 1
mov ecx, esi
call fcn.005d2b10
cmp dword [esp + 0x1c], 0x17
mov eax, dword [esi]
push ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x24]
jne 0x5d465c
mov edx, edi
call fcn.005d1e00
add esp, 4
mov ecx, esi
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push edi
call dword [eax + 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00606a47
mov esp, ebp
pop ebp
ret 4
mov edx, ebx
call fcn.005d2530
add esp, 4
mov ecx, esi
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push ebx
call dword [eax + 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00606a47
mov esp, ebp
pop ebp
ret 4
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00606a47
mov esp, ebp
pop ebp
ret 4
xor edx, edx
mov eax, 2
cmp dword [ebp + 8], edx
cmovne eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00606a47
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp + 8], 0
je 0x5d4762
mov eax, dword [esi]
mov ecx, esi
push 0
push 0x800
call dword [eax + 8]
push 1
mov ecx, esi
call fcn.005d2b10
cmp dword [esp + 0x1c], 0x17
mov eax, dword [esi]
push ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x24]
jne 0x5d4731
mov edx, edi
call fcn.005d1e00
add esp, 4
mov ecx, esi
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push edi
call dword [eax + 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00606a47
mov esp, ebp
pop ebp
ret 4
mov edx, ebx
call fcn.005d2530
add esp, 4
mov ecx, esi
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push ebx
call dword [eax + 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00606a47
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x224]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00606a47
mov esp, ebp
pop ebp
ret 4
push 0
push 0xffffffffffffffff
push 0
push 0
push str.error
lea ecx, [esp + 0x28]
call fcn.005d0f20
lea ecx, [esp + 0x14]
call fcn.00405ff0
cmp dword [esp + 0x1c], 0x17
mov eax, dword [esp + 0x10]
movzx eax, ax
push ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x24]
jne 0x5d47ba
mov edx, edi
call fcn.005d1e00
jmp 0x5d47c1
mov edx, ebx
call fcn.005d2530
add esp, 4
push dword [esp + 0x14]
push eax
lea eax, [esp + 0x128]
push str.connect___s___d_
push eax
call fcn.0041b2a0
add esp, 0x10
lea eax, [esp + 0x120]
mov ecx, esi
push eax
call fcn.005d3010
int3