Function at 0x475cb0
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [rcx + 0x194]
mov rsi, rcx
mov edi, eax
mov r14d, eax
and edi, 4
and r14d, 0x8000
test ah, 0x20
mov dword [rsp + 0x2c], edi
jne 0x476094
lea rdi, [rsi + 0x130]
mov rbp, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
call rbp
test r14d, r14d
je 0x475d70
mov rbx, qword [rsi + 0x28]
test rbx, rbx
je 0x476062
mov rax, qword [rbx + 0x158]
test rax, rax
je 0x4760b7
lea r12, str.Initiated_daemon_shutdown_while__upgraded__connection_was_not_closed._n
jmp 0x475d52
mov byte [rax + 8], 1
mov byte [rbx + 0x168], 1
mov byte [rsi + 0x17b], 1
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x476062
mov rax, qword [rbx + 0x158]
test rax, rax
je 0x4760b7
movzx edx, byte [rax + 8]
test dl, dl
jne 0x475d23
mov rdx, r12
mov rcx, rsi
call fcn.0047b4a0
mov rax, qword [rbx + 0x158]
jmp 0x475d23
cmp qword [rsi + 0x20], 0
jne 0x47611a
mov r15, qword [rsi + 0x18]
test r15, r15
je 0x4760a5
mov rbx, qword [sym.imp.WS2_32.dll_shutdown]
mov r12, qword [sym.imp.WS2_32.dll_send]
lea r13, [0x004cdd8f]
nop dword [rax]
mov rcx, qword [r15 + 0x118]
mov edx, 2
call rbx
test byte [rsi + 0x194], 4
je 0x475de0
cmp qword [rsi + 0x168], 0xffffffffffffffff
je 0x475de0
xor r9d, r9d
mov rcx, qword [rsi + 0x170]
mov r8d, 1
mov rdx, r13
call r12
test eax, eax
jle 0x476030
nop
mov r15, qword [r15 + 8]
test r15, r15
jne 0x475da0
mov eax, dword [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x475e6f
mov rbx, qword [rsi + 0x18]
mov r12, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x475e6f
mov r15d, 0xffffffff
mov r13, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x475e29
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x475e6f
cmp byte [rbx + 0x122], 0
jne 0x475e20
mov rcx, rdi
call r12
mov rcx, qword [rbx + 0xa0]
mov edx, r15d
call r13
test eax, eax
jne 0x4760f9
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call rbp
mov byte [rbx + 0x122], 1
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x475e29
mov rcx, rdi
call r12
test r14d, r14d
jne 0x476080
nop
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x475f82
test byte [rsi + 0x194], 4
je 0x475ea3
cmp byte [rbx + 0x122], 0
je 0x4760d8
mov rdi, qword [rbx + 0x20]
test byte [rdi + 0x194], 4
jne 0x475fa0
lea r13, [rdi + 0x130]
mov edx, 3
mov rcx, rbx
call fcn.004709f0
mov rcx, r13
call rbp
mov rax, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x10]
mov rax, qword [rax + 0x188]
cmp qword [rbx + 0x108], rax
mov rax, qword [rbx + 0x18]
je 0x475fb0
test rax, rax
je 0x476010
mov qword [rax + 0x10], rdx
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
test rax, rax
je 0x476000
mov qword [rax + 0x18], rdx
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx]
test rax, rax
je 0x475ff0
mov qword [rax], rdx
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
test rax, rax
je 0x475fe0
mov qword [rax + 8], rdx
mov qword [rbx], 0
mov qword [rbx + 8], 0
mov rax, qword [rdi + 0x30]
mov qword [rbx], rax
cmp qword [rdi + 0x38], 0
je 0x475fd3
mov rax, qword [rdi + 0x30]
mov qword [rax + 8], rbx
mov qword [rdi + 0x30], rbx
mov rcx, r13
call r12
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x475e8d
mov rcx, rsi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.00475aa0
mov rcx, rbx
call fcn.004709b0
jmp 0x475e80
test rax, rax
je 0x476020
mov qword [rax + 0x10], rdx
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
test rax, rax
jne 0x475f0b
mov qword [rdi + 0x48], rdx
jmp 0x475f0f
mov qword [rdi + 0x38], rbx
jmp 0x475f6b
mov qword [rdi + 0x18], rdx
jmp 0x475f46
mov qword [rdi + 0x10], rdx
jmp 0x475f32
mov qword [rdi + 0x58], rdx
jmp 0x475f0f
mov qword [rdi + 0x50], rdx
jmp 0x475efa
mov qword [rdi + 0x40], rdx
jmp 0x475fb9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x475de0
lea r9, str.Failed_to_signal_shutdown_via_inter_thread_communication_channel
mov r8d, 0x1846
lea rdx, str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_daemon.c
mov rcx, qword [0x004e5ae0]
call qword [0x004e5ae8]
mov r15, qword [rsi + 0x18]
test r15, r15
jne 0x475d88
mov rcx, rdi
mov r12, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call r12
nop dword [rax]
mov byte [rsi + 0x17b], 1
mov rcx, rsi
call fcn.00474af0
jmp 0x475e80
mov byte [rcx + 0x17b], 1
call fcn.00474af0
jmp 0x475ce5
mov rcx, rdi
mov r12, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call r12
jmp 0x475e80
lea r9, str.MHD_stop_daemon___called_while_we_have_suspended_connections._n
mov r8d, 0x181e
lea rdx, str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_daemon.c
mov rcx, qword [0x004e5ae0]
call qword [0x004e5ae8]
lea r9, str.Failed_to_join_a_thread_n
mov r8d, 0x1872
lea rdx, str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_daemon.c
mov rcx, qword [0x004e5ae0]
call qword [0x004e5ae8]
lea r9, str.Failed_to_join_a_thread_n
mov r8d, 0x1854
lea rdx, str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_daemon.c
mov rcx, qword [0x004e5ae0]
call qword [0x004e5ae8]
lea r9, str.MHD_stop_daemon___called_while_we_have_suspended_connections._n
mov r8d, 0x183d
lea rdx, str.T:_Bin_prep_mhd_src_libmicrohttpd_0.9.58_src_microhttpd_daemon.c
mov rcx, qword [0x004e5ae0]
call qword [0x004e5ae8]
nop
nop dword [rax]
jmp fcn.0048c7a0