Function at 0x5c33f0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0xe4
mov eax, dword [0x6a21bc]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xec]
push ebp
mov ebp, dword [esp + 0xec]
mov edx, dword [ebp]
push esi
mov dword [esp + 0x1c], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x10], edx
lea edx, [esp + 0x2c]
push edx
push eax
xor esi, esi
push ebp
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.005c3270
add esp, 0x10
mov dword [esp + 8], eax
cmp eax, esi
je 0x5c346c
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.005211a0
add esp, 0xe4
ret
push ebx
push edi
lea ebx, [esp + 0x2c]
lea edi, [esp + 0xc0]
lea esi, [esp + 0x40]
call fcn.005c2e30
test eax, eax
jne 0x5c34c3
mov esi, dword [sym.imp.msvcrt.dll__errno]
call esi
mov edi, eax
call esi
mov esi, eax
mov eax, dword [edi]
push eax
push ebp
call fcn.005d3360
mov ecx, dword [esi]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.005bfec0
mov eax, dword [esp + 0x30]
push eax
push ebp
call fcn.005c3210
add esp, 0x20
jmp 0x5c36bc
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
cmp eax, 2
je 0x5c34d5
cmp eax, 0x17
jne 0x5c34e0
mov esi, 1
cmp dword [esp + 0x34], esi
je 0x5c34e8
mov ebx, dword [esp + 0x14]
xor esi, esi
jmp 0x5c350a
mov ebx, dword [esp + 0x14]
cmp dword [ebx + 0x578], 0
je 0x5c350a
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
push 6
push edi
mov dword [esp + 0x2c], esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push edi
call fcn.005c3090
add esp, 4
test esi, esi
je 0x5c3527
cmp dword [ebx + 0x6b4], 0
je 0x5c3527
mov esi, ebx
call fcn.005c2780
mov eax, dword [ebx + 0x1c8]
test eax, eax
je 0x5c3569
mov edx, dword [ebx + 0x1cc]
push 0
push edi
push edx
call eax
mov esi, eax
add esp, 0xc
cmp esi, 2
jne 0x5c3551
mov dword [esp + 0x20], 1
jmp 0x5c356d
test esi, esi
je 0x5c356d
push edi
push ebp
call fcn.005c3210
add esp, 8
mov eax, 0x2a
jmp 0x5c36be
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x5c357b
cmp eax, 0x17
jne 0x5c35c1
lea eax, [esp + 0x40]
push eax
call fcn.005d3d80
mov ecx, dword [esp + 0x34]
push eax
push ecx
push edi
push ebp
call fcn.005c2900
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x5c35bd
push edi
push ebp
call fcn.005c3210
add esp, 8
cmp ebx, 1
jne 0x5c35b6
lea eax, [ebx + 6]
jmp 0x5c36be
mov eax, ebx
jmp 0x5c36be
mov ebx, dword [esp + 0x14]
push 1
push edi
call fcn.005d3fa0
add esp, 8
call fcn.005bf820
cmp dword [ebp + 0x308], 1
mov dword [ebp + 0x300], eax
mov dword [ebp + 0x304], edx
jle 0x5c35f8
mov edx, dword [ebp + 0x30c]
push 3
push edx
push ebx
call fcn.005b4830
add esp, 0xc
cmp dword [esp + 0x20], 0
jne 0x5c36b6
cmp dword [ebp + 0x94], 1
jne 0x5c36b6
cmp dword [ebp + 0x2e8], 0
jne 0x5c3633
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5c3643
jmp 0x5c3637
mov ebx, dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x1c], eax
mov esi, eax
xor edx, edx
cmp dword [esp + 0x30], 0x17
sete dl
mov dword [ebp + 0x29c], edx
cmp ebx, 0xffffffff
jne 0x5c36a3
cmp esi, 0xb
je 0x5c368f
cmp esi, 0x2732
jle 0x5c366d
cmp esi, 0x2734
jle 0x5c368f
mov eax, dword [esp + 0x14]
push edi
push ebp
mov dword [eax + 0x108a4], esi
call fcn.005c3210
mov dword [esp + 0x18], 7
mov eax, dword [esp + 0x18]
add esp, 8
jmp 0x5c36be
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov dword [ecx], edi
jmp 0x5c36be
cmp dword [esp + 0x10], 0
jne 0x5c36b0
mov ecx, dword [esp + 0x24]
mov dword [ecx], edi
mov eax, dword [esp + 0x10]
jmp 0x5c36be
mov edx, dword [esp + 0x24]
mov dword [edx], edi
xor eax, eax
mov ecx, dword [esp + 0xf0]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.005211a0
add esp, 0xe4
ret