Function at 0x488ed0
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket
Send http request
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x488fe4
mov byte [ebp + 0xc4], 1
movzx eax, byte [ebp + 0xc5]
mov esi, 0xffffffff
test al, al
je 0x488ff0
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x489001
mov ecx, dword [ebp + 0x78]
test ecx, ecx
je 0x488fd1
xor edi, edi
mov ebx, dword [sym.imp.WS2_32.dll_send]
jmp 0x488f31
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x78]
add edi, 1
cmp ecx, edi
jbe 0x488fb0
imul ecx, edi, 0x114
add eax, ecx
mov byte [eax + 0xc4], 1
mov eax, dword [ebp + 0x64]
add ecx, eax
cmp dword [ecx + 0xbc], 0xffffffff
je 0x488f23
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x648ea3
mov eax, dword [ecx + 0xc0]
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
jg 0x488f20
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x488f20
mov eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Failed_to_signal_shutdown_via_inter_thread_communication_channel.
mov dword [esp + 8], 0x189a
mov dword [esp + 4], str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_daemon.c
mov dword [esp], eax
call dword [0x6ab744]
nop
lea esi, [esi]
test ecx, ecx
je 0x488fd1
xor ebx, ebx
imul edx, ebx, 0x114
add ebx, 1
add eax, edx
mov dword [esp], eax
call sym.xmrig_notls.exe_MHD_stop_daemon
cmp dword [ebp + 0x78], ebx
mov eax, dword [ebp + 0x64]
ja 0x488fb6
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x489083
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x64]
mov esi, dword [ebp + 0xb4]
test eax, eax
jne 0x488f09
mov eax, dword [ebp + 0xdc]
test al, 8
je 0x4890e0
test ah, 0x20
jne 0x489170
cmp dword [ebp + 0xbc], 0xffffffff
je 0x489053
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x648ea3
mov eax, dword [ebp + 0xc0]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
test eax, eax
jle 0x489135
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 0x7c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
jne 0x4891af
mov eax, dword [ebp + 0x7c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x4890e7
cmp esi, 0xffffffff
je 0x48909c
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
jne 0x489189
mov eax, dword [ebp + 0xec]
mov dword [esp], eax
call sub.msvcrt.dll_free
lea eax, [ebp + 0xf0]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esp], eax
call ebx
lea eax, [ebp + 0x84]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [esp + 0x30], ebp
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp sub.msvcrt.dll_free
mov eax, ebp
call fcn.00485de0
mov eax, dword [ebp + 0xbc]
cmp eax, 0xffffffff
je 0x48911e
mov dword [esp], eax
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
call ebx
sub esp, 4
test eax, eax
mov eax, dword [ebp + 0xc0]
mov dword [esp], eax
jne 0x4891d5
call ebx
sub esp, 4
test eax, eax
jne 0x4891d8
lea eax, [ebp + 0x9c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
sub esp, 4
jmp 0x488fd9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x489053
mov eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Failed_to_signal_shutdown_via_inter_thread_communication_channel
mov dword [esp + 8], 0x18c1
mov dword [esp + 4], str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_daemon.c
mov dword [esp], eax
call dword [0x6ab744]
lea esi, [esi]
mov eax, ebp
call fcn.00484c70
test byte [ebp + 0xdc], 8
je 0x4890e7
jmp 0x489018
mov eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Close_socket_failed._n
mov dword [esp + 8], 0x18f3
mov dword [esp + 4], str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_daemon.c
mov dword [esp], eax
call dword [0x6ab744]
mov eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Failed_to_join_a_thread_n
mov dword [esp + 8], 0x18d3
mov dword [esp + 4], str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_daemon.c
mov dword [esp], eax
call dword [0x6ab744]
call ebx
push edx
mov eax, dword [0x6ab740]
mov dword [esp + 0xc], str.Failed_to_destroy_ITC._n
mov dword [esp + 8], 0x18de
mov dword [esp + 4], str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_daemon.c
mov dword [esp], eax
call dword [0x6ab744]
nop