Function at 0x140048f60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov r12d, edx
mov r13, rcx
mov r15, qword [0x1401835f8]
mov qword [rbp - 0x10], r15
test r15, r15
jne 0x140048fa1
or eax, 0xffffffff
jmp 0x140049273
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x50], rbx
lea rdx, [0x14012d50c]
test rdx, 0xffffffffffff0000
jne 0x140048fea
movzx edi, dx
mov ecx, edi
call fcn.140002830
test rax, rax
je 0x140048ff7
mov r8d, edi
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.1400029f0
jmp 0x140048ff3
lea rcx, [rbp + 0x50]
call fcn.140035240
mov rbx, qword [rbp + 0x50]
or rsi, 0xffffffffffffffff
test r12d, r12d
jle 0x140049259
lea r14, [r13 + 0x10]
mov eax, dword [r14]
test eax, eax
je 0x14004901d
cmp eax, 1
je 0x14004901d
cmp eax, 2
jne 0x140049248
lea rcx, [rbp - 0x18]
call fcn.140047390
mov rdi, rax
lea rcx, [rbp - 0x20]
call fcn.140047490
nop
lea r8, [0x14012f2f8]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1400162e0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.14001cad0
nop
lea r8, [0x14012f2f8]
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.1400162e0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400490c3
cmp dword [rbx + 0x10], 0
jl 0x1400490b5
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400490b5
call fcn.140001d80
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400490ab
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rinet_addr + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x50], rax
jmp 0x1400490c3
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x50]
call fcn.140002120
nop
mov rdx, qword [rbp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400490e2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140049101
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140049120
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004913f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004915d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov r8, qword [r13 + 8]
lea rdx, [0x14012f6a8]
lea rcx, [rbp + 0x50]
call fcn.140045040
mov r8d, 1
lea rdx, [0x14012f2f8]
lea rcx, [rbp + 0x50]
call fcn.14003bd50
mov r11d, dword [r14]
cmp r11d, 1
jne 0x14004919d
lea r8d, [r11 + 9]
lea rdx, str.Installed_
jmp 0x1400491ae
cmp r11d, 2
jne 0x1400491b7
lea r8d, [r11 + 0xa]
lea rdx, str.Uninstalled_
lea rcx, [rbp + 0x50]
call fcn.14003bd50
mov r8, qword [r13]
lea rdx, [0x14012f6a8]
lea rcx, [rbp + 0x50]
call fcn.140045040
mov r8d, 1
lea rdx, [0x14012f6f4]
lea rcx, [rbp + 0x50]
call fcn.14003bd50
mov rbx, qword [rbp + 0x50]
mov eax, dword [rbx - 0x10]
lea edi, [rax + rax]
cmp dword [rbx - 8], 1
jle 0x140049200
mov edx, eax
lea rcx, [rbp + 0x50]
call fcn.140001fb0
mov rbx, qword [rbp + 0x50]
mov rcx, rsi
test edi, edi
je 0x140049234
mov rdx, rbx
mov r8d, edi
lea r15, [0x14017e9a4]
cmp rcx, 4
jl 0x14004921e
xor ecx, ecx
jmp 0x140049221
inc rcx
movzx eax, byte [rcx + r15]
xor byte [rdx], al
inc rdx
dec r8
jne 0x140049214
mov r15, qword [rbp - 0x10]
movsxd rdx, edi
mov r9, r15
mov r8d, 1
mov rcx, rbx
call fcn.1400d6c94
add r13, 0x18
add r14, 0x18
dec r12
jne 0x140049008
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140049271
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret