Function at 0x486430
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 0x486544
mov byte [ebp + 0xc4], 1
movzx eax, byte [ebp + 0xc5]
mov esi, 0xffffffff
test al, al
je 0x486550
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x486561
mov ecx, dword [ebp + 0x78]
test ecx, ecx
je 0x486531
xor edi, edi
mov ebx, dword [sym.imp.WS2_32.dll_send]
jmp 0x486491
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x78]
add edi, 1
cmp ecx, edi
jbe 0x486510
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 0x486483
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x54a0a3
mov eax, dword [ecx + 0xc0]
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
jg 0x486480
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x486480
mov eax, dword [0x5769c0]
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 [0x5769c4]
nop
lea esi, [esi]
test ecx, ecx
je 0x486531
xor ebx, ebx
imul edx, ebx, 0x114
add ebx, 1
add eax, edx
mov dword [esp], eax
call sym.xmrig.exe_MHD_stop_daemon
cmp dword [ebp + 0x78], ebx
mov eax, dword [ebp + 0x64]
ja 0x486516
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x4865e3
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 0x486469
mov eax, dword [ebp + 0xdc]
test al, 8
je 0x486640
test ah, 0x20
jne 0x4866d0
cmp dword [ebp + 0xbc], 0xffffffff
je 0x4865b3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x54a0a3
mov eax, dword [ebp + 0xc0]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
test eax, eax
jle 0x486695
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 0x48670f
mov eax, dword [ebp + 0x7c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x486647
cmp esi, 0xffffffff
je 0x4865fc
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
test eax, eax
jne 0x4866e9
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.00483340
mov eax, dword [ebp + 0xbc]
cmp eax, 0xffffffff
je 0x48667e
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 0x486735
call ebx
sub esp, 4
test eax, eax
jne 0x486738
lea eax, [ebp + 0x9c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
sub esp, 4
jmp 0x486539
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4865b3
mov eax, dword [0x5769c0]
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 [0x5769c4]
lea esi, [esi]
mov eax, ebp
call fcn.004821d0
test byte [ebp + 0xdc], 8
je 0x486647
jmp 0x486578
mov eax, dword [0x5769c0]
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 [0x5769c4]
mov eax, dword [0x5769c0]
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 [0x5769c4]
call ebx
push edx
mov eax, dword [0x5769c0]
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 [0x5769c4]
nop