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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
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 0x10003e1b
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.10004023
add esp, 0xc
xor al, al
jmp 0x10004011
cmp eax, edi
jne 0x10003e30
push str.Failed_to_get_module_path____path_is_too_long.
push dword [ebp + 8]
call fcn.10004023
pop ecx
pop ecx
jmp 0x10003e14
push ebx
test esi, esi
je 0x10003fff
lea ecx, [ebp - 0x20c]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10003e44
mov edi, dword [ebp + 0x14]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp edi, eax
jb 0x10003fff
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call fcn.100014b4
push 0x100215f0
push edi
push esi
call fcn.10001436
mov ebx, esi
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x10003e82
sub ebx, ecx
mov dword [ebp - 0x214], edx
push esi
sar ebx, 1
call fcn.10003da2
test al, al
je 0x10003ed6
lea eax, [esi + ebx*2]
sub edi, ebx
mov ebx, dword [ebp - 0x214]
mov dword [ebp - 0x210], eax
push ebx
push 0x100215f4
push edi
push eax
call fcn.10003c13
add esp, 0x10
inc ebx
push esi
call fcn.10003da2
test al, al
mov eax, dword [ebp - 0x210]
jne 0x10003eb2
mov edi, dword [ebp + 0x14]
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10003fc0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10003fb2
cmp eax, edi
jae 0x10003fb2
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.1000581a
pop ecx
pop ecx
test eax, eax
jne 0x10003f1c
lea eax, [ebp - 0x20c]
jmp 0x10003f1f
add eax, 2
push eax
push edi
push esi
call fcn.10001436
push 0x100215f0
push edi
push esi
call fcn.10001436
mov ebx, esi
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x10003f3a
sub ebx, ecx
mov dword [ebp - 0x214], edx
push esi
sar ebx, 1
call fcn.10003da2
test al, al
je 0x10003f8b
lea eax, [esi + ebx*2]
sub edi, ebx
mov ebx, dword [ebp - 0x214]
mov dword [ebp - 0x210], eax
push ebx
push 0x100215f4
push edi
push eax
call fcn.10003c13
add esp, 0x10
inc ebx
push esi
call fcn.10003da2
test al, al
mov eax, dword [ebp - 0x210]
jne 0x10003f6a
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10003fc0
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.10004023
add esp, 0xc
jmp 0x1000400e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_temp_directory._Error_code__d
jmp 0x10003fa5
push esi
push str.Extracting_custom_action_to_temporary_directory:__s_
push dword [ebp + 8]
call fcn.10004023
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.100017f7
test eax, eax
je 0x10003ffb
push eax
push str.Failed_to_extract_to_temporary_directory._Cabinet_error_code__d.
push dword [ebp + 8]
call fcn.10004023
add esp, 0xc
push esi
call fcn.10003c2f
jmp 0x1000400e
mov al, 1
jmp 0x10004010
push str.Temp_directory_buffer_is_NULL_or_too_small.
push dword [ebp + 8]
call fcn.10004023
pop ecx
pop ecx
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10004917
mov esp, ebp
pop ebp
ret 0x10