Function at 0x180039800
Capabilities:
Print debug messages
Set environment variable

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3c0
mov qword [rsp + 0x240], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800a7b78]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov r12, r9
mov qword [rsp + 0x158], r9
mov rsi, rdx
mov edi, ecx
mov r14, qword [rsp + 0x420]
mov qword [rsp + 0x118], r14
test rdx, rdx
jne 0x180039868
mov eax, 0x80004005
jmp 0x18003b288
mov r15d, 1
mov word [r14], r15w
xor ebx, ebx
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe8], rbx
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xe8], rbx
test rcx, rcx
je 0x18003989f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rcx, [rsp + 0xe8]
call qword [0x1800a9408]
mov dword [rsp + 0xf8], eax
bt eax, 0x1f
jb 0x180039988
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x180039988
mov qword [rsp + 0x1e0], rcx
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x1e8], rax
mov qword [rsp + 0x148], rbx
lea r8, [0x1800870c0]
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x148]
call fcn.1800535c0
nop
bt dword [rsp + 0xf8], 0x1f
jb 0x180039974
cmp qword [rsp + 0x148], 0
je 0x180039974
mov r12, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0xd8], rbx
test rcx, rcx
je 0x180039945
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [r12]
lea r9, [rsp + 0xd8]
lea r8, [0x1800870a0]
lea rdx, str._idm_mozilla_cc_helper5_1
mov rcx, r12
call qword [rax + 0x20]
mov dword [rsp + 0xf8], eax
mov r12, qword [rsp + 0x158]
lea rcx, [rsp + 0x148]
call fcn.180053510
mov eax, dword [rsp + 0xf8]
bt eax, 0x1f
jb 0x18003b267
cmp qword [rsp + 0xd8], 0
je 0x18003b267
lea rcx, [rsp + 0x1a0]
call qword [0x1800a9468]
nop
mov qword [rsp + 0xf0], rbx
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], rbx
test rcx, rcx
je 0x1800399d3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rsi]
lea r8, [rsp + 0xf0]
lea rdx, [0x180087080]
mov rcx, rsi
call qword [rax]
mov dword [rsp + 0xf8], eax
bt eax, 0x1f
jae 0x180039a36
lea rcx, [rsp + 0xf0]
call fcn.180053510
nop
lea rcx, [rsp + 0x1a0]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xe8]
call fcn.180053510
nop
lea rcx, [rsp + 0xd8]
call fcn.180053510
xor eax, eax
jmp 0x18003b288
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rcx]
lea r8, [rsp + 0x1a0]
mov rdx, qword [rsp + 0xf0]
call qword [rax + 0x28]
mov dword [rsp + 0xf8], eax
bt eax, 0x1f
jae 0x180039aa0
lea rcx, [rsp + 0xf0]
call fcn.180053510
nop
lea rcx, [rsp + 0x1a0]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xe8]
call fcn.180053510
nop
lea rcx, [rsp + 0xd8]
call fcn.180053510
xor eax, eax
jmp 0x18003b288
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x1a0]
call qword [0x1800a9480]
mov r13, qword [rsp + 0xc8]
mov qword [rsp + 0x148], r13
cmp dword [0x1800a9588], 0
jne 0x180039af6
mov dword [0x1800a9588], r15d
cmp dword [0x1800a9584], 0
je 0x180039af6
lea rdx, [0x18008bd48]
lea rcx, str.IDM_BROWSER_INTEGRATION
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov r8d, 5
mov rdx, r13
lea rcx, str.http:
call fcn.180058da0
test eax, eax
je 0x180039b80
mov r8d, 6
mov rdx, r13
lea rcx, str.https:
call fcn.180058da0
test eax, eax
je 0x180039b80
mov r8d, 4
mov rdx, r13
lea rcx, str.ftp:
call fcn.180058da0
test eax, eax
je 0x180039b80
lea rcx, [rsp + 0xf0]
call fcn.180053510
nop
lea rcx, [rsp + 0x1a0]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xe8]
call fcn.180053510
nop
lea rcx, [rsp + 0xd8]
call fcn.180053510
xor eax, eax
jmp 0x18003b288
test r12, r12
je 0x18003aede
xor sil, sil
mov byte [rsp + 0xc0], sil
mov dword [rsp + 0xe0], ebx
mov qword [rsp + 0x128], rbx
mov rcx, qword [rsp + 0x128]
mov qword [rsp + 0x128], rbx
test rcx, rcx
je 0x180039bbe
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [r12]
lea r8, [rsp + 0x128]
lea rdx, [0x180087080]
mov rcx, r12
call qword [rax]
mov dword [rsp + 0xc4], eax
bt eax, 0x1f
jb 0x18003aecb
mov rdx, qword [rsp + 0x128]
test rdx, rdx
je 0x18003aecb
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rcx]
lea r8, [rsp + 0xe0]
call qword [rax + 0x40]
mov dword [rsp + 0xc4], eax
bt eax, 0x1f
jb 0x180039c36
cmp dword [rsp + 0xe0], 0
je 0x180039c36
mov byte [rsp + 0xc0], 1
or r15, 0xffffffffffffffff
jmp 0x180039dc9
cmp edi, 3
jne 0x180039d60
mov qword [rsp + 0x248], rbx
mov qword [rsp + 0x258], rbx
xor eax, eax
mov word [rsp + 0x250], ax
lea rcx, [rsp + 0x248]
call fcn.1800197d0
test r13, r13
je 0x180039cd2
xor eax, eax
or r15, 0xffffffffffffffff
mov rcx, r15
mov rdi, r13
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
je 0x180039cd6
inc rcx
call fcn.180058e74
mov r11, rax
mov qword [rsp + 0x248], rax
test rax, rax
je 0x180039cd6
xor eax, eax
mov rcx, r15
mov rdi, r13
repne scasb al, byte [rdi]
not rcx
dec rcx
mov qword [rsp + 0x258], rcx
mov rcx, r13
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r11], al
inc rcx
inc r11
test al, al
jne 0x180039cc0
jmp 0x180039cd6
or r15, 0xffffffffffffffff
lea rcx, [rsp + 0x250]
mov rax, qword [rsp + 0x248]
test rax, rax
cmovne rcx, rax
mov edx, 0x3f
call fcn.180058724
test rax, rax
je 0x180039cff
mov byte [rax], 0
lea rcx, [rsp + 0x250]
mov rax, qword [rsp + 0x248]
test rax, rax
cmovne rcx, rax
mov edx, 0x2e
call fcn.180059df0
test rax, rax
je 0x180039d48
lea rcx, [rax + 1]
call fcn.18001c920
test eax, eax
je 0x180039d48
mov sil, 1
mov byte [rsp + 0xc0], sil
mov dword [rsp + 0xe0], 7
lea rcx, [rsp + 0x248]
call fcn.1800197d0
test sil, sil
je 0x18003aecf
jmp 0x180039dc9
cmp edi, 4
je 0x180039dbd
cmp edi, 2
je 0x180039dbd
cmp edi, 0xb
jne 0x180039d88
mov byte [rsp + 0xc0], 1
mov dword [rsp + 0xe0], 8
or r15, 0xffffffffffffffff
jmp 0x180039dc9
cmp edi, 0xf
jne 0x180039d9b
mov byte [rsp + 0xc0], 1
or r15, 0xffffffffffffffff
jmp 0x180039dc9
cmp edi, 7
jne 0x18003aecb
mov byte [rsp + 0xc0], 1
mov dword [rsp + 0xe0], 0xa
or r15, 0xffffffffffffffff
jmp 0x180039dc9
mov byte [rsp + 0xc0], 1
or r15, 0xffffffffffffffff
mov esi, ebx
mov dword [rsp + 0x110], ebx
mov qword [rsp + 0xd0], rbx
mov rdi, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0xd0], rbx
test rcx, rcx
je 0x180039dfd
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rdi]
lea r8, [rsp + 0xd0]
mov rdx, qword [rsp + 0x128]
mov rcx, rdi
call qword [rax + 0x48]
mov dword [rsp + 0xc4], eax
mov edx, eax
and edx, 0x80000000
jne 0x180039e44
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
jne 0x180039ebe
cmp dword [rsp + 0xe0], 8
jne 0x180039eb6
jmp 0x180039e4c
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0xd0], rbx
test rcx, rcx
je 0x180039e5f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [r12]
lea r8, [rsp + 0xd0]
lea rdx, [0x180087080]
mov rcx, r12
call qword [rax]
mov dword [rsp + 0xc4], eax
mov edx, eax
and edx, 0x80000000
jne 0x180039ea6
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
mov r14d, 1
cmovne esi, r14d
mov dword [rsp + 0x110], esi
jmp 0x180039ec4
mov rcx, qword [rsp + 0xd0]
mov r14d, 1
jmp 0x180039ec4
mov r14d, 1
jmp 0x180039ec4
mov r14d, 1
test edx, edx
jne 0x180039ed1
test rcx, rcx
jne 0x180039f84
mov qword [rsp + 0x100], rbx
mov rdi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x100], rbx
test rcx, rcx
je 0x180039efc
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rdi]
lea r9, [rsp + 0x100]
lea r8, [0x180089220]
lea rdx, str._idm_mozilla_cc_helper_1
mov rcx, rdi
call qword [rax + 0x20]
mov dword [rsp + 0xc4], eax
bt eax, 0x1f
jb 0x180039f68
mov rdi, qword [rsp + 0x100]
test rdi, rdi
je 0x180039f68
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0xd0], rbx
test rcx, rcx
je 0x180039f50
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rdi]
lea rdx, [rsp + 0xd0]
mov rcx, rdi
call qword [rax + SafeArrayCopy]
mov dword [rsp + 0xc4], eax
lea rcx, [rsp + 0x100]
call fcn.180053510
mov eax, dword [rsp + 0xc4]
mov rcx, qword [rsp + 0xd0]
bt eax, 0x1f
jb 0x18003ad94
test rcx, rcx
je 0x18003ad94
lea rcx, [rsp + 0x1e0]
call qword [0x1800a9420]
nop
lea rcx, [rsp + 0x248]
call qword [0x1800a9420]
nop
mov qword [rsp + 0x160], rbx
mov sil, 1
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x248]
lea r8, [rsp + 0x1e0]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.180027f00
test eax, eax
jne 0x18003a05b
xor sil, sil
mov rdi, qword [rsp + 0xd0]
mov qword [rsp + 0x100], rdi
mov qword [rsp + 0x160], rdi
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rcx]
lea r8, [rsp + 0x1e0]
mov rdx, rdi
call qword [rax + 0x50]
mov dword [rsp + 0xc4], eax
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rcx]
lea r8, [rsp + 0x248]
mov rdx, qword [rsp + 0xd0]
call qword [rax + 0x58]
mov dword [rsp + 0xc4], eax
jmp 0x18003a1a5
lea rcx, [rsp + 0x1c0]
call qword [0x1800a9420]
nop
lea rcx, [rsp + 0x170]
call qword [0x1800a9420]
nop
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rcx]
lea r8, [rsp + 0x1c0]
mov rdx, qword [rsp + 0xd0]
call qword [rax + 0x50]
mov dword [rsp + 0xc4], eax
bt eax, 0x1f
jb 0x18003a178
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x1c0]
call qword [0x1800a9438]
test eax, eax
je 0x18003a178
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x1c0]
call qword [0x1800a9438]
or r8d, 0xffffffff
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x1e0]
call qword [0x1800a9450]
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rcx]
lea r8, [rsp + 0x170]
mov rdx, qword [rsp + 0xd0]
call qword [rax + 0x58]
mov dword [rsp + 0xc4], eax
bt eax, 0x1f
jb 0x18003a178
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x170]
call qword [0x1800a9438]
test eax, eax
je 0x18003a178
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x170]
call qword [0x1800a9438]
or r8d, 0xffffffff
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x248]
call qword [0x1800a9450]
nop
lea rcx, [rsp + 0x170]
call qword [0x1800a9430]
nop
lea rcx, [rsp + 0x1c0]
call qword [0x1800a9430]
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x100], rax
lea rcx, [rsp + 0x220]
call qword [0x1800a9468]
nop
mov dword [rsp + 0xfc], ebx
test sil, sil
je 0x18003a217
lea r9, [rsp + 0xfc]
lea r8, [rsp + 0x220]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.180038d40
mov r12, rax
test rax, rax
jne 0x18003a26c
lea r9, [rsp + 0xfc]
lea r8, [rsp + 0x220]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.18002df10
mov r12, rax
jmp 0x18003a26c
lea r9, [rsp + 0xfc]
lea r8, [rsp + 0x220]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.18002df10
mov r12, rax
test rax, rax
jne 0x18003a26c
lea r9, [rsp + 0xfc]
lea r8, [rsp + 0x220]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.180038d40
mov r12, rax
mov r14, rbx
mov qword [rsp + 0x190], rbx
mov qword [rsp + 0x108], rbx
mov qword [rsp + 0x130], rbx
mov rcx, qword [rsp + 0x130]
mov qword [rsp + 0x130], rbx
test rcx, rcx
je 0x18003a2a2
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rcx, [rsp + 0x130]
call qword [0x1800a9408]
mov dword [rsp + 0xc4], eax
bt eax, 0x1f
jb 0x18003a382
mov rcx, qword [rsp + 0x130]
test rcx, rcx
je 0x18003a382
mov qword [rsp + 0x200], rcx
lea rax, [rsp + 0xc4]
mov qword [rsp + 0x208], rax
mov qword [rsp + 0xc8], rbx
lea r8, [0x1800870c0]
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xc8]
call fcn.1800535c0
nop
bt dword [rsp + 0xc4], 0x1f
jb 0x18003a36e
cmp qword [rsp + 0xc8], 0
je 0x18003a36e
mov rdi, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x108]
mov qword [rsp + 0x108], rbx
test rcx, rcx
je 0x18003a348
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rdi]
lea r9, [rsp + 0x108]
lea r8, [0x180089250]
lea rdx, str._idm_mozilla_cc_helper11_1
mov rcx, rdi
call qword [rax + 0x20]
mov dword [rsp + 0xc4], eax
lea rcx, [rsp + 0xc8]
call fcn.180053510
mov eax, dword [rsp + 0xc4]
bt eax, 0x1f
jb 0x18003a640
cmp qword [rsp + 0x108], 0
je 0x18003a640
lea rcx, [rsp + 0x1c0]
call qword [0x1800a9420]
nop
or r8d, 0xffffffff
lea rdx, str.idmmzcc_ext_docid
lea rcx, [rsp + 0x1c0]
call qword [0x1800a9450]
lea rcx, str._docID
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x200]
call qword [0x1800a9420]
nop
mov rcx, qword [rsp + 0x108]
mov rax, qword [rcx]
lea r9, [rsp + 0x200]
mov r8, qword [rsp + 0xd0]
lea rdx, [rsp + 0x1c0]
call qword [rax + 0x38]
mov dword [rsp + 0xc4], eax
bt eax, 0x1f
jb 0x18003a474
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x200]
call qword [0x1800a9438]
mov rcx, qword [rsp + 0xc8]
call fcn.18005bfe8
mov r14, rax
mov qword [rsp + 0x190], rax
test rax, rax
je 0x18003a474
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x200]
call qword [0x1800a9438]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18003a623
test sil, sil
je 0x18003a520
mov rdi, qword [rsp + 0x100]
test rdi, rdi
je 0x18003a528
mov rcx, qword [rsp + 0x108]
mov rax, qword [rcx]
lea r9, [rsp + 0x200]
mov r8, qword [rsp + 0xd0]
lea rdx, [rsp + 0x1c0]
call qword [rax + 0x48]
mov dword [rsp + 0xc4], eax
bt eax, 0x1f
jb 0x18003a528
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x200]
call qword [0x1800a9438]
mov rcx, qword [rsp + 0xc8]
call fcn.18005bfe8
mov r14, rax
mov qword [rsp + 0x190], rax
test rax, rax
je 0x18003a531
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x200]
call qword [0x1800a9438]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18003a528
mov rdi, qword [rsp + 0x100]
test r14, r14
jne 0x18003a623
test rdi, rdi
je 0x18003a623
lea rcx, [rsp + 0x170]
call qword [0x1800a9420]
nop
test r14, r14
cmove r14, rdi
mov qword [rsp + 0x190], r14
mov r9, r14
lea r8, str._I64d
mov edx, 0x20
lea rcx, [rsp + 0x270]
call fcn.180058fc0
or r8d, 0xffffffff
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x170]
call qword [0x1800a9450]
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x170]
call qword [0x1800a9438]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x108]
mov rax, qword [rcx]
mov r9, qword [rsp + 0xd0]
lea r8, [rsp + 0x170]
lea rdx, [rsp + 0x1c0]
call qword [rax + 0x40]
mov dword [rsp + 0xc4], eax
test sil, sil
je 0x18003a614
mov rcx, qword [rsp + 0x108]
mov rax, qword [rcx]
mov r9, qword [rsp + 0xd0]
lea r8, [rsp + 0x170]
lea rdx, [rsp + 0x1c0]
call qword [rax + 0x50]
mov dword [rsp + 0xc4], eax
lea rcx, [rsp + 0x170]
call qword [0x1800a9430]
nop
lea rcx, [rsp + 0x200]
call qword [0x1800a9430]
nop
lea rcx, [rsp + 0x1c0]
call qword [0x1800a9430]
test r12, r12
je 0x18003ad47
mov ecx, 0xd8
call fcn.180058e74
mov qword [rsp + 0xc8], rax
test rax, rax
je 0x18003a66d
mov rcx, rax
call fcn.180013c40
mov rsi, rax
jmp 0x18003a670
mov rsi, rbx
test rsi, rsi
je 0x18003ad47
mov eax, dword [rsp + 0xfc]
mov dword [rsi + 0xb0], eax
mov rax, qword [rsp + 0x100]
mov qword [rsi + 0xb8], rax
mov qword [rsi + 0xc0], r14
mov eax, dword [rsp + 0x110]
mov dword [rsi + 0xd0], eax
mov byte [rsp + 0xe5], 0
cmp dword [rsp + 0xe0], 4
jne 0x18003a7bf
cmp qword [rsi + 0x98], 0
jne 0x18003a7b5
mov dword [rsp + 0x16c], ebx
mov dword [rsp + 0x168], ebx
mov dword [rsp + 0x19c], ebx
mov dword [rsp + 0x198], ebx
mov byte [rsp + 0xe4], 0
lea rax, [rsp + 0xe4]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x168]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x16c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x198]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x19c]
mov rdi, qword [rsp + 0x158]
mov r8, rdi
xor edx, edx
mov rcx, qword [rsp + 0xd8]
call fcn.180005db0
cmp byte [rsp + 0xe4], 0
je 0x18003a7c7
cmp dword [rsp + 0x16c], 0
jne 0x18003a7c7
cmp dword [rsp + 0x168], 0
jne 0x18003a7c7
mov byte [rsp + 0xe5], 1
xor edx, edx
mov rcx, qword [rsp + 0xd0]
call fcn.1800536b0
mov rcx, qword [rsi + 0x98]
mov qword [rsi + 0x98], rax
test rcx, rcx
je 0x18003a795
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp qword [rsi + 0x98], 0
jne 0x18003a803
lea rcx, [rsi + 0xa0]
mov rdx, qword [rsp + 0xd0]
call fcn.180053530
jmp 0x18003a803
mov rdi, qword [rsp + 0x158]
jmp 0x18003a7c7
mov rdi, qword [rsp + 0x158]
xor edx, edx
mov rcx, rdi
call fcn.1800536b0
mov rcx, qword [rsi + 0x98]
mov qword [rsi + 0x98], rax
test rcx, rcx
je 0x18003a7ea
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp qword [rsi + 0x98], 0
jne 0x18003a803
lea rcx, [rsi + 0xa0]
mov rdx, rdi
call fcn.180053530
lea rcx, [rsi + 8]
or r8d, 0xffffffff
mov rdx, r13
call qword [0x1800a9498]
lea rcx, [rsi + 0x28]
or r8d, 0xffffffff
mov rdx, r13
call qword [0x1800a9498]
mov qword [rsi + 0x88], rbx
cmp dword [rsp + 0xe0], 2
jle 0x18003a879
mov r8d, 0x100
lea rdx, [rsp + 0x2b0]
mov rcx, r12
call qword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x18003a879
lea rdx, str.MozillaContentWindowClass
lea rcx, [rsp + 0x2b0]
call fcn.1800599c0
test eax, eax
jne 0x18003a879
mov rcx, r12
call qword [sym.imp.USER32.dll_GetParent]
mov qword [rsi + 0x88], rax
cmp qword [rsi + 0x88], 0
jne 0x18003a88a
mov qword [rsi + 0x88], r12
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x1e0]
call qword [0x1800a9438]
test eax, eax
je 0x18003a8d6
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x1e0]
call qword [0x1800a9438]
lea rcx, [rsi + 0x48]
or r8d, 0xffffffff
mov rdx, qword [rsp + 0xc8]
call qword [0x1800a9450]
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x248]
call qword [0x1800a9438]
test eax, eax
je 0x18003a922
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x248]
call qword [0x1800a9438]
lea rcx, [rsi + 0x68]
or r8d, 0xffffffff
mov rdx, qword [rsp + 0xc8]
call qword [0x1800a9450]
mov eax, dword [rsp + 0xe0]
mov dword [rsi + 0xc8], eax
cmp dword [0x1800a9540], 0
je 0x18003ab11
mov rdx, qword [rsp + 0xd0]
lea rcx, [0x1800a95e8]
call fcn.18004dee0
test eax, eax
jne 0x18003ab11
mov qword [rsp + 0x120], rbx
mov rdi, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x120]
mov qword [rsp + 0x120], rbx
test rcx, rcx
je 0x18003a983
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rdi]
lea r8, [rsp + 0x120]
mov rdx, qword [rsp + 0xd0]
mov rcx, rdi
call qword [rax + 0x78]
mov dword [rsp + 0xc4], eax
bt eax, 0x1f
jb 0x18003ab04
cmp qword [rsp + 0x120], 0
je 0x18003ab04
mov qword [rsp + 0x138], rbx
mov rdi, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x138]
mov qword [rsp + 0x138], rbx
test rcx, rcx
je 0x18003a9e7
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rdi]
lea r8, [rsp + 0x138]
mov rdx, qword [rsp + 0x120]
mov rcx, rdi
call qword [rax + 0x70]
mov dword [rsp + 0xc4], eax
bt eax, 0x1f
jb 0x18003aaf6
cmp qword [rsp + 0x138], 0
je 0x18003aaf6
mov qword [rsp + 0x140], rbx
mov rcx, qword [rsp + 0x140]
mov qword [rsp + 0x140], rbx
test rcx, rcx
je 0x18003aa43
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea r8, [rsp + 0x140]
lea rdx, [0x180087080]
lea rcx, vtable.CElementUnloadListener.0
call fcn.1800062b0
cmp qword [rsp + 0x140], 0
je 0x18003aae8
xor r9d, r9d
or r8d, 0xffffffff
lea rdx, str.unload
lea rcx, [rsp + 0x170]
call qword [0x1800a9428]
nop
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
mov r9, qword [rsp + 0x140]
mov r8, qword [rsp + 0x138]
lea rdx, [rsp + 0x170]
call qword [rax + 0x98]
mov dword [rsp + 0xc4], eax
bt eax, 0x1f
jb 0x18003aad9
mov rdx, qword [rsp + 0xd0]
lea rcx, [0x1800a95e8]
call fcn.18004dd90
nop
lea rcx, [rsp + 0x170]
call qword [0x1800a9430]
nop
lea rcx, [rsp + 0x140]
call fcn.180053510
nop
lea rcx, [rsp + 0x138]
call fcn.180053510
nop
lea rcx, [rsp + 0x120]
call fcn.180053510
mov ecx, 0xd8
call fcn.180058e74
mov qword [rsp + 0xc8], rax
test rax, rax
je 0x18003ab35
mov rcx, rax
call fcn.180013c40
mov rdi, rax
jmp 0x18003ab38
mov rdi, rbx
test rdi, rdi
je 0x18003acea
mov eax, dword [rsi + 0xb0]
mov dword [rdi + 0xb0], eax
mov rax, qword [rsp + 0x100]
mov qword [rdi + 0xb8], rax
mov qword [rdi + 0xc0], r14
mov eax, dword [rsp + 0x110]
mov dword [rdi + 0xd0], eax
cmp byte [rsp + 0xe5], 0
je 0x18003abc2
xor edx, edx
mov rcx, qword [rsp + 0xd0]
call fcn.1800536b0
mov rcx, qword [rdi + 0x98]
mov qword [rdi + 0x98], rax
test rcx, rcx
je 0x18003aba2
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp qword [rdi + 0x98], 0
jne 0x18003ac06
lea rcx, [rdi + 0xa0]
mov rdx, qword [rsp + 0xd0]
call fcn.180053530
jmp 0x18003ac06
xor edx, edx
mov r12, qword [rsp + 0x158]
mov rcx, r12
call fcn.1800536b0
mov rcx, qword [rdi + 0x98]
mov qword [rdi + 0x98], rax
test rcx, rcx
je 0x18003abed
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp qword [rdi + 0x98], 0
jne 0x18003ac06
lea rcx, [rdi + 0xa0]
mov rdx, r12
call fcn.180053530
lea rcx, [rdi + 8]
or r8d, 0xffffffff
mov rdx, r13
call qword [0x1800a9498]
lea rcx, [rdi + 0x28]
or r8d, 0xffffffff
mov rdx, r13
call qword [0x1800a9498]
mov rdx, qword [rsi + 0x88]
mov qword [rdi + 0x88], rdx
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x1e0]
call qword [0x1800a9438]
test eax, eax
je 0x18003ac82
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x1e0]
call qword [0x1800a9438]
lea rcx, [rdi + 0x48]
or r8d, 0xffffffff
mov rdx, qword [rsp + 0xc8]
call qword [0x1800a9450]
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x248]
call qword [0x1800a9438]
test eax, eax
je 0x18003acce
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x248]
call qword [0x1800a9438]
lea rcx, [rdi + 0x68]
or r8d, 0xffffffff
mov rdx, qword [rsp + 0xc8]
call qword [0x1800a9450]
mov rax, qword [rsp + 0xd0]
mov qword [rdi + 0xa8], rax
mov eax, dword [rsp + 0xe0]
mov dword [rdi + 0xc8], eax
mov rcx, qword [0x1800a9548]
test rcx, rcx
je 0x18003ad47
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x18003ad47
mov rdx, rsi
lea rcx, [0x1800ab050]
call fcn.18004ef40
test rdi, rdi
je 0x18003ad29
mov rdx, rdi
lea rcx, [0x1800ab068]
call fcn.18004fd20
nop
jmp 0x18003ad39
mov rcx, qword [0x1800a9548]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
lea rcx, [rsp + 0x130]
call fcn.180053510
nop
lea rcx, [rsp + 0x108]
call fcn.180053510
nop
lea rcx, [rsp + 0x220]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0x248]
call qword [0x1800a9430]
nop
lea rcx, [rsp + 0x1e0]
call qword [0x1800a9430]
jmp 0x18003aeb4
mov ecx, 0xd8
call fcn.180058e74
mov qword [rsp + 0xc8], rax
test rax, rax
je 0x18003adb8
mov rcx, rax
call fcn.180013c40
mov rsi, rax
jmp 0x18003adbb
mov rsi, rbx
test rsi, rsi
je 0x18003ae6b
mov dword [rsi + 0xb0], r14d
mov qword [rsi + 0x88], rbx
mov qword [rsi + 0xb8], rbx
mov qword [rsi + 0xc0], rbx
cmp dword [rsp + 0xe0], 8
jne 0x18003ae0f
xor edx, edx
mov rcx, r12
call fcn.1800536b0
mov rcx, qword [rsi + 0x98]
mov qword [rsi + 0x98], rax
test rcx, rcx
je 0x18003ae35
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x18003ae35
xor edx, edx
lea rcx, [rsi + 0x98]
call fcn.180053530
cmp qword [rsi + 0x98], 0
jne 0x18003ae35
lea rcx, [rsi + 0xa0]
xor edx, edx
call fcn.180053530
lea rcx, [rsi + 8]
or r8d, 0xffffffff
mov rdx, r13
call qword [0x1800a9498]
lea rcx, [rsi + 0x28]
or r8d, 0xffffffff
mov rdx, r13
call qword [0x1800a9498]
mov qword [rsi + 0xa8], rbx
mov eax, dword [rsp + 0xe0]
mov dword [rsi + 0xc8], eax
mov rcx, qword [0x1800a9548]
test rcx, rcx
je 0x18003aeb4
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x18003aeb4
mov rdx, rsi
lea rcx, [0x1800ab050]
call fcn.18004ef40
nop
jmp 0x18003aea6
mov rcx, qword [0x1800a9548]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
lea rcx, [rsp + 0xd0]
call fcn.180053510
mov r14, qword [rsp + 0x118]
jmp 0x18003aecf
or r15, 0xffffffffffffffff
lea rcx, [rsp + 0x128]
call fcn.180053510
jmp 0x18003aee2
or r15, 0xffffffffffffffff
mov r8d, 4
mov rdx, r13
lea rcx, str.ftp:
call fcn.180058da0
test eax, eax
jne 0x18003b22c
call fcn.180024aa0
call fcn.18001cde0
test al, al
jne 0x18003af4c
lea rcx, [rsp + 0xf0]
call fcn.180053510
nop
lea rcx, [rsp + 0x1a0]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xe8]
call fcn.180053510
nop
lea rcx, [rsp + 0xd8]
call fcn.180053510
xor eax, eax
jmp 0x18003b288
lea rdx, str.ExceptionServers
lea rcx, [rsp + 0x148]
call fcn.180015390
nop
mov rdx, r13
lea rcx, [rsp + 0x148]
call fcn.1800155e0
test eax, eax
je 0x18003afc2
lea rcx, [rsp + 0x148]
call fcn.180015460
nop
lea rcx, [rsp + 0xf0]
call fcn.180053510
nop
lea rcx, [rsp + 0x1a0]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xe8]
call fcn.180053510
nop
lea rcx, [rsp + 0xd8]
call fcn.180053510
xor eax, eax
jmp 0x18003b288
call fcn.1800250a0
test eax, eax
je 0x18003b018
lea rcx, [rsp + 0x148]
call fcn.180015460
nop
lea rcx, [rsp + 0xf0]
call fcn.180053510
nop
lea rcx, [rsp + 0x1a0]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xe8]
call fcn.180053510
nop
lea rcx, [rsp + 0xd8]
call fcn.180053510
xor eax, eax
jmp 0x18003b288
lea rcx, [rsp + 0x118]
call fcn.1800546e0
nop
mov rdx, r13
lea rcx, [rsp + 0x118]
call fcn.180054700
test eax, eax
jne 0x18003b095
lea rcx, [rsp + 0x118]
call fcn.1800546f0
nop
lea rcx, [rsp + 0x148]
call fcn.180015460
nop
lea rcx, [rsp + 0xf0]
call fcn.180053510
nop
lea rcx, [rsp + 0x1a0]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xe8]
call fcn.180053510
nop
lea rcx, [rsp + 0xd8]
call fcn.180053510
xor eax, eax
jmp 0x18003b288
lea rcx, [rsp + 0x170]
call qword [0x1800a9468]
nop
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rcx]
lea r8, [rsp + 0x170]
mov rdx, qword [rsp + 0xf0]
call qword [rax + 0x30]
lea rcx, [rsp + 0x220]
call qword [0x1800a9468]
nop
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rcx]
lea r8, [rsp + 0x220]
mov rdx, qword [rsp + 0xf0]
call qword [rax + 0x38]
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x220]
call qword [0x1800a9480]
mov rdi, qword [rsp + 0xc8]
xor r8d, r8d
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x170]
call qword [0x1800a9480]
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xa8], rbx
mov dword [rsp + 0xa0], ebx
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov r9, rdi
mov r8, qword [rsp + 0x160]
xor edx, edx
mov rcx, r13
call fcn.180033910
test al, al
je 0x18003b1b6
mov word [r14], r15w
lea rcx, [rsp + 0x220]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0x170]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0x118]
call fcn.1800546f0
nop
lea rcx, [rsp + 0x148]
call fcn.180015460
nop
lea rcx, [rsp + 0xf0]
call fcn.180053510
nop
lea rcx, [rsp + 0x1a0]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xe8]
call fcn.180053510
nop
lea rcx, [rsp + 0xd8]
call fcn.180053510
xor eax, eax
jmp 0x18003b288
lea rcx, [rsp + 0xf0]
call fcn.180053510
nop
lea rcx, [rsp + 0x1a0]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xe8]
call fcn.180053510
nop
lea rcx, [rsp + 0xd8]
call fcn.180053510
nop
jmp 0x18003b286
lea rcx, [rsp + 0xe8]
call fcn.180053510
nop
lea rcx, [rsp + 0xd8]
call fcn.180053510
xor eax, eax
jmp 0x18003b288
xor eax, eax
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.1800590c0
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret