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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1002c004]
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 0x10003df3
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.10003ff9
add esp, 0xc
xor al, al
jmp 0x10003fe9
cmp eax, edi
jne 0x10003e08
push str.Failed_to_get_module_path____path_is_too_long.
push dword [ebp + 8]
call fcn.10003ff9
pop ecx
pop ecx
jmp 0x10003dec
push ebx
test esi, esi
je 0x10003fd7
lea ecx, [ebp - 0x20c]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10003e1c
mov edi, dword [ebp + 0x14]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp edi, eax
jb 0x10003fd7
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call fcn.100014ae
push 0x100215f0
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 0x10003e5a
sub ebx, ecx
mov dword [ebp - 0x214], edx
push esi
sar ebx, 1
call fcn.10003d7d
test al, al
je 0x10003eae
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.10003bf0
add esp, 0x10
inc ebx
push esi
call fcn.10003d7d
test al, al
mov eax, dword [ebp - 0x210]
jne 0x10003e8a
mov edi, dword [ebp + 0x14]
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10003f98
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10003f8a
cmp eax, edi
jae 0x10003f8a
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.100057fa
pop ecx
pop ecx
test eax, eax
jne 0x10003ef4
lea eax, [ebp - 0x20c]
jmp 0x10003ef7
add eax, 2
push eax
push edi
push esi
call fcn.10001430
push 0x100215f0
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 0x10003f12
sub ebx, ecx
mov dword [ebp - 0x214], edx
push esi
sar ebx, 1
call fcn.10003d7d
test al, al
je 0x10003f63
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.10003bf0
add esp, 0x10
inc ebx
push esi
call fcn.10003d7d
test al, al
mov eax, dword [ebp - 0x210]
jne 0x10003f42
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10003f98
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.10003ff9
add esp, 0xc
jmp 0x10003fe6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_temp_directory._Error_code__d
jmp 0x10003f7d
push esi
push str.Extracting_custom_action_to_temporary_directory:__s_
push dword [ebp + 8]
call fcn.10003ff9
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10001800
test eax, eax
je 0x10003fd3
push eax
push str.Failed_to_extract_to_temporary_directory._Cabinet_error_code__d.
push dword [ebp + 8]
call fcn.10003ff9
add esp, 0xc
push esi
call fcn.10003c0c
jmp 0x10003fe6
mov al, 1
jmp 0x10003fe8
push str.Temp_directory_buffer_is_NULL_or_too_small.
push dword [ebp + 8]
call fcn.10003ff9
pop ecx
pop ecx
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100048e3
leave
ret 0x10