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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x248
mov rax, qword [0x180031008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rax, rdx
mov r14d, r9d
mov rbx, r8
lea rdx, [rsp + 0x20]
mov edi, ecx
mov esi, 0x103
mov r8d, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r13d, r13d
test eax, eax
jne 0x180004452
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_get_module_path._Error_code__d.
mov r8d, eax
mov ecx, edi
call fcn.18000465c
jmp 0x180004634
cmp eax, esi
jne 0x180004462
lea rdx, str.Failed_to_get_module_path____path_is_too_long.
jmp 0x18000462d
test rbx, rbx
je 0x180004626
or rsi, 0xffffffffffffffff
lea rcx, [rsp + 0x20]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], r13w
jne 0x180004477
inc rax
cmp r14, rax
jb 0x180004626
lea r8, [rsp + 0x20]
mov rdx, r14
mov rcx, rbx
call fcn.18000164c
lea r8, [0x180022d78]
mov rdx, r14
mov rcx, rbx
call fcn.18000157c
mov rbp, rsi
inc rbp
cmp word [rbx + rbp*2], r13w
jne 0x1800044b2
mov rcx, rbx
mov r12d, r13d
call fcn.1800043c4
test al, al
je 0x1800044fe
mov eax, ebp
mov r13d, r14d
sub r13d, ebp
lea rbp, [rbx + rax*2]
mov r9d, r12d
lea r8, [0x180022d7c]
mov rdx, r13
mov rcx, rbp
call fcn.1800041dc
mov rcx, rbx
inc r12d
call fcn.1800043c4
test al, al
jne 0x1800044d7
xor r13d, r13d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800045e5
mov rdx, rbx
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1800045d3
cmp eax, r14d
jae 0x1800045d3
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.180006440
test rax, rax
jne 0x180004549
lea rax, [rsp + 0x20]
jmp 0x18000454d
add rax, 2
mov r8, rax
mov rdx, r14
mov rcx, rbx
call fcn.18000157c
lea r8, [0x180022d78]
mov rdx, r14
mov rcx, rbx
call fcn.18000157c
inc rsi
cmp word [rbx + rsi*2], r13w
jne 0x18000456d
mov rcx, rbx
mov ebp, r13d
call fcn.1800043c4
test al, al
je 0x1800045b2
mov eax, esi
sub r14d, esi
lea rsi, [rbx + rax*2]
mov r9d, ebp
lea r8, [0x180022d7c]
mov rdx, r14
mov rcx, rsi
call fcn.1800041dc
mov rcx, rbx
inc ebp
call fcn.1800043c4
test al, al
jne 0x18000458f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800045e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_create_temp_directory._Error_code__d
jmp 0x180004443
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_get_temp_directory._Error_code__d
jmp 0x180004443
mov r8, rbx
lea rdx, str.Extracting_custom_action_to_temporary_directory:__s_
mov ecx, edi
call fcn.18000465c
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1800019fc
test eax, eax
je 0x180004622
mov r8d, eax
lea rdx, str.Failed_to_extract_to_temporary_directory._Cabinet_error_code__d.
mov ecx, edi
call fcn.18000465c
mov rcx, rbx
call fcn.180004230
jmp 0x180004634
mov al, 1
jmp 0x180004636
lea rdx, str.Temp_directory_buffer_is_NULL_or_too_small.
mov ecx, edi
call fcn.18000465c
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800051e0
add rsp, 0x248
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret