Function at 0x140002db0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rsi, r8
xor r14b, r14b
mov dword [rbp - 0x38], r14d
mov dword [rbp + 0x58], 0x104
xor r15d, r15d
mov qword [rbp - 0x48], r15
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x50], rbx
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x40], rdi
call fcn.1400193c0
lea r13d, [r15 + 1]
or r12d, 0xffffffff
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rsi
cmp eax, 0x51
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
jne 0x140002e60
lea rdx, str.SoftwareClassesHttp_shellopencommand
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, eax
jmp 0x140003075
lea rdx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000308a
mov dword [rbp - 0x34], r15d
mov edx, dword [rbp + 0x58]
test edx, edx
jns 0x140002e8b
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x140002ea7
lea rcx, [rbp - 0x50]
call fcn.140001c20
mov rbx, qword [rbp - 0x50]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x34]
xor r8d, r8d
lea rdx, str.Progid
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x14000307f
cmp eax, dword [rbx - 0xc]
jg 0x14000307f
lea r14, [rbx - 0x10]
mov dword [r14], eax
cdqe
xor ecx, ecx
mov word [rbx + rax*2], cx
lea rsi, [rbx - 0x18]
lea r13, [rdi - 0x18]
cmp rsi, r13
je 0x140002f62
cmp dword [r13 + 0x10], ecx
jl 0x140002f4f
mov rax, qword [r13]
cmp qword [rsi], rax
jne 0x140002f4f
mov rcx, rsi
call fcn.140001b90
mov rdi, rax
mov ecx, r12d
lock xadd dword [r13 + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140002f41
mov rcx, qword [r13]
mov r8, qword [rcx]
mov rdx, r13
call qword [r8 + 8]
add rdi, 0x18
mov qword [rbp - 0x40], rdi
mov rbx, qword [rbp - 0x50]
jmp 0x140002f62
mov r8d, dword [r14]
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.140001e80
mov rdi, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140002f77
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov qword [rbp - 0x48], rax
cmp dword [r14], 0
je 0x14000306b
lea r8, [0x1400ddd20]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x18]
call fcn.140002ce0
nop
lea r8, str.shellopencommand
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140002ce0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
cmp rcx, rsi
je 0x140002fff
cmp dword [rsi + 0x10], 0
jl 0x140002ff1
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x140002ff1
call fcn.140001b90
mov rbx, rax
mov ecx, r12d
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140002fe7
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [r8 + 8]
lea rax, [rbx + 0x18]
mov qword [rbp - 0x50], rax
jmp 0x140002fff
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x50]
call fcn.140001e80
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000301f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000303e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x50]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, eax
mov rdi, qword [rbp - 0x40]
mov r14d, dword [rbp - 0x38]
mov r13d, 1
test r15d, r15d
je 0x1400030cb
xor r15d, r15d
jmp 0x14000308a
mov ecx, 0x80070057
call fcn.140001000
int3
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000309d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x48], r15
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Http_shellopencommand
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003488
xor r15d, r15d
mov dword [rbp - 0x30], r15d
mov dword [rbp + 0x58], 0x104
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x1400030fd
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.140001c20
mov rbx, qword [rbp - 0x50]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x14000347d
cmp eax, dword [rbx - 0xc]
jg 0x14000347d
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
cmp dword [rbx - 0x10], r15d
je 0x140003385
movsxd rdi, dword [rbx - 0x10]
test edi, edi
jns 0x140003163
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140003181
mov edx, edi
lea rcx, [rbp - 0x50]
call fcn.140001c20
mov rbx, qword [rbp - 0x50]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__wcslwr_s]
cmp edi, dword [rbx - 0xc]
jg 0x14000337a
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], r15w
cmp dword [rbx - 0x10], r15d
jge 0x1400031ac
mov eax, r12d
jmp 0x1400031cc
lea rdx, str..exe
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsstr]
test rax, rax
jne 0x1400031c6
mov eax, r12d
jmp 0x1400031cc
sub rax, rbx
sar rax, 1
lea r8d, [rax + 5]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x50]
call fcn.140001d30
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140003237
cmp dword [rbx + 0x10], 0
jl 0x140003229
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140003229
call fcn.140001b90
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14000321f
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x50], rax
jmp 0x140003237
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x50]
call fcn.140001e80
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140003256
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp - 0x50]
mov rsi, rbx
mov rdi, r15
cmp word [rbx], di
je 0x1400032f0
nop dword [rax]
movzx edx, word [rsi]
lea rcx, [0x1400ddcb0]
call qword [sym.imp.MSVCR100.dll_wcschr]
test rax, rax
je 0x14000328f
test rdi, rdi
jne 0x140003292
mov rdi, rsi
jmp 0x140003292
mov rdi, r15
add rsi, 2
cmp word [rsi], 0
jne 0x140003270
test rdi, rdi
je 0x1400032f0
sub rdi, rbx
sar rdi, 1
test edi, edi
jns 0x1400032b6
mov ecx, 0x80070057
call fcn.140001000
int3
sub r13d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r13d
jge 0x1400032d3
mov edx, edi
lea rcx, [rbp - 0x50]
call fcn.140001c20
mov rbx, qword [rbp - 0x50]
cmp edi, dword [rbx - 0xc]
jg 0x1400032e5
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], r15w
jmp 0x1400032f0
mov ecx, 0x80070057
call fcn.140001000
int3
lea rdx, [0x1400ddcb0]
lea rcx, [rbp - 0x50]
call fcn.140002ac0
mov rbx, qword [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003371
lea rcx, [rbx - 0x18]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rsi]
sub rdi, 0x18
cmp rcx, rdi
je 0x14000336e
cmp dword [rdi + 0x10], 0
jl 0x14000335f
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14000335f
call fcn.140001b90
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140003356
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [r8 + 8]
lea rax, [rbx + 0x18]
mov qword [rsi], rax
jmp 0x14000336e
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, rsi
call fcn.140001e80
mov r14b, 1
mov rdi, qword [rbp - 0x40]
jmp 0x14000345d
mov ecx, 0x80070057
call fcn.140001000
int3
movsxd rbx, dword [rdi - 0x10]
test ebx, ebx
jns 0x140003398
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, r13d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebx
or eax, ecx
jge 0x1400033b6
mov edx, ebx
lea rcx, [rbp - 0x40]
call fcn.140001c20
mov rdi, qword [rbp - 0x40]
lea eax, [rbx + 1]
movsxd rdx, eax
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll__wcslwr_s]
cmp ebx, dword [rdi - 0xc]
jg 0x140003472
mov dword [rdi - 0x10], ebx
mov word [rdi + rbx*2], r15w
lea rbx, [rdi - 0x18]
cmp rbx, rbx
je 0x140003431
cmp dword [rbx + 0x10], r15d
jl 0x14000341d
mov rax, qword [rbx]
cmp rax, rax
jne 0x14000341d
mov rcx, rbx
call fcn.140001b90
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140003413
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
add rdi, 0x18
mov qword [rbp - 0x40], rdi
jmp 0x140003431
mov r8d, dword [rdi - 0x10]
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.140001e80
mov rdi, qword [rbp - 0x40]
cmp dword [rdi - 0x10], r15d
jl 0x14000345d
lea rdx, str.firefoxurl
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsstr]
test rax, rax
je 0x14000345d
sub rax, rdi
sar rax, 1
movzx r14d, r14b
cmp eax, 0xffffffff
cmovne r14d, r13d
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140003488
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x48], r15
jmp 0x140003488
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
nop
lea rdx, [rdi - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400034a4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x1400034c4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
movzx eax, r14b
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret