Function at 0x140169130
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
movaps xmmword [rsp + 0x510], xmm6
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rbx, r8
mov r14, rdx
lea rdx, str.CBaseOSSpecTypeWin2K::PSReboot
lea rcx, [rsp + 0x50]
call fcn.14001abe0
nop
lea r15, [0x1402a8360]
lea rdi, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x1401691c4
test byte [rcx + 0x1c], 1
je 0x1401691c4
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x105
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x1401695c3
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rsi, 0xffffffffffffffff
test rbx, rbx
je 0x14016921e
cmp rbx, 0x10000
jae 0x14016920f
movzx edx, bx
lea rcx, [rsp + 0x40]
call fcn.1400041d0
jmp 0x140169231
mov rax, rsi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140169212
jmp 0x140169220
xor eax, eax
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140004e60
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.1401e7e40
lea rcx, [rsp + 0x48]
call fcn.140091e00
nop
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x1401692ae
test byte [rcx + 0x1c], 4
je 0x1401692ae
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x106
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp - 0x20]
lea rdx, str.TEMPPATH
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 - 0x22], 0x5c
je 0x140169306
lea rdx, [0x140251df8]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.InsDrv.ini
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x1f0]
lea r8, [0x140251dfc]
lea rdx, str.Version
lea rcx, str.PSRebootVersion
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [rbp + 0x1f0], 0
jne 0x140169368
lea rdx, str.2.30
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor r9d, r9d
lea r8, [rbp - 0x60]
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.140095700
mov rbx, qword [rsp + 0x40]
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x140169418
test byte [rcx + 0x1c], 4
je 0x1401693e0
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x107
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.14001d060
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x140169418
test byte [rcx + 0x1c], 4
je 0x140169418
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x108
mov qword [rsp + 0x20], r14
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x60]
call fcn.140200120
movaps xmm6, xmm0
lea rcx, [rbp + 0x1f0]
call fcn.140200120
comisd xmm0, xmm6
jb 0x1401694a5
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x140169470
test byte [rcx + 0x1c], 4
je 0x140169470
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x109
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
lea r8, [0x140255230]
lea rdx, str.PSPCLREBOOT
mov rcx, r9
call qword [case.0x1400136d6.0]
mov byte [rsp + 0x58], 1
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x1401694ed
test byte [rcx + 0x1c], 1
je 0x1401694ed
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x10a
mov dword [rsp + 0x20], 1
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
nop
lea rcx, [rsp + 0x48]
call fcn.140091f70
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14016951a
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
nop
lea rax, vtable.WppTrace.0
mov qword [rsp + 0x50], rax
cmp byte [rsp + 0x58], 0
jne 0x14016957d
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x14016957d
test byte [rcx + 0x1c], 1
je 0x14016957d
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], r8
mov r9, rdi
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x80]
call fcn.1400048a0
lea rcx, [rsp + 0x60]
call fcn.1400048a0
mov eax, 1
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0x550]
movaps xmm6, xmmword [rsp + 0x510]
add rsp, 0x520
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001470
int3