Function at 0x5a6328f5
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5a63e034]
and dword [ebp - 0x28], 0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [edi + 0x1c4]
xor ebx, ebx
inc ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0xffffffff
je 0x5a632947
push dword [ebp + 0xc]
push edi
call fcn.5a631fc9
mov esi, eax
test esi, esi
jne 0x5a632b53
push dword [ebp - 0x1c]
push edi
call fcn.5a632023
mov esi, eax
test esi, esi
je 0x5a63297b
test byte [esi + 0x20], 5
je 0x5a632a2a
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x5a632b53
push esi
push edi
mov dword [esi + 0xc], eax
call fcn.5a6327a0
jmp 0x5a632b53
cmp dword [ebp - 0x1c], 0
je 0x5a6329ed
push dword [ebp - 0x1c]
push edi
call fcn.5a63223f
mov esi, eax
test esi, esi
je 0x5a6329ed
mov eax, dword [esi + 0x20]
and eax, 4
or eax, ebx
test al, al
jne 0x5a632b53
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x5a6329b8
cmp dword [esi + 0xc], 0xffffffff
jne 0x5a6329b8
push esi
push edi
mov dword [esi + 0xc], eax
call fcn.5a6327a0
test byte [esi + 0x20], 0x20
jne 0x5a6329c5
push esi
push edi
call fcn.5a632802
mov eax, dword [esi + 0x18]
or dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x20]
test al, 8
je 0x5a6329db
or eax, 0x14
jmp 0x5a6329de
or eax, 0x11
push esi
push edi
mov dword [esi + 0x20], eax
call fcn.5a6322b4
jmp 0x5a632b53
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call fcn.5a632086
mov esi, eax
test esi, esi
je 0x5a632b53
cmp dword [ebp + 0xc], 0xffffffff
je 0x5a632a10
push esi
push edi
call fcn.5a6327a0
cmp dword [ebp - 0x1c], 0
je 0x5a632a1d
push esi
push edi
call fcn.5a632802
lea eax, [esi + 8]
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor eax, eax
push eax
lea ecx, [ebp - 0x20]
push ecx
push eax
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.5a638710
test eax, eax
jne 0x5a632b1d
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x34], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
call fcn.5a63539d
mov ebx, dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 8
push pe_overlay
push dword [ebp - 0x18]
call ebx
cmp eax, 0xffffffff
jne 0x5a632a92
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
push 4
lea eax, [ebp - 0x24]
push eax
push 1
push 6
push dword [ebp - 0x18]
call ebx
cmp eax, 0xffffffff
jne 0x5a632aaf
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
or dword [esi + 0x20], 1
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x30]
push eax
push 0x8004667e
push dword [ebp - 0x18]
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x5a632ad9
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
push 1
push esi
push edi
call fcn.5a6322e3
push 0x10
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x5a632b47
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2748
mov dword [ebp - 0x20], eax
je 0x5a632b41
cmp eax, 0x2740
je 0x5a632b41
cmp eax, 0x271d
je 0x5a632b41
cmp eax, 0x2733
je 0x5a632b53
xor ebx, ebx
inc ebx
and dword [esi + 0x20], 0xfffffffe
cmp dword [ebp - 0x28], 0
je 0x5a632b36
push ebx
push esi
push edi
call fcn.5a63251b
push esi
push edi
call fcn.5a632753
push esi
push edi
call fcn.5a63271b
xor esi, esi
jmp 0x5a632b53
or dword [esi + 0x20], 2
jmp 0x5a632b53
mov eax, dword [esi + 0x20]
and eax, 0xfffffffe
or eax, 4
mov dword [esi + 0x20], eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.5a639a99
leave
ret 0xc