Function at 0x140058950
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1400ec080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rcx
mov qword [rbp - 0x19], rcx
xor r13d, r13d
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov ecx, 0x218
call fcn.140081664
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rdi], rax
lea rcx, [rdi + 0x10]
mov dword [rcx], r13d
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], r13
lea edx, [r13 + 2]
call fcn.1400801b4
nop
lea rbx, [rdi + 0x60]
mov qword [rbp - 0x29], rbx
mov qword [rbx], r13
mov qword [rbx + 8], r13
lea ecx, [r13 + 0x48]
call fcn.140081664
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
lea rsi, [rdi + 0x70]
mov qword [rbp - 0x29], rsi
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 7
mov word [rsi], r13w
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x30], r13
mov qword [rsi + 0x38], 7
mov word [rsi + 0x20], r13w
lea rbx, [rsi + 0x40]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
lea rax, [rsi + 0x68]
mov qword [rbp - 0x21], rax
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
lea rcx, [rax + 0x18]
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], r13
xor r8d, r8d
lea rdx, [0x1400cba78]
call fcn.140009680
nop
mov qword [0x1400efec8], rsi
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140058a99
mov rax, qword [rbx]
mov qword [rbx + 0x10], r13
mov word [rax], r13w
cmp rsi, rbx
je 0x140058abf
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x140058ab4
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call fcn.140022f40
mov dword [rsi + 0x60], r13d
mov qword [rsi + 0xb0], r13
mov byte [rsi + 0xa8], 0
mov qword [rsi + 0xa0], r13
lea r14, [rdi + 0x128]
mov qword [rbp - 0x29], r14
mov qword [r14], 0x1000
mov qword [r14 + 8], r13
mov qword [r14 + 0x10], r13
mov dword [r14 + 0x18], r13d
mov byte [r14 + 0x1c], 0
lea rcx, [r14 + 0x20]
mov dword [rcx], r13d
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], r13
mov edx, 2
call fcn.1400801b4
nop
lea rbx, [r14 + 0x70]
mov qword [rbp - 0x21], rbx
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov ecx, 0x90
call fcn.140081664
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [r14 + 0x88], r13
mov byte [r14 + 0x80], 0
mov qword [0x1400f0a48], r14
mov qword [rdi + 0x220], r13
mov dword [rdi + 0x1dc], 0x4cbebc20
mov dword [rdi + 0x1cc], 0x4cbebc20
mov dword [rdi + 0x1c8], 0x4cbebc20
mov dword [rdi + 0x1c4], 0x4cbebc20
mov dword [rdi + 0x1c0], 0x4cbebc20
mov dword [rdi + 0x1bc], 0x4cbebc20
mov dword [rdi + 0x1b8], 0x4cbebc20
mov dword [rdi + 0x1d8], 0x4cbebc20
mov dword [rdi + 0x1d4], 0x4cbebc20
mov dword [rdi + 0x1d0], 0x4cbebc20
mov qword [rdi + 0x1f8], r13
mov qword [rdi + 0x1f0], r13
mov qword [rdi + 0x1e8], r13
mov qword [rdi + 0x1e0], r13
mov qword [rdi + 0x218], r13
mov qword [rdi + 0x210], r13
mov qword [rdi + 0x208], r13
mov qword [rdi + 0x200], r13
mov dword [rdi + 0x228], 0x60
mov dword [rdi + 0x22c], 0x61
mov dword [rdi + 0x230], 0x62
mov dword [rdi + 0x234], 0x63
mov dword [rdi + 0x238], 0x64
mov dword [rdi + 0x23c], 0x65
mov dword [rdi + 0x240], 0x66
mov dword [rdi + 0x244], 0x67
mov dword [rdi + 0x248], 0x68
mov dword [rdi + 0x24c], 0x69
mov dword [rdi + 0x250], 0x6e
mov dword [rdi + 0x254], 0x6b
mov dword [rdi + 0x258], 0x6d
mov dword [rdi + 0x25c], 0x6f
mov dword [rdi + 0x260], 0x6a
lea rbx, [rdi + 0x268]
mov qword [rbp - 0x29], rbx
mov rcx, rbx
call fcn.14005fce0
nop
lea rax, vtable.TrSpeedHack.0
mov qword [rbx], rax
lea rcx, [rbx + 0x70]
cmp qword [rcx + 0x18], 0x13
jb 0x140058cf4
mov rbx, qword [rcx]
mov qword [rcx + 0x10], SafeArrayUnaccessData
mov r8d, 0x26
lea rdx, [0x1400d1710]
mov rcx, rbx
call fcn.1400a5bc0
mov word [rbx + 0x26], r13w
jmp 0x140058d06
lea r9, [0x1400d1710]
mov edx, SafeArrayUnaccessData
call fcn.140026630
nop
mov word [rdi + 0x310], 1
mov qword [rdi + 0x318], r13
mov dword [rdi + 0x320], 0xffffffff
xorps xmm0, xmm0
movups xmmword [rdi + 0x328], xmm0
mov qword [rdi + 0x338], r13
mov qword [rdi + 0x340], 7
mov word [rdi + 0x328], r13w
movups xmmword [rdi + 0x348], xmm0
mov qword [rdi + 0x358], r13
mov qword [rdi + 0x360], 7
mov word [rdi + 0x348], r13w
movups xmmword [rdi + 0x368], xmm0
mov qword [rdi + 0x378], r13
mov qword [rdi + 0x380], 7
mov word [rdi + 0x368], r13w
movups xmmword [rdi + 0x388], xmm0
mov qword [rdi + 0x398], r13
mov qword [rdi + 0x3a0], 7
mov word [rdi + 0x388], r13w
movups xmmword [rdi + 0x3a8], xmm0
mov qword [rdi + 0x3b8], r13
mov qword [rdi + 0x3c0], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rdi + 0x3a8], 0
mov qword [0x1400efec0], rdi
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
mov ecx, 0x20
call fcn.140081664
mov rdx, rax
mov qword [rbp + 0xf], rax
movdqa xmm0, xmmword [reloc.OLEAUT32.dll_SafeArrayUnaccessData]
movdqu xmmword [rbp + 0x1f], xmm0
movups xmm1, xmmword [str.gamedll_ph_x64_rwdi.dll]
movups xmmword [rax], xmm1
mov eax, dword [0x1400db3a8]
mov dword [rdx + 0x10], eax
movzx eax, word [0x1400db3ac]
mov word [rdx + 0x14], ax
movzx eax, byte [0x1400db3ae]
mov byte [rdx + 0x16], al
mov byte [rdx + 0x17], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r13
mov qword [rbp + 7], r13
mov ecx, 0x20
call fcn.140081664
mov rcx, rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 1], 0x1b
mov qword [rbp + 7], 0x1f
movups xmm0, xmmword [str.DyingLightGame_x64_rwdi.exe]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1400db388]
movsd qword [rax + 0x10], xmm0
movzx eax, word [0x1400db390]
mov word [rcx + 0x18], ax
movzx eax, byte [0x1400db392]
mov byte [rcx + 0x1a], al
mov byte [rcx + 0x1b], 0
lea r8, [rbp + 0xf]
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140059fd0
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x140058ed0
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058ecb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140059006
call fcn.140081630
mov qword [rbp - 0x21], r13
mov rbx, qword [0x1400efd48]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x21]
mov edx, 0x28
call rbx
test eax, eax
je 0x140058f53
mov rax, qword [0x1400efd50]
lea r8, [rbp - 0x29]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call rax
test eax, eax
je 0x140058f49
mov dword [rbp - 0x11], 1
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0xd], rax
mov dword [rbp - 5], 2
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9d, 0x10
lea r8, [rbp - 0x11]
xor edx, edx
mov rcx, qword [rbp - 0x21]
call qword [0x1400efd58]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rdi + 0x318], rax
lea rcx, [rdi + 0x388]
cmp qword [rcx + 0x18], 7
jb 0x140058f9a
mov rbx, rcx
jbe 0x140058f76
mov rbx, qword [rcx]
mov qword [rcx + 0x10], 7
mov r8d, SafeArrayDestroy
lea rdx, str.NOT_SET
mov rcx, rbx
call fcn.1400a5bc0
mov word [rbx + 0xe], r13w
jmp 0x140058fab
lea r9, str.NOT_SET
mov edx, 7
call fcn.140026630
lea r8, [rdi + 0x348]
lea rdx, [rdi + 0x328]
mov rcx, rsi
call fcn.14005d890
mov qword [rdi + 0x1b0], rsi
mov qword [rdi + 0x220], r14
mov qword [rdi + 0x270], r14
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140081610
lea r11, [rsp + 0x90]
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
call fcn.140088544
nop
int3