Function at 0x140010728
Capabilities:
Start http server

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x130
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r14, rcx
lea rdi, [0x14014dd40]
mov esi, 1
lea r13, [0x14011b7b0]
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x14001079a
test byte [rcx + 0x1c], sil
je 0x14001079a
mov edx, reloc.OLEAUT32.dll_RegisterTypeLib
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140003614
lea rax, [0x1401157b8]
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x68], r15b
lea r12d, [r15 + 2]
mov dword [rsp + 0x6c], r12d
lea rax, [0x140115800]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
mov dword [rbp - 0x78], r15d
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x40], r15
lea rdx, [rsp + 0x40]
lea rcx, str.S_1_5_80_2375682873_768044350_3534595160_1005545032_2873800392
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
mov r8d, eax
mov ecx, eax
neg ecx
sbb esi, esi
not esi
mov eax, 0x538
and esi, eax
lea r9d, [r15 + 5]
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x140010876
test byte [rcx + 0x1c], r12b
je 0x140010876
movzx edx, byte [rcx + 0x19]
mov eax, r12d
test esi, esi
cmove eax, r9d
cmp edx, eax
jl 0x140010876
mov edx, reloc.OLEAUT32.dll_QueryPathOfRegTypeLib
mov dword [rsp + 0x20], r8d
mov r9d, esi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.14000574c
mov edi, 0xc00d37e3
test esi, esi
jne 0x140010abf
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.1400092d8
nop
mov r9b, 3
mov r8d, 0xf003f
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140009964
movzx ebx, al
lea rcx, [rbp - 0x60]
call fcn.1400093d4
mov eax, ebx
neg eax
sbb esi, esi
not esi
and esi, 0x538
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x14001090a
test byte [rcx + 0x1c], r12b
je 0x14001090a
movzx edx, byte [rcx + 0x19]
mov eax, r12d
test esi, esi
mov r8d, 5
cmove eax, r8d
cmp edx, eax
jl 0x14001090a
mov edx, ConnectToConnectionPoint
mov dword [rsp + 0x20], ebx
mov r9d, esi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.14000574c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x40], r15
mov edi, 0xc00d37e3
test esi, esi
jne 0x140010abf
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call fcn.14000a38c
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.14000a2f8
test al, al
mov eax, 0x538
cmove esi, eax
mov rcx, qword [0x14014dd40]
lea rbx, [0x14014dd40]
cmp rcx, rbx
je 0x140010993
test byte [rcx + 0x1c], r12b
je 0x140010993
movzx edx, byte [rcx + 0x19]
mov eax, r12d
test esi, esi
mov r8d, 5
cmove eax, r8d
cmp edx, eax
jl 0x140010993
mov edx, ConnectToConnectionPoint
mov r9d, esi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
test esi, esi
jne 0x140010abf
xor r8d, r8d
mov edx, r12d
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.HTTPAPI.dll_HttpInitialize]
mov esi, eax
mov rcx, qword [0x14014dd40]
cmp rcx, rbx
je 0x1400109ea
test byte [rcx + 0x1c], r12b
je 0x1400109ea
movzx r8d, byte [rcx + 0x19]
mov edx, r12d
test eax, eax
mov eax, 5
cmove edx, eax
cmp r8d, edx
jl 0x1400109ea
mov edx, ConnectToConnectionPoint
mov r9d, esi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov edi, 0xc00d37e4
test esi, esi
jne 0x140010abf
mov rbx, qword [rsp + 0x30]
lea edi, [rsi + 1]
mov ecx, edi
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x140010a1c
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140005158
mov rbx, qword [rsp + 0x30]
mov rdx, rbx
lea rcx, str.http:__:10243_WMPNSSv4_
call fcn.14001052c
test eax, eax
jne 0x140010a5b
mov ecx, edi
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x140010a4c
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140005158
mov rbx, qword [rsp + 0x30]
mov rdx, rbx
lea rcx, str.https:__:10245_WMPNSSv4_
call fcn.14001052c
xor edx, edx
mov ecx, r12d
call qword [sym.imp.HTTPAPI.dll_HttpTerminate]
mov esi, eax
mov r10, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp r10, rax
je 0x140010ab2
test byte [r10 + 0x1c], r12b
je 0x140010ab2
movzx edx, byte [r10 + 0x19]
mov eax, r12d
test esi, esi
mov ecx, 5
cmove eax, ecx
cmp edx, eax
jl 0x140010ab2
mov edx, ConnectToConnectionPoint
mov r9d, esi
mov r8, r13
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
mov r10, qword [0x14014dd40]
mov edi, 0xc00d37e6
test esi, esi
je 0x140010b98
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rsp + 0x38], rax
mov r8d, esi
lea rdx, [0x14011a3c0]
lea rcx, [rsp + 0x38]
call fcn.14000916c
mov edx, 1
mov qword [rsp + 0x28], r15
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rbx
mov r9, qword [r14 + 0x28]
mov r8d, edi
mov rcx, r14
call fcn.140005ed8
mov r8d, esi
mov edx, edi
call fcn.140015ec8
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x140010b5f
test byte [rcx + 0x1c], r12b
je 0x140010b5f
cmp byte [rcx + 0x19], r12b
jb 0x140010b5f
mov edx, reloc.SHLWAPI.dll_ConnectToConnectionPoint
mov dword [rsp + 0x20], esi
mov r9, qword [r14 + 0x28]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400056b0
nop
lea r14, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x140010b8c
mov rdi, qword [r14]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, r14
mov rcx, rdi
call rbx
mov r10, qword [0x14014dd40]
mov rbx, qword [rsp + 0x30]
lea rax, [0x14014dd40]
cmp r10, rax
je 0x140010bd5
test byte [r10 + 0x1c], 1
je 0x140010bd5
movzx edx, byte [r10 + 0x19]
mov eax, esi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x140010bd5
mov edx, 0xa9
mov r9d, esi
mov r8, r13
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
nop
lea r14, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x140010c03
mov rdi, qword [r14]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, r14
mov rcx, rdi
call rbx
nop
lea rcx, [rsp + 0x58]
call fcn.1400098d8
nop
lea rax, [0x1401157b8]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
call fcn.14000a7e0
mov eax, esi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140106ed0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret