Function at 0x140124da4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x170
mov qword [rbp], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rdi, r8
mov rbx, rcx
lea rax, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rax
je 0x140124e0e
test byte [rcx + 0x1c], 1
je 0x140124e0e
cmp byte [rcx + 0x19], 4
jb 0x140124e0e
mov edx, 0xa
lea r8, [0x140013398]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
xor ecx, ecx
mov esi, ecx
mov qword [rbp - 0x80], rcx
mov r15d, ecx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x30], rcx
mov r12d, ecx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x50], rcx
mov r14d, ecx
mov qword [rbp - 0x58], rcx
mov r13d, ecx
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x68], rcx
cmp qword [rbx], rcx
je 0x140124e5d
lea r8, [0x140012a58]
mov edx, 0xc1
lea rcx, [0x140012a90]
call fcn.1400a8be8
xor ecx, ecx
cmp qword [rbx + 8], rcx
je 0x140124e7b
lea r8, [0x140012a70]
mov edx, 0xc2
lea rcx, [0x140012a90]
call fcn.1400a8be8
mov ecx, reloc.ADVAPI32.dll_UnregisterTraceGuids
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbx, rax
mov qword [rbp - 0x28], rax
test rax, rax
jne 0x140124ea3
mov ebx, 0x8007000e
lea rdi, [0x14017d3a8]
jmp 0x140125816
xor edx, edx
lea r8d, [rdx + 0x38]
mov rcx, rax
call sub.msvcrt.dll_memset
mov r9d, 1
lea r8, [0x140012ae8]
lea edx, [r9 + 0x19]
mov rcx, rbx
call fcn.1400284c0
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x140125797
or rax, 0xffffffffffffffff
mov rcx, qword [rbp - 0x28]
xor ebx, ebx
inc rax
cmp word [rcx + rax*2], bx
jne 0x140124ee0
mov r8d, eax
mov rdx, rcx
lea rcx, [rbp - 0x68]
call fcn.140081c3c
test eax, eax
jns 0x140124f04
mov ecx, eax
call fcn.14001ad98
int3
mov r8d, reloc.ADVAPI32.dll_TraceMessage
lea rdx, [0x140012ad0]
lea rcx, [rbp - 0x68]
call fcn.140081c3c
test eax, eax
jns 0x140124f26
mov ecx, eax
call fcn.14001ad98
int3
mov eax, ebx
mov dword [rbp - 0x60], ebx
lea r12, [0x14000f268]
mov ecx, dword [rbp + 0x58]
test ecx, ecx
je 0x1401252b2
add rdi, 0x18
cmp byte [rdi + 0x3c], bl
je 0x140125228
test rsi, rsi
je 0x140124f5c
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x80], rbx
test r15, r15
je 0x140124f6f
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r15, rbx
jmp 0x140124f73
mov r15, qword [rbp - 0x78]
lea rcx, [rdi - 0x18]
xor r9d, r9d
lea r8, [rbp - 0x80]
mov edx, dword [rdi + 0x40]
call fcn.1400ac7e4
mov ebx, eax
xor r12d, r12d
test eax, eax
js 0x140125283
mov rax, qword [rdi - 8]
or r8, 0xffffffffffffffff
test rax, rax
je 0x140124faf
mov rdx, r8
inc rdx
cmp word [rax + rdx*2], r12w
jne 0x140124fa3
jmp 0x140124fb2
mov rdx, r12
mov rax, qword [rdi]
test rax, rax
je 0x140124fc9
mov rcx, r8
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x140124fbd
jmp 0x140124fcc
mov rcx, r12
mov rax, r8
mov r14, qword [rbp - 0x80]
inc rax
cmp word [r14 + rax*2], r12w
jne 0x140124fd3
add eax, edx
add ecx, 0x63
add eax, ecx
mov esi, eax
add rax, rax
mov ecx, reloc.ADVAPI32.dll_TraceEvent
cmp rax, rcx
ja 0x1401252a0
mov ebx, eax
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r15, rax
mov qword [rbp - 0x78], rax
test rax, rax
je 0x14012528f
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea rdx, [0x1400056c0]
mov rcx, rdx
cmp qword [rdi], r12
cmovne rcx, qword [rdi]
mov rax, rdx
cmp qword [rdi - 8], r12
cmovne rax, qword [rdi - 8]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, [0x140012bc0]
mov edx, esi
mov rcx, r15
call fcn.1400284c0
mov ebx, eax
test eax, eax
js 0x140125283
or rax, 0xffffffffffffffff
xor ebx, ebx
inc rax
cmp word [r15 + rax*2], bx
jne 0x140125073
mov r8d, eax
mov rdx, r15
lea rcx, [rbp - 0x68]
call fcn.140081c3c
test eax, eax
js 0x14012527b
test byte [rdi + 0x40], 1
jne 0x140125204
cmp dword [rdi + 0x50], ebx
jbe 0x140125204
mov rsi, rbx
mov r15, qword [rbp - 0x50]
mov r14, qword [rdi + 0x58]
test r15, r15
je 0x1401250c4
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x50], rbx
test r13, r13
je 0x1401250d6
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbp - 0x48], rbx
lea rdx, [rbp - 0x48]
mov rcx, qword [rsi + r14]
call fcn.1400a97c0
mov ebx, eax
xor ecx, ecx
test eax, eax
js 0x140125247
mov rax, qword [rsi + r14 + 8]
or r8, 0xffffffffffffffff
mov rdx, r8
inc rdx
cmp word [rax + rdx*2], cx
jne 0x1401250fb
mov rax, r8
mov r13, qword [rbp - 0x48]
inc rax
cmp word [r13 + rax*2], cx
jne 0x14012510b
add edx, eax
mov al, byte [rsi + r14 + 0x10]
neg al
sbb ecx, ecx
add ecx, 5
add edx, ecx
mov al, byte [rsi + r14 + 0x11]
neg al
sbb ecx, ecx
lea eax, [rcx + 0x56]
add eax, edx
mov r15d, eax
add rax, rax
mov ecx, reloc.ADVAPI32.dll_TraceEvent
cmp rax, rcx
ja 0x14012525a
mov ebx, eax
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rbp - 0x50], rax
xor ecx, ecx
test rax, rax
je 0x140125242
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [0x14000f268]
mov rcx, rax
xor edx, edx
cmp byte [rsi + r14 + 0x11], dl
lea r8, [0x14000f258]
cmovne rcx, r8
cmp byte [rsi + r14 + 0x10], dl
cmovne rax, r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsi + r14 + 8]
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, [0x140012b20]
mov edx, r15d
mov r15, qword [rbp - 0x50]
mov rcx, r15
call fcn.1400284c0
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x1401256ec
or rax, 0xffffffffffffffff
xor ebx, ebx
inc rax
cmp word [r15 + rax*2], bx
jne 0x1401251d2
mov r8d, eax
mov rdx, r15
lea rcx, [rbp - 0x68]
call fcn.140081c3c
test eax, eax
js 0x14012523a
inc r12d
add rsi, 0x18
cmp r12d, dword [rdi + 0x50]
jb 0x1401250ae
mov r15, qword [rbp - 0x78]
mov r8d, 9
lea rdx, [0x140012ca0]
lea rcx, [rbp - 0x68]
call fcn.140081c3c
test eax, eax
js 0x140125273
mov rsi, qword [rbp - 0x80]
mov eax, dword [rbp - 0x60]
mov ecx, dword [rbp + 0x58]
inc eax
mov dword [rbp - 0x60], eax
sub rdi, 0xffffffffffffff80
cmp eax, ecx
jae 0x1401252a7
jmp 0x140124f41
mov ecx, eax
call fcn.14001ad98
int3
mov ebx, 0x8007000e
mov rsi, qword [rbp - 0x80]
mov r15, qword [rbp - 0x78]
mov r14, rcx
mov r12, rcx
jmp 0x14012579a
mov ebx, 0x80070216
mov rsi, qword [rbp - 0x80]
mov r15, qword [rbp - 0x78]
mov r14, qword [rbp - 0x58]
mov r12, r14
jmp 0x14012579a
mov ecx, eax
call fcn.14001ad98
int3
mov ecx, eax
call fcn.14001ad98
int3
mov rsi, qword [rbp - 0x80]
mov r14, r12
jmp 0x14012579a
mov ebx, 0x8007000e
mov rsi, qword [rbp - 0x80]
mov r14, r12
jmp 0x140125797
mov ebx, 0x80070216
jmp 0x140125283
mov r14, qword [rbp - 0x58]
lea r12, [0x14000f268]
mov r8d, reloc.ADVAPI32.dll_GetTraceLoggerHandle
lea rdx, [0x140012c80]
lea rcx, [rbp - 0x68]
call fcn.140081c3c
test eax, eax
jns 0x1401252d4
mov ecx, eax
call fcn.14001ad98
int3
mov dil, byte [rbp + 0x78]
mov al, dil
neg al
sbb rcx, rcx
lea rax, [rcx + 0x29]
mov esi, eax
add rax, rax
mov ecx, reloc.ADVAPI32.dll_TraceEvent
cmp rax, rcx
jbe 0x140125309
mov ebx, 0x80070216
mov rsi, qword [rbp - 0x80]
mov r15, qword [rbp - 0x78]
mov r12, qword [rbp - 0x70]
jmp 0x14012579a
mov ebx, eax
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r15, rax
mov qword [rbp - 0x30], rax
xor r13d, r13d
test rax, rax
jne 0x140125337
mov ebx, 0x8007000e
mov rsi, qword [rbp - 0x80]
mov r15, qword [rbp - 0x78]
mov r12, r13
jmp 0x14012579a
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r9, r12
test dil, dil
lea rax, [0x14000f258]
cmovne r9, rax
lea r8, [0x140012d00]
mov rdx, rsi
mov rcx, r15
call fcn.1400284c0
mov ebx, eax
xor esi, esi
test eax, eax
js 0x140125327
or rax, 0xffffffffffffffff
inc rax
cmp word [r15 + rax*2], si
jne 0x140125373
mov r8d, eax
mov rdx, r15
lea rcx, [rbp - 0x68]
call fcn.140081c3c
test eax, eax
jns 0x140125398
mov ecx, eax
call fcn.14001ad98
int3
mov dil, byte [rbp + 0x80]
mov al, dil
neg al
sbb rcx, rcx
lea rax, [rcx + 0x29]
mov esi, eax
add rax, rax
mov ecx, reloc.ADVAPI32.dll_TraceEvent
cmp rax, rcx
jbe 0x1401253c4
mov ebx, 0x80070216
jmp 0x140125327
mov ebx, eax
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r15, rax
mov qword [rbp - 0x70], rax
test rax, rax
jne 0x1401253ef
mov ebx, 0x8007000e
mov rsi, qword [rbp - 0x80]
mov r15, qword [rbp - 0x78]
mov r12, rax
jmp 0x14012579a
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
test dil, dil
lea rax, [0x14000f258]
cmovne r12, rax
mov r9, r12
lea r8, [0x140012cc0]
mov rdx, rsi
mov rcx, r15
call fcn.1400284c0
mov ebx, eax
xor esi, esi
test eax, eax
js 0x1401252f8
or rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [r15 + rax*2], si
jne 0x140125432
mov r8d, eax
mov rdx, r15
lea rcx, [rbp - 0x68]
call fcn.140081c3c
test eax, eax
jns 0x140125457
mov ecx, eax
call fcn.14001ad98
int3
mov r8d, CoRevokeClassObject
lea rdx, [0x140012ec8]
lea rcx, [rbp - 0x68]
call fcn.140081c3c
test eax, eax
jns 0x140125479
mov ecx, eax
call fcn.14001ad98
int3
mov dword [rbp - 0x60], esi
cmp dword [rbp + 0x68], esi
jbe 0x1401256fe
mov r13, qword [rbp + 0x70]
add r13, 8
mov qword [rbp - 0x38], r13
test r14, r14
je 0x1401254a2
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r14, rsi
mov rcx, qword [r13]
test rcx, rcx
je 0x1401254b9
mov rax, rbx
inc rax
cmp word [rcx + rax*2], si
jne 0x1401254ae
jmp 0x1401254bc
mov rax, rsi
lea ecx, reloc.ADVAPI32.dll_TraceEvent
mov rdx, qword [r13 - 8]
test rdx, rdx
je 0x1401254d9
mov rax, rbx
inc rax
cmp word [rdx + rax*2], si
jne 0x1401254ce
jmp 0x1401254dc
mov rax, rsi
add ecx, eax
mov rdx, qword [r13 + 0x28]
test rdx, rdx
je 0x1401254f5
mov rax, rbx
inc rax
cmp word [rdx + rax*2], si
jne 0x1401254ea
jmp 0x1401254f8
mov rax, rsi
add eax, ecx
mov qword [rbp - 0x10], rax
add rax, rax
mov ecx, reloc.ADVAPI32.dll_TraceEvent
cmp rax, rcx
ja 0x1401252f3
mov ebx, eax
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r14, rax
mov qword [rbp - 0x58], rax
test rax, rax
je 0x1401256f4
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea rcx, [0x1400056c0]
mov rax, rcx
cmp qword [r13 + 0x28], rsi
cmovne rax, qword [r13 + 0x28]
mov qword [rbp - 8], rax
mov rax, rcx
cmp qword [r13 - 8], rsi
cmovne rax, qword [r13 - 8]
mov qword [rbp - 0x20], rax
mov rax, rcx
cmp qword [r13], rsi
cmovne rax, qword [r13]
mov qword [rbp - 0x18], rax
movzx eax, byte [r13 + 0x27]
movzx ecx, byte [r13 + 0x26]
movzx edx, byte [r13 + 0x25]
movzx r8d, byte [r13 + 0x24]
movzx r9d, byte [r13 + 0x23]
movzx r10d, byte [r13 + 0x22]
movzx r11d, byte [r13 + 0x21]
movzx ebx, byte [r13 + 0x20]
movzx edi, word [r13 + 0x1e]
movzx esi, word [r13 + 0x1c]
movzx r14d, byte [r13 + 0x17]
mov dword [rbp - 0x3c], r14d
movzx r15d, byte [r13 + 0x16]
movzx r12d, byte [r13 + 0x15]
movzx r13d, byte [r13 + 0x14]
mov r14, qword [rbp - 8]
mov qword [rsp + 0xd8], r14
mov r14, qword [rbp - 0x20]
mov qword [rsp + 0xd0], r14
mov r14, qword [rbp - 0x18]
mov qword [rsp + 0xc8], r14
mov dword [rsp + 0xc0], eax
mov dword [rsp + 0xb8], ecx
mov dword [rsp + 0xb0], edx
mov dword [rsp + 0xa8], r8d
mov dword [rsp + 0xa0], r9d
mov dword [rsp + 0x98], r10d
mov dword [rsp + 0x90], r11d
mov dword [rsp + 0x88], ebx
mov dword [rsp + 0x80], edi
mov dword [rsp + 0x78], esi
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x70], eax
mov r14d, dword [rbp - 0x3c]
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x60], r15d
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x50], r13d
mov r13, qword [rbp - 0x38]
movzx eax, byte [r13 + 0x13]
mov dword [rsp + 0x48], eax
movzx eax, byte [r13 + 0x12]
mov dword [rsp + 0x40], eax
movzx eax, byte [r13 + 0x11]
mov dword [rsp + 0x38], eax
movzx eax, byte [r13 + 0x10]
mov dword [rsp + 0x30], eax
movzx eax, word [r13 + 0xe]
mov dword [rsp + 0x28], eax
movzx eax, word [r13 + 0xc]
mov dword [rsp + 0x20], eax
mov r9d, dword [r13 + 8]
lea r8, [0x140012d40]
mov rdx, qword [rbp - 0x10]
mov r14, qword [rbp - 0x58]
mov rcx, r14
call fcn.1400284c0
mov ebx, eax
xor esi, esi
test eax, eax
js 0x1401252f8
or rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [r14 + rax*2], si
jne 0x1401256ad
mov r8d, eax
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.140081c3c
test eax, eax
js 0x1401256e4
mov ecx, dword [rbp - 0x60]
inc ecx
mov dword [rbp - 0x60], ecx
add r13, 0x48
mov qword [rbp - 0x38], r13
cmp ecx, dword [rbp + 0x68]
jae 0x1401256fe
jmp 0x140125491
mov ecx, eax
call fcn.14001ad98
int3
mov r14, rax
jmp 0x1401252f8
mov ebx, 0x8007000e
jmp 0x1401252f8
mov r8d, reloc.ole32.dll_CoRevokeClassObject
lea rdx, [0x140012f10]
lea rcx, [rbp - 0x68]
call fcn.140081c3c
test eax, eax
jns 0x140125720
mov ecx, eax
call fcn.14001ad98
int3
mov r8d, reloc.ADVAPI32.dll_GetTraceEnableFlags
lea rdx, [0x140012ef0]
lea rcx, [rbp - 0x68]
call fcn.140081c3c
test eax, eax
jns 0x140125742
mov ecx, eax
call fcn.14001ad98
int3
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x14012577a
test byte [rcx + 0x1c], 1
je 0x14012577a
cmp byte [rcx + 0x19], 4
jb 0x14012577a
mov edx, reloc.ADVAPI32.dll_TraceMessage
mov r9, qword [rbp - 0x68]
lea r8, [0x140013398]
mov rcx, qword [rcx + 0x10]
call fcn.14001ec40
lea rdx, [rbp - 0x68]
mov rcx, qword [rbp + 0x50]
call fcn.140125874
mov ebx, eax
mov rsi, qword [rbp - 0x80]
mov r15, qword [rbp - 0x78]
mov r12, qword [rbp - 0x70]
jmp 0x1401257a1
mov r15, rax
lea rdi, [0x14017d3a8]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r15, r15
je 0x1401257b9
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x1401257cb
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r14, r14
je 0x1401257d9
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1401257e8
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x1401257fa
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r12, r12
je 0x140125808
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x140125816
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x140125844
test byte [rcx + 0x1c], 1
je 0x140125844
cmp byte [rcx + 0x19], 4
jb 0x140125844
mov edx, reloc.ADVAPI32.dll_GetTraceLoggerHandle
lea r8, [0x140013398]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
nop
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, ebx
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret