Function at 0x555a20d
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x53f40dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x154], ecx
mov byte [ebp - 0x146], cl
lea ecx, [ebp - 0x150]
push ecx
mov esi, dword [edi]
lea ecx, [ebp - 0x144]
or dword [edx], 0xffffffff
push ecx
push eax
push edi
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x14c], esi
call fcn.0555993f
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x555a53f
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.0555a1a3
add esp, 0xc
test al, al
jne 0x555a2d8
call fcn.0558cd1d
mov esi, dword [eax]
call fcn.0558cd1d
mov edi, eax
lea eax, [ebp - 0xb4]
push 0x80
push eax
push esi
call fcn.0556de4c
push eax
push dword [edi]
push 0x552fe9c
push dword [ebp - 0x14c]
call fcn.05558978
mov esi, dword [ebp - 0x150]
add esp, 0x1c
mov edi, dword [ebp - 0x158]
jmp 0x555a40e
lea eax, [ebp - 0x34]
push eax
push 0x552fecc
push esi
call fcn.05558a4c
add esp, 0xc
cmp dword [ebp - 0x144], 2
je 0x555a2fc
cmp dword [ebp - 0x144], 0x17
jne 0x555a326
cmp dword [ebp - 0x140], 1
jne 0x555a326
test byte [esi + 0xa90], 4
mov esi, dword [ebp - 0x150]
mov byte [ebp - 0x145], 1
je 0x555a333
push esi
push edi
call fcn.0555a61e
pop ecx
pop ecx
jmp 0x555a333
mov esi, dword [ebp - 0x150]
mov byte [ebp - 0x145], 0
push esi
call fcn.055598b5
cmp byte [ebp - 0x145], 0
mov eax, dword [ebp - 0x14c]
pop ecx
je 0x555a364
test dword [eax + 0xa90], 0x1000
je 0x555a364
push esi
push eax
call fcn.0555a550
mov eax, dword [ebp - 0x14c]
pop ecx
pop ecx
cmp dword [eax + 0x610], 0
je 0x555a3b2
push 1
push eax
call fcn.0554d82f
mov eax, dword [ebp - 0x14c]
push 0
push esi
push dword [eax + 0x614]
call dword [eax + 0x610]
push 0
push dword [ebp - 0x14c]
mov dword [ebp - 0x154], eax
call fcn.0554d82f
mov eax, dword [ebp - 0x154]
add esp, 0x1c
cmp eax, 2
jne 0x555a400
mov byte [ebp - 0x146], 1
cmp dword [ebp - 0x144], 2
je 0x555a3c4
cmp dword [ebp - 0x144], 0x17
jne 0x555a422
lea eax, [ebp - 0x134]
push eax
call fcn.0556e6c6
push eax
push dword [ebp - 0x144]
push esi
push edi
call fcn.05559cd7
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x555a422
push esi
push edi
call fcn.05559173
pop ecx
pop ecx
push 7
cmp ebx, 1
pop eax
cmove ebx, eax
mov eax, ebx
jmp 0x555a541
test eax, eax
je 0x555a3b2
mov dword [ebp - 0x154], 0x2a
push esi
push edi
call fcn.05559173
mov eax, dword [ebp - 0x154]
pop ecx
pop ecx
jmp 0x555a541
push 1
push esi
call fcn.0556e74c
lea eax, [ebp - 0x170]
push eax
call fcn.0555b2d4
add edi, 0x288
mov esi, eax
add esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x158]
cmp dword [edi + 0x298], 1
jle 0x555a470
push 3
push dword [edi + 0x2a4]
push dword [edi + 0x2a0]
push dword [ebp - 0x14c]
call fcn.0554d1b3
add esp, 0x10
cmp byte [ebp - 0x146], 0
jne 0x555a531
cmp dword [edi + 0x90], 1
jne 0x555a531
test dword [edi + 0x284], 0x8000000
mov esi, dword [ebp - 0x150]
jne 0x555a4b5
push dword [ebp - 0x138]
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x555a51c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x158], eax
cmp eax, 0xb
je 0x555a51a
cmp eax, 0x2732
jle 0x555a4d4
cmp eax, 0x2734
jle 0x555a51a
push 0x80
lea ecx, [ebp - 0xb4]
push ecx
push eax
call fcn.0556de4c
mov ebx, dword [ebp - 0x14c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x552fedc
push ebx
call fcn.05558a4c
mov eax, dword [ebp - 0x158]
push esi
push edi
mov dword [ebx + 0xcac], eax
call fcn.05559173
add esp, 0x24
push 7
pop ebx
jmp 0x555a3f9
xor ebx, ebx
test ebx, ebx
jne 0x555a3f9
mov eax, dword [ebp - 0x15c]
mov dword [eax], esi
jmp 0x555a3f9
mov eax, dword [ebp - 0x15c]
mov esi, dword [ebp - 0x150]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0557c24c
leave
ret