Function at 0x101a45d
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0x10]
push esi
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
push edi
mov dword [ecx], eax
lea ecx, [ebp - 0x24]
push ecx
push 0x20019
push eax
mov esi, 0x1003950
push esi
push dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x101a4e0
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x101a4d9
test dword [eax + 0x9c], 0x800
je 0x101a4d9
cmp byte [eax + 0x99], 2
jb 0x101a4d9
push edi
push esi
push 0x1001b34
push 0x2a
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010168e2
mov eax, edi
jmp 0x101ab32
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push 0x1001800
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x101a545
mov ecx, dword [0x102e010]
cmp ecx, 0x102e010
je 0x101a53b
test dword [ecx + 0x9c], 0x800
je 0x101a53b
cmp byte [ecx + 0x99], 2
jb 0x101a53b
push eax
push 0x1001b34
push 0x2b
push dword [ecx + 0x94]
push dword [ecx + 0x90]
call fcn.010164b8
mov esi, 0x64a
jmp 0x101aaf9
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
push esi
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1003930
push dword [ebp - 0x24]
call fcn.010199bf
test eax, eax
je 0x101a568
and dword [esi], 0
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
mov esi, 0x1003918
push esi
push dword [ebp - 0x24]
call fcn.010199bf
mov dword [ebp + 0x14], eax
test eax, eax
je 0x101a5d7
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x101a63e
test dword [eax + 0x9c], 0x800
je 0x101a63e
cmp byte [eax + 0x99], 2
jb 0x101a63e
push dword [ebp + 0x14]
push esi
push 0x1001b34
push 0x2c
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010168e2
jmp 0x101a63e
mov ecx, dword [ebp - 0x1c]
xor edi, edi
cmp word [ecx], di
je 0x101a605
mov eax, ecx
inc edi
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x101a5e7
sub eax, esi
sar eax, 1
lea ecx, [ecx + eax*2 + 2]
cmp word [ecx], dx
jne 0x101a5e1
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x101a648
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x101a63e
test dword [eax + 0x9c], 0x800
je 0x101a63e
cmp byte [eax + 0x99], 2
jb 0x101a63e
push 0x1001b34
push 0x2d
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010165d0
mov esi, 0x64a
jmp 0x101aaf0
xor ecx, ecx
push 0x1c
pop edx
mov eax, edi
mul edx
seto cl
mov dword [ebx], edi
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0102af97
pop ecx
test eax, eax
je 0x101a688
push 0x1017d9d
push edi
lea esi, [eax + 4]
push 0x1c
push esi
mov dword [eax], edi
call fcn.0101842c
mov eax, esi
jmp 0x101a68a
xor eax, eax
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ecx], eax
cmp eax, esi
jne 0x101a69d
push 0xe
pop esi
jmp 0x101aaf0
mov ecx, edi
imul ecx, ecx, 0x1c
push ecx
push esi
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0x20], esi
cmp edi, esi
jbe 0x101aa9a
mov dword [ebp - 8], esi
mov edi, 0x1001b34
cmp word [ebx], 0
mov esi, 0x102e010
je 0x101aa9a
mov eax, dword [0x102e01c]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x101a739
mov ecx, dword [ebp - 0xc]
push ebx
push eax
call fcn.01018785
test al, al
jne 0x101a739
mov eax, dword [0x102e010]
cmp eax, esi
je 0x101a72d
test dword [eax + 0x9c], 0x800
je 0x101a72d
cmp byte [eax + 0x99], 1
jb 0x101a72d
push dword [0x102e01c]
push ebx
push edi
push 0x2e
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010168e2
mov dword [ebp + 0x14], 0x286
jmp 0x101aa24
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp + 0x14], eax
test eax, eax
je 0x101a794
mov eax, dword [0x102e010]
cmp eax, esi
je 0x101a78b
test dword [eax + 0x9c], 0x800
je 0x101a78b
cmp byte [eax + 0x99], 2
jb 0x101a78b
push dword [ebp + 0x14]
push ebx
push edi
push 0x2f
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010168e2
and dword [ebp - 4], 0
jmp 0x101a931
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1003904
push dword [ebp - 4]
call fcn.010199bf
mov dword [ebp + 0x14], eax
test eax, eax
je 0x101a7f6
mov eax, dword [0x102e010]
cmp eax, esi
je 0x101a7ed
test dword [eax + 0x9c], 0x800
je 0x101a7ed
cmp byte [eax + 0x99], 2
jb 0x101a7ed
push dword [ebp + 0x14]
push ebx
push edi
push 0x30
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010168e2
and dword [ebp - 0x10], 0
jmp 0x101a931
cmp dword [ebp - 0x14], 1
je 0x101a847
mov dword [ebp + 0x14], 0x64a
mov eax, dword [0x102e010]
cmp eax, esi
je 0x101aa24
test dword [eax + 0x9c], 0x800
je 0x101aa24
cmp byte [eax + 0x99], 2
jb 0x101aa24
push 0x64a
push ebx
push edi
push 0x31
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.010168e2
cmp dword [ebp + 0x14], 0
jne 0x101aa24
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jge 0x101a8b3
mov ecx, dword [0x102e010]
cmp ecx, 0x102e010
je 0x101a8a7
test dword [ecx + 0x9c], 0x800
je 0x101a8a7
cmp byte [ecx + 0x99], 2
jb 0x101a8a7
push eax
push ebx
push dword [ebp - 0x10]
push edi
push 0x32
push dword [ecx + 0x94]
push dword [ecx + 0x90]
call fcn.01017e7c
mov dword [ebp + 0x14], 0x64a
jmp 0x101aa24
mov ecx, dword [esi]
mov eax, dword [ebp - 8]
mov byte [eax + ecx], 0
mov ecx, dword [esi]
lea eax, [eax + ecx + 4]
mov ecx, dword [ebp - 0xc]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x10038f0
push dword [ebp - 4]
call fcn.010199bf
mov dword [ebp + 0x14], eax
test eax, eax
je 0x101a93b
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x101a920
test dword [eax + 0x9c], 0x800
je 0x101a920
cmp byte [eax + 0x99], 2
jb 0x101a920
push dword [ebp + 0x14]
push ebx
push 0x10038f0
push edi
push 0x33
push dword [eax + 0x94]
push dword [eax + 0x90]
call fcn.01017e7c
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
and dword [ecx + eax + 4], 0
mov dword [ebp + 0x14], 0x64a
cmp dword [ebp + 0x14], 0
jne 0x101aa24
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101a940
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0102af97
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x101a9b9
mov dword [ebp + 0x14], 0x8007000e
mov eax, dword [0x102e010]
cmp eax, 0x102e010
je 0x101aa24
test dword [eax + 0x9c], 0x800
je 0x101aa24
cmp byte [eax + 0x99], 2
jb 0x101aa24
push 0x8007000e
push edi
push 0x34
push dword [eax + 0x94]
push dword [eax + 0x90]
jmp 0x101aa0e
push ebx
push esi
push dword [ebp - 0x18]
call fcn.01019e7c
test eax, eax
jge 0x101aa15
mov ecx, eax
and ecx, 0xffff
mov dword [ebp + 0x14], ecx
jne 0x101a9db
mov dword [ebp + 0x14], 0x57
mov ecx, dword [0x102e010]
cmp ecx, 0x102e010
je 0x101aa24
test dword [ecx + 0x9c], 0x800
je 0x101aa24
cmp byte [ecx + 0x99], 2
jb 0x101aa24
push eax
push edi
push 0x35
push dword [ecx + 0x94]
push dword [ecx + 0x90]
call fcn.010164b8
jmp 0x101aa24
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov dword [edx + eax + 0x18], ecx
xor esi, esi
cmp dword [ebp - 4], esi
je 0x101aa57
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
sete al
movzx eax, al
push eax
push 0x10038dc
push esi
push esi
push esi
push 0x1003800
push dword [0x102e5ac]
push 4
call fcn.0102c428
push dword [ebp - 0x10]
call fcn.0102afb2
pop ecx
cmp dword [ebp + 0x14], esi
jne 0x101aa91
inc dword [ebp - 0x20]
add dword [ebp - 8], 0x1c
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x101aa71
sub eax, ecx
sar eax, 1
lea ebx, [ebx + eax*2 + 2]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
jb 0x101a6c3
jmp 0x101aa9a
push dword [ebp - 0x18]
call fcn.0102afb2
pop ecx
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 8]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10037d4
push dword [ebp + 8]
mov byte [esi], 0
mov dword [ebp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101aae4
mov eax, dword [0x102e5ac]
mov ecx, dword [eax]
lea edx, [ebp + 0x18]
push edx
push 0x1003798
push dword [ebp + 8]
push eax
call dword [ecx + 0x60]
test eax, eax
jne 0x101aae4
cmp dword [ebp + 0x18], edi
setne al
mov byte [esi], al
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x1c]
call fcn.0102afb2
pop ecx
test esi, esi
je 0x101ab30
mov edi, dword [ebp + 0xc]
push dword [edi]
call fcn.0102afb2
and dword [edi], 0
mov edi, dword [ebp + 0x10]
pop ecx
mov ecx, dword [edi]
test ecx, ecx
je 0x101ab2d
push 3
call fcn.0101996e
and dword [edi], 0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14