Function at 0x1400307b0
Capabilities:
Get token membership
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rbp + 0x240], rax
xor ebx, ebx
mov qword [rbp - 8], rbx
mov qword [rbp + 8], rbx
mov qword [rbp + 0x10], 7
mov word [rbp - 8], bx
lea r8d, [rbx + 0x20]
lea rdx, str.disable_runas_admin_check_report
lea rcx, [rbp - 8]
call fcn.14000a410
nop
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], bx
lea r8d, [rbx + 7]
lea rdx, str.general
lea rcx, [rbp - 0x68]
call fcn.14000a410
nop
lea rcx, [rsp + 0x70]
call fcn.140034160
nop
lea rdx, str.local_store.dat
lea rcx, [rsp + 0x70]
call fcn.140030640
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x40]
call fcn.140243780
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
lea r9, [rbp + 0x40]
lea r8, str.false
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, str.true
lea rcx, [rbp + 0x40]
call fcn.140253dc4
test eax, eax
sete dil
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400308da
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x14003091a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030915
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030d4f
call fcn.140240d18
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], bx
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x14003096a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030965
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030d55
call fcn.140240d18
test dil, dil
je 0x14003098e
lea r8, str.report_is_disabled
lea rdx, str.ReportStatusIfNeed
lea rcx, str.UpdateReporter
call fcn.140036e10
jmp 0x140030cea
mov dword [rbp - 0x74], 0
mov word [rbp - 0x70], 0x500
mov qword [rsp + 0x78], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp - 0x74]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x140030cea
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x140030cea
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov edx, dword [rsp + 0x60]
mov ecx, 1
test eax, eax
cmovne edx, ecx
mov dword [rsp + 0x60], edx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140030a27
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov edx, dword [rsp + 0x60]
test edx, edx
je 0x140030cea
mov edi, ebx
mov qword [rbp - 0x80], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x80]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140030a7e
mov dword [rsp + 0x64], ebx
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x64]
lea edx, [r9 + 0x10]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne edi, dword [rsp + 0x64]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140030a8d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140030cea
lea r8, str.Updater_runas_admin___
lea rdx, str.ReportStatusIfNeed
lea rcx, str.UpdateReporter
call fcn.140036e10
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], bx
mov r8d, 4
lea rdx, str.true
lea rcx, [rbp + 0x18]
call fcn.14000a410
nop
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], bx
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.updater_runas_admin
lea rcx, [rbp - 0x28]
call fcn.14000a410
nop
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], bx
mov r8d, 7
lea rdx, str.general
lea rcx, [rbp - 0x48]
call fcn.14000a410
nop
lea rcx, [rsp + 0x68]
call fcn.140034160
nop
lea rdx, str.local_store.dat
lea rcx, [rsp + 0x68]
call fcn.140030640
lea r8, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae r8, qword [rbp + 0x18]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov r9, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140030b9f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140030bdf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030bda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030d5b
call fcn.140240d18
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], bx
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140030c2f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030c2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030d61
call fcn.140240d18
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], bx
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x140030c7f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030c7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030d67
call fcn.140240d18
mov ecx, dword [0x140373148]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x14036e92c], eax
jg 0x140030d12
mov rax, qword [0x14036e8e0]
test rax, rax
jne 0x140030cd6
mov ecx, 0xb0
call fcn.1402407f4
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140030ccd
mov rcx, rax
call fcn.1400160a0
mov rbx, rax
mov qword [0x14036e8e0], rbx
jmp 0x140030cd9
mov rbx, rax
xor r8d, r8d
mov edx, dword [0x14036e928]
mov rcx, rbx
call fcn.140020630
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140240e30
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rcx, [0x14036e92c]
call fcn.140240c08
cmp dword [0x14036e92c], 0xffffffff
jne 0x140030ca2
lea rcx, [0x1402887e0]
call qword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x14036e928], eax
lea rcx, [0x14036e92c]
call fcn.140240ba8
jmp 0x140030ca2
call fcn.1402480bc
nop
call fcn.1402480bc
nop
call fcn.1402480bc
nop
call fcn.1402480bc
nop
call fcn.1402480bc
int3