Function at 0x140023240
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rax, qword [rcx + 0x290]
xor r12d, r12d
mov qword [rsp + 0x48], rdx
mov r15, rdx
mov qword [rsp + 0x50], rcx
mov r13, rcx
test rax, rax
jne 0x140023299
mov eax, 0x80004003
jmp 0x140023dba
mov qword [rcx + 0x298], rax
mov ecx, 0xc8
call fcn.140001460
test rax, rax
je 0x140023db5
mov rcx, rax
call fcn.14001fd4c
mov rdi, rax
test rax, rax
je 0x140023db5
mov rax, qword [r13 + 0x290]
lea r8, [rsp + 0x60]
mov r14d, 0x104
mov qword [rdi + 0xc0], rax
mov r9d, r14d
lea rdx, [0x14004e3c0]
mov rcx, r15
call fcn.1400263a8
or rsi, 0xffffffffffffffff
test eax, eax
js 0x14002353e
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14005ae20], eax
jg 0x140023de5
mov r15, qword [0x14005ae18]
lea rax, [rsp + 0x60]
mov rbx, rsi
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x14002332d
inc rbx
mov eax, 2
mul rbx
cmovo rax, rsi
mov rcx, rax
call fcn.1400014a0
mov r14, rax
test rax, rax
je 0x140023520
lea r8, [rsp + 0x60]
mov rdx, rbx
mov rcx, rax
call fcn.140010dd0
test eax, eax
jns 0x14002337b
mov rcx, r14
call fcn.140001454
jmp 0x140023520
mov rdx, r12
mov qword [rsp + 0x40], rdi
mov r8d, 1
mov qword [rsp + 0x30], rdx
xor r9d, r9d
mov dword [rsp + 0x38], r8d
mov esi, r9d
mov rbx, r14
mov r13, r14
mov edi, r12d
movzx ecx, word [r13]
test ecx, ecx
je 0x140023419
sub ecx, 0x2c
je 0x14002341e
sub ecx, 1
je 0x1400233fa
sub ecx, 0x26
je 0x1400233c3
cmp ecx, 0x20
jne 0x1400234f9
movsxd rax, edi
lea rdx, str.skip
lea rcx, [r14 + rax*2]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
test eax, eax
jne 0x1400234f4
mov r8d, r9d
mov dword [rsp + 0x38], r9d
jmp 0x1400234f9
movsxd rdx, edi
mov r12d, 1
inc rdx
mov word [r13], r9w
lea rdx, [r14 + rdx*2]
mov qword [rsp + 0x30], rdx
jmp 0x1400234f9
mov dword [rsp + 0x38], r9d
or r8, 0xffffffffffffffff
mov word [r13], r9w
test rbx, rbx
je 0x140023443
mov rax, r8
inc rax
cmp word [rbx + rax*2], r9w
jne 0x14002342f
mov ecx, 1
test rax, rax
jne 0x140023446
mov ecx, r9d
test rdx, rdx
je 0x140023462
mov rax, r8
inc rax
cmp word [rdx + rax*2], r9w
jne 0x14002344e
test rax, rax
mov eax, 1
jne 0x140023465
mov eax, r9d
mov esi, r9d
test ecx, ecx
je 0x1400234c4
mov rcx, rbx
test eax, eax
jne 0x14002349a
call fcn.14001eb30
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
mov esi, r9d
test r12d, r12d
je 0x140023491
cmp r15, rax
setae sil
jmp 0x1400234e7
cmp r15, rax
sete sil
jmp 0x1400234e7
call fcn.14001eb30
mov rcx, qword [rsp + 0x30]
mov rbx, rax
call fcn.14001eb30
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
cmp rbx, r15
ja 0x1400234e7
cmp rax, r15
jb 0x1400234e7
lea esi, [r9 + 1]
jmp 0x1400234e7
test eax, eax
je 0x1400234e7
mov rcx, rdx
call fcn.14001eb30
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
mov esi, r9d
test r12d, r12d
je 0x140023491
cmp r15, rax
setbe sil
movsxd rbx, edi
mov r12d, r9d
inc rbx
lea rbx, [r14 + rbx*2]
mov r8d, dword [rsp + 0x38]
inc edi
add r13, 2
test esi, esi
jne 0x14002350c
test r8d, r8d
jne 0x1400233a2
mov rcx, r14
call fcn.140001454
mov rdi, qword [rsp + 0x40]
xor r12d, r12d
test esi, esi
jne 0x14002352a
mov ebx, 1
jmp 0x140023d8a
mov r15, qword [rsp + 0x48]
or rsi, 0xffffffffffffffff
mov r13, qword [rsp + 0x50]
mov r14d, 0x104
mov r9, r14
lea r8, [rsp + 0x60]
lea rdx, str.INSTALLTYPE
mov rcx, r15
call fcn.1400263a8
mov ebx, eax
test eax, eax
jns 0x1400235a3
lea r8, str.INSTALLTYPE
lea rdx, str.ERROR:_XML_Parser:_Missing_required_Package_attribute__S._r_n
mov ecx, 2
call fcn.140019b1c
mov rcx, rdi
call fcn.140020134
mov edx, 0xc8
mov rcx, rdi
call fcn.140001818
mov r8d, ebx
lea rdx, str.ERROR:_XML_Parser:_Failed_to_add_package_information_from_XML.__Result:_0x_x._r_n
mov ecx, 2
call fcn.140019b1c
mov eax, ebx
jmp 0x140023dba
lea rdx, str.advinf
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x1400235c7
lea ecx, [rax + 3]
jmp 0x140023673
lea rdx, [0x14004e240]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x1400235eb
lea ecx, [rax + 1]
jmp 0x140023673
lea rdx, [0x14004e528]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14002360c
lea ecx, [rax + 2]
jmp 0x140023673
lea rdx, str.extinf
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14002362d
lea ecx, [rax + 4]
jmp 0x140023673
lea rdx, str.setupapiinf
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14002364e
lea ecx, [rax + 5]
jmp 0x140023673
lea rdx, str.buinf
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
mov ecx, r12d
mov edx, 6
test eax, eax
cmove ecx, edx
mov dword [rdi + 0x58], ecx
lea r8, [rsp + 0x60]
mov rcx, r15
lea rdx, str.INSTALLFILE
mov r9, r14
call fcn.1400263a8
mov ebx, eax
test eax, eax
jns 0x14002369f
lea r8, str.INSTALLFILE
jmp 0x140023562
mov edx, 0x5c
lea rcx, [rsp + 0x60]
mov ebx, r12d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x18]
lea r14, [rsp + 0x60]
test rax, rax
cmovne r14, rax
test rcx, rcx
je 0x1400236d6
call fcn.140001454
mov qword [rdi + 0x18], r12
inc rsi
cmp word [r14 + rsi*2], r12w
jne 0x1400236d6
mov rcx, 0xffffffffffffffff
inc rsi
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.1400014a0
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x140023711
mov ebx, 0x8007000e
jmp 0x140023573
mov r8, r14
mov rdx, rsi
mov rcx, rax
call fcn.140010dd0
mov r14d, 0x80004005
cmp qword [rdi + 0x30], r12
jne 0x140023924
lea rdx, [rbp + 0x170]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140023924
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140023761
call fcn.140001454
mov qword [rdi + 0x30], r12
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
mov r8, qword [rdi + 0x18]
lea rcx, [rbp + 0x170]
mov edx, 0x104
call fcn.140010d0c
or rcx, 0xffffffffffffffff
lea rax, [rbp + 0x170]
mov rsi, rcx
inc rsi
cmp word [rax + rsi*2], r12w
jne 0x140023797
inc rsi
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.1400014a0
mov qword [rdi + 0x30], rax
test rax, rax
je 0x140023924
lea r8, [rbp + 0x170]
mov rdx, rsi
mov rcx, rax
call fcn.140010dd0
mov rcx, qword [rdi + 0x30]
call fcn.14001ab20
test eax, eax
jne 0x140023924
lea rdx, [rbp + 0x170]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPath2W]
nop dword [rax + rax]
test eax, eax
je 0x140023924
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14002381a
call fcn.140001454
mov qword [rdi + 0x30], r12
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
mov rax, qword [rdi + 0x18]
or r8, 0xffffffffffffffff
mov rcx, r8
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x140023838
lea rdx, [rbp + 0x170]
mov rax, r8
inc rax
cmp word [rdx + rax*2], r12w
jne 0x14002384c
lea rsi, [rax + 0x41]
mov eax, 2
add rsi, rcx
mul rsi
cmovo rax, r8
mov rcx, rax
call fcn.1400014a0
mov qword [rdi + 0x30], rax
test rax, rax
je 0x140023924
mov edx, dword [0x14005a76c]
mov dword [rdi + 0x7c], 1
mov dword [rsp + 0x20], edx
lea ecx, [rdx + 1]
mov dword [0x14005a76c], ecx
mov rcx, rax
lea r9, [rbp + 0x170]
mov rdx, rsi
lea r8, str._sWMC_4.4lu.tmp
call fcn.140010e44
mov rcx, qword [rdi + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400238ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x1400238fc
cmp eax, 0xb7
jne 0x1400238fc
mov ecx, dword [0x14005a76c]
cmp ecx, 0xffffffff
jae 0x1400238fc
lea eax, [rcx + 1]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rdi + 0x30]
mov dword [0x14005a76c], eax
jmp 0x14002389b
mov ebx, r14d
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140023918
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x30]
mov r8, qword [rdi + 0x18]
mov rdx, rsi
call fcn.140010d0c
test ebx, ebx
js 0x140023573
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, str.MOREINSTALLINFO
mov rcx, r15
call fcn.1400263a8
test eax, eax
js 0x1400239bc
lea rbx, [rdi + 0x28]
test rbx, rbx
je 0x1400239bc
mov rcx, qword [rbx]
test rcx, rcx
je 0x140023963
call fcn.140001454
mov qword [rbx], r12
or rcx, 0xffffffffffffffff
lea rax, [rsp + 0x60]
mov rsi, rcx
inc rsi
cmp word [rax + rsi*2], r12w
jne 0x14002396f
inc rsi
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.1400014a0
mov qword [rbx], rax
test rax, rax
je 0x1400239bc
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, rax
call fcn.140010dd0
test eax, eax
jns 0x1400239bc
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400239bc
call fcn.140001454
mov qword [rbx], r12
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, str.PACKAGESIZE
mov rcx, r15
call fcn.1400263a8
test eax, eax
js 0x1400239f5
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wtoi]
nop dword [rax + rax]
movsxd rcx, eax
mov qword [rdi + 0xa8], rcx
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, str.INSTALLEDSIZE
mov rcx, r15
call fcn.1400263a8
test eax, eax
js 0x140023a2e
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wtoi]
nop dword [rax + rax]
movsxd rcx, eax
mov qword [rdi + 0xa0], rcx
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, str.SOURCEURL
mov rcx, r15
call fcn.1400263a8
test eax, eax
js 0x140023d26
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14002b748
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, str.VERSION
mov rcx, r15
call fcn.1400263a8
test eax, eax
js 0x140023aed
lea rbx, [rdi + 0x20]
test rbx, rbx
je 0x140023aed
mov rcx, qword [rbx]
test rcx, rcx
je 0x140023a94
call fcn.140001454
mov qword [rbx], r12
or rcx, 0xffffffffffffffff
lea rax, [rsp + 0x60]
mov rsi, rcx
inc rsi
cmp word [rax + rsi*2], r12w
jne 0x140023aa0
inc rsi
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.1400014a0
mov qword [rbx], rax
test rax, rax
je 0x140023aed
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, rax
call fcn.140010dd0
test eax, eax
jns 0x140023aed
mov rcx, qword [rbx]
test rcx, rcx
je 0x140023aed
call fcn.140001454
mov qword [rbx], r12
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, str.IGNORERESULT
mov rcx, r15
call fcn.1400263a8
test eax, eax
js 0x140023b2e
lea rdx, [0x14004e628]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
sete al
mov byte [rdi + 0x94], al
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, str.SUPPORTEDRANGE
mov rcx, r15
call fcn.1400263a8
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, str.BETA
mov rcx, r15
call fcn.1400263a8
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, [0x14004e640]
mov rcx, r15
call fcn.1400263a8
test eax, eax
js 0x140023bf2
lea rbx, [rdi + 0x40]
test rbx, rbx
je 0x140023bf2
mov rcx, qword [rbx]
test rcx, rcx
je 0x140023b99
call fcn.140001454
mov qword [rbx], r12
or rcx, 0xffffffffffffffff
lea rax, [rsp + 0x60]
mov rsi, rcx
inc rsi
cmp word [rax + rsi*2], r12w
jne 0x140023ba5
inc rsi
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.1400014a0
mov qword [rbx], rax
test rax, rax
je 0x140023bf2
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, rax
call fcn.140010dd0
test eax, eax
jns 0x140023bf2
mov rcx, qword [rbx]
test rcx, rcx
je 0x140023bf2
call fcn.140001454
mov qword [rbx], r12
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, str.DISPLAYNAME
mov rcx, r15
call fcn.1400263a8
test eax, eax
js 0x140023c82
lea rbx, [rdi + 0x48]
test rbx, rbx
je 0x140023c82
mov rcx, qword [rbx]
test rcx, rcx
je 0x140023c29
call fcn.140001454
mov qword [rbx], r12
or rcx, 0xffffffffffffffff
lea rax, [rsp + 0x60]
mov rsi, rcx
inc rsi
cmp word [rax + rsi*2], r12w
jne 0x140023c35
inc rsi
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.1400014a0
mov qword [rbx], rax
test rax, rax
je 0x140023c82
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, rax
call fcn.140010dd0
test eax, eax
jns 0x140023c82
mov rcx, qword [rbx]
test rcx, rcx
je 0x140023c82
call fcn.140001454
mov qword [rbx], r12
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, str.UNINSTALL
mov rcx, r15
call fcn.1400263a8
test eax, eax
js 0x140023cad
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14002b938
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, str.UPDATEEXE
mov rcx, r15
call fcn.1400263a8
test eax, eax
js 0x140023cf1
lea rdx, [0x14004e628]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
mov ecx, r12d
test eax, eax
sete cl
mov dword [rdi + 0x90], ecx
cmp qword [rdi + 8], r12
jne 0x140023cfd
cmp qword [rdi + 0x18], r12
je 0x140023d74
mov rbx, qword [r13 + 0x290]
mov rax, qword [rbx + 0x88]
test rax, rax
jne 0x140023d63
lea ecx, [rax + 0x10]
call fcn.140001460
test rax, rax
je 0x140023d50
mov qword [rax], r12
mov qword [rax + 8], r12
jmp 0x140023d53
mov rcx, qword [rdi + 0x30]
call fcn.14001ab20
test eax, eax
jne 0x140023a5d
lea rdx, str.ERROR:_XML_Parser:_No_install_available_locally__URL_not_provided._r_n
lea ecx, [rax + 2]
call fcn.140019ae0
mov ebx, 0x80070002
jmp 0x140023573
mov rax, r12
mov qword [rbx + 0x88], rax
test rax, rax
je 0x140023707
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.140023e20
mov r14d, eax
mov ebx, r14d
test r14d, r14d
js 0x140023573
cmp r14d, 1
jne 0x14002359c
mov rcx, rdi
call fcn.140020134
mov edx, 0xc8
mov rcx, rdi
call fcn.140001818
lea rdx, str.XML_Parser:_Deliberately_did_not_add_package_information_from_XML._r_n
mov ecx, 4
call fcn.140019ae0
jmp 0x14002359c
mov eax, 0x8007000e
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400017f0
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14005ae20]
call fcn.1400027e8
cmp dword [0x14005ae20], esi
jne 0x14002331e
call fcn.14001b6b0
lea rcx, [0x14005ae20]
mov qword [0x14005ae18], rax
call fcn.140002780
jmp 0x14002331e