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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1002f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x103
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10003e04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_module_path._Error_code__d.
push dword [ebp + 8]
call fcn.1000400a
add esp, 0xc
xor al, al
jmp 0x10003ffa
cmp eax, edi
jne 0x10003e19
push str.Failed_to_get_module_path____path_is_too_long.
push dword [ebp + 8]
call fcn.1000400a
pop ecx
pop ecx
jmp 0x10003dfd
push ebx
test esi, esi
je 0x10003fe8
lea ecx, [ebp - 0x20c]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10003e2d
mov edi, dword [ebp + 0x14]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp edi, eax
jb 0x10003fe8
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call fcn.100014ae
push 0x100245f0
push edi
push esi
call fcn.10001430
mov ebx, esi
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x10003e6b
sub ebx, ecx
mov dword [ebp - 0x214], edx
push esi
sar ebx, 1
call fcn.10003d8e
test al, al
je 0x10003ebf
lea eax, [esi + ebx*2]
sub edi, ebx
mov ebx, dword [ebp - 0x214]
mov dword [ebp - 0x210], eax
push ebx
push 0x100245f4
push edi
push eax
call fcn.10003c01
add esp, 0x10
inc ebx
push esi
call fcn.10003d8e
test al, al
mov eax, dword [ebp - 0x210]
jne 0x10003e9b
mov edi, dword [ebp + 0x14]
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10003fa9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10003f9b
cmp eax, edi
jae 0x10003f9b
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.1000582a
pop ecx
pop ecx
test eax, eax
jne 0x10003f05
lea eax, [ebp - 0x20c]
jmp 0x10003f08
add eax, 2
push eax
push edi
push esi
call fcn.10001430
push 0x100245f0
push edi
push esi
call fcn.10001430
mov ebx, esi
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x10003f23
sub ebx, ecx
mov dword [ebp - 0x214], edx
push esi
sar ebx, 1
call fcn.10003d8e
test al, al
je 0x10003f74
lea eax, [esi + ebx*2]
sub edi, ebx
mov ebx, dword [ebp - 0x214]
mov dword [ebp - 0x210], eax
push ebx
push 0x100245f4
push edi
push eax
call fcn.10003c01
add esp, 0x10
inc ebx
push esi
call fcn.10003d8e
test al, al
mov eax, dword [ebp - 0x210]
jne 0x10003f53
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10003fa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_temp_directory._Error_code__d
push dword [ebp + 8]
call fcn.1000400a
add esp, 0xc
jmp 0x10003ff7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_temp_directory._Error_code__d
jmp 0x10003f8e
push esi
push str.Extracting_custom_action_to_temporary_directory:__s_
push dword [ebp + 8]
call fcn.1000400a
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10001811
test eax, eax
je 0x10003fe4
push eax
push str.Failed_to_extract_to_temporary_directory._Cabinet_error_code__d.
push dword [ebp + 8]
call fcn.1000400a
add esp, 0xc
push esi
call fcn.10003c1d
jmp 0x10003ff7
mov al, 1
jmp 0x10003ff9
push str.Temp_directory_buffer_is_NULL_or_too_small.
push dword [ebp + 8]
call fcn.1000400a
pop ecx
pop ecx
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10004903
leave
ret 0x10