Function at 0x1800043d0
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 0x18000443a
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.180004644
jmp 0x18000461c
cmp eax, esi
jne 0x18000444a
lea rdx, str.Failed_to_get_module_path____path_is_too_long.
jmp 0x180004615
test rbx, rbx
je 0x18000460e
or rsi, 0xffffffffffffffff
lea rcx, [rsp + 0x20]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], r13w
jne 0x18000445f
inc rax
cmp r14, rax
jb 0x18000460e
lea r8, [rsp + 0x20]
mov rdx, r14
mov rcx, rbx
call fcn.18000164c
lea r8, [0x180022d68]
mov rdx, r14
mov rcx, rbx
call fcn.18000157c
mov rbp, rsi
inc rbp
cmp word [rbx + rbp*2], r13w
jne 0x18000449a
mov rcx, rbx
mov r12d, r13d
call fcn.1800043ac
test al, al
je 0x1800044e6
mov eax, ebp
mov r13d, r14d
sub r13d, ebp
lea rbp, [rbx + rax*2]
mov r9d, r12d
lea r8, [0x180022d6c]
mov rdx, r13
mov rcx, rbp
call fcn.1800041c0
mov rcx, rbx
inc r12d
call fcn.1800043ac
test al, al
jne 0x1800044bf
xor r13d, r13d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800045cd
mov rdx, rbx
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1800045bb
cmp eax, r14d
jae 0x1800045bb
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.1800063f0
test rax, rax
jne 0x180004531
lea rax, [rsp + 0x20]
jmp 0x180004535
add rax, 2
mov r8, rax
mov rdx, r14
mov rcx, rbx
call fcn.18000157c
lea r8, [0x180022d68]
mov rdx, r14
mov rcx, rbx
call fcn.18000157c
inc rsi
cmp word [rbx + rsi*2], r13w
jne 0x180004555
mov rcx, rbx
mov ebp, r13d
call fcn.1800043ac
test al, al
je 0x18000459a
mov eax, esi
sub r14d, esi
lea rsi, [rbx + rax*2]
mov r9d, ebp
lea r8, [0x180022d6c]
mov rdx, r14
mov rcx, rsi
call fcn.1800041c0
mov rcx, rbx
inc ebp
call fcn.1800043ac
test al, al
jne 0x180004577
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800045cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_create_temp_directory._Error_code__d
jmp 0x18000442b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_get_temp_directory._Error_code__d
jmp 0x18000442b
mov r8, rbx
lea rdx, str.Extracting_custom_action_to_temporary_directory:__s_
mov ecx, edi
call fcn.180004644
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.180001a14
test eax, eax
je 0x18000460a
mov r8d, eax
lea rdx, str.Failed_to_extract_to_temporary_directory._Cabinet_error_code__d.
mov ecx, edi
call fcn.180004644
mov rcx, rbx
call fcn.180004214
jmp 0x18000461c
mov al, 1
jmp 0x18000461e
lea rdx, str.Temp_directory_buffer_is_NULL_or_too_small.
mov ecx, edi
call fcn.180004644
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800051d0
add rsp, 0x248
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret