Function at 0x1800390e0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
push r13
sub rsp, 0x170
mov qword [rsp + 0x140], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rbx, rdx
test rdx, rdx
jne 0x18003911a
mov eax, 0x80004005
jmp 0x1800397da
mov r12, qword [rsp + 0x1a0]
mov dword [r12], 1
xor r13d, r13d
mov qword [rsp + 0xc0], r13
mov qword [rsp + 0xc8], r13
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0xc8], r13
test rcx, rcx
je 0x180039158
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rcx, [rsp + 0xc8]
call qword [0x1800a9408]
mov dword [rsp + 0xd8], eax
bt eax, 0x1f
jb 0x180039238
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x180039238
mov qword [rsp + 0xe8], rcx
lea rax, [rsp + 0xd8]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xe0], r13
lea r8, [0x1800870c0]
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0xe0]
call fcn.1800535c0
nop
bt dword [rsp + 0xd8], 0x1f
jb 0x180039224
cmp qword [rsp + 0xe0], 0
je 0x180039224
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0xc0], r13
test rcx, rcx
je 0x1800391fe
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rdi]
lea r9, [rsp + 0xc0]
lea r8, [0x1800870a0]
lea rdx, str._idm_mozilla_cc_helper5_1
mov rcx, rdi
call qword [rax + 0x20]
mov dword [rsp + 0xd8], eax
lea rcx, [rsp + 0xe0]
call fcn.180053510
mov eax, dword [rsp + 0xd8]
bt eax, 0x1f
jb 0x1800397b9
cmp qword [rsp + 0xc0], 0
je 0x1800397b9
cmp dword [0x1800a9588], 0
jne 0x180039281
mov dword [0x1800a9588], 1
cmp dword [0x1800a9584], 0
je 0x180039281
lea rdx, [0x18008bd48]
lea rcx, str.IDM_BROWSER_INTEGRATION
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov qword [rsp + 0xd0], r13
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0xd0], r13
test rcx, rcx
je 0x1800392a4
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rbx]
lea r8, [rsp + 0xd0]
lea rdx, [0x180087080]
mov rcx, rbx
call qword [rax]
mov dword [rsp + 0xd8], eax
bt eax, 0x1f
jae 0x1800392f8
lea rcx, [rsp + 0xd0]
call fcn.180053510
nop
lea rcx, [rsp + 0xc8]
call fcn.180053510
nop
lea rcx, [rsp + 0xc0]
call fcn.180053510
xor eax, eax
jmp 0x1800397da
lea rcx, [rsp + 0xf8]
call qword [0x1800a9468]
nop
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rcx]
lea r8, [rsp + 0xf8]
mov rdx, qword [rsp + 0xd0]
call qword [rax + 0x28]
mov dword [rsp + 0xd8], eax
bt eax, 0x1f
jae 0x180039371
lea rcx, [rsp + 0xf8]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xd0]
call fcn.180053510
nop
lea rcx, [rsp + 0xc8]
call fcn.180053510
nop
lea rcx, [rsp + 0xc0]
call fcn.180053510
xor eax, eax
jmp 0x1800397da
xor r8d, r8d
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xf8]
call qword [0x1800a9480]
mov r8d, 5
mov rdi, qword [rsp + 0xe0]
mov rdx, rdi
lea rcx, str.http:
call fcn.180058da0
test eax, eax
je 0x18003941c
mov r8d, 6
mov rdx, rdi
lea rcx, str.https:
call fcn.180058da0
test eax, eax
je 0x18003941c
mov r8d, 4
mov rdx, rdi
lea rcx, str.ftp:
call fcn.180058da0
test eax, eax
je 0x18003941c
lea rcx, [rsp + 0xf8]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xd0]
call fcn.180053510
nop
lea rcx, [rsp + 0xc8]
call fcn.180053510
nop
lea rcx, [rsp + 0xc0]
call fcn.180053510
xor eax, eax
jmp 0x1800397da
mov r8d, 4
mov rdx, rdi
lea rcx, str.ftp:
call fcn.180058da0
test eax, eax
jne 0x18003977e
call fcn.180024aa0
call fcn.18001cde0
test al, al
jne 0x180039486
lea rcx, [rsp + 0xf8]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xd0]
call fcn.180053510
nop
lea rcx, [rsp + 0xc8]
call fcn.180053510
nop
lea rcx, [rsp + 0xc0]
call fcn.180053510
xor eax, eax
jmp 0x1800397da
lea rdx, str.ExceptionServers
lea rcx, [rsp + 0xe8]
call fcn.180015390
nop
mov rdx, rdi
lea rcx, [rsp + 0xe8]
call fcn.1800155e0
test eax, eax
je 0x1800394fc
lea rcx, [rsp + 0xe8]
call fcn.180015460
nop
lea rcx, [rsp + 0xf8]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xd0]
call fcn.180053510
nop
lea rcx, [rsp + 0xc8]
call fcn.180053510
nop
lea rcx, [rsp + 0xc0]
call fcn.180053510
xor eax, eax
jmp 0x1800397da
call fcn.1800250a0
test eax, eax
je 0x180039552
lea rcx, [rsp + 0xe8]
call fcn.180015460
nop
lea rcx, [rsp + 0xf8]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xd0]
call fcn.180053510
nop
lea rcx, [rsp + 0xc8]
call fcn.180053510
nop
lea rcx, [rsp + 0xc0]
call fcn.180053510
xor eax, eax
jmp 0x1800397da
mov esi, r13d
call fcn.180025600
test al, al
je 0x180039568
mov esi, 0x804
jmp 0x1800395f2
lea rcx, [rsp + 0xe0]
call fcn.1800546e0
nop
mov rdx, rdi
lea rcx, [rsp + 0xe0]
call fcn.180054700
test eax, eax
jne 0x1800395e5
lea rcx, [rsp + 0xe0]
call fcn.1800546f0
nop
lea rcx, [rsp + 0xe8]
call fcn.180015460
nop
lea rcx, [rsp + 0xf8]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xd0]
call fcn.180053510
nop
lea rcx, [rsp + 0xc8]
call fcn.180053510
nop
lea rcx, [rsp + 0xc0]
call fcn.180053510
xor eax, eax
jmp 0x1800397da
lea rcx, [rsp + 0xe0]
call fcn.1800546f0
lea rcx, [rsp + 0x148]
call qword [0x1800a9468]
nop
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rcx]
lea r8, [rsp + 0x148]
mov rdx, qword [rsp + 0xd0]
call qword [rax + 0x30]
lea rcx, [rsp + 0x120]
call qword [0x1800a9468]
nop
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rcx]
lea r8, [rsp + 0x120]
mov rdx, qword [rsp + 0xd0]
call qword [rax + 0x38]
xor r8d, r8d
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x120]
call qword [0x1800a9480]
mov rbx, qword [rsp + 0xe0]
xor r8d, r8d
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x148]
call qword [0x1800a9480]
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xa8], r13
mov dword [rsp + 0xa0], r13d
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x80], r13
mov dword [rsp + 0x78], esi
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9, rbx
mov r8, qword [rsp + 0x118]
xor edx, edx
mov rcx, rdi
call fcn.180033910
test al, al
je 0x180039716
mov dword [r12], r13d
lea rcx, [rsp + 0x120]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0x148]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xe8]
call fcn.180015460
nop
lea rcx, [rsp + 0xf8]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xd0]
call fcn.180053510
nop
lea rcx, [rsp + 0xc8]
call fcn.180053510
nop
lea rcx, [rsp + 0xc0]
call fcn.180053510
xor eax, eax
jmp 0x1800397da
lea rcx, [rsp + 0xf8]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xd0]
call fcn.180053510
nop
lea rcx, [rsp + 0xc8]
call fcn.180053510
nop
lea rcx, [rsp + 0xc0]
call fcn.180053510
nop
jmp 0x1800397d8
lea rcx, [rsp + 0xc8]
call fcn.180053510
nop
lea rcx, [rsp + 0xc0]
call fcn.180053510
xor eax, eax
jmp 0x1800397da
xor eax, eax
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret