Function at 0x10018a40
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1c1c
call fcn.10084230
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x220]
call fcn.1001a9f0
lea eax, [esp + 0x1a0c]
xor ebx, ebx
push eax
push 0x104
mov dword [esp + 0x16d4], ebx
mov dword [esp + 0x1c1c], ebx
mov dword [esp + 0x16e0], ebx
mov dword [esp + 0x1b18], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x100c6618
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x1388
jae 0x10018ac7
mov dword [esp + 0x15a8], ecx
mov edx, ecx
mov esi, 0x100c6618
lea edi, [esp + 0x220]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebp, dword [esp + 0x1c38]
push 0x5c
push ebp
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x10018b6c
sub eax, ebp
or ecx, 0xffffffff
inc eax
lea esi, [esp + 0x11c]
mov edx, eax
xor eax, eax
mov dword [esp + 0x14], esi
push 0xaa55
lea edi, [edx + ebp]
push bind
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x20]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x1c], esi
mov esi, edi
mov edi, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + edx + 0x20], bl
lea ecx, [esp + 0x124]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x230]
call fcn.1001a4c0
cmp eax, ebx
jne 0x10018c3d
lea eax, [esp + 0x10]
test eax, eax
je 0x10018c11
mov eax, dword [esp + 0x16d0]
cmp eax, 0x3e8
jg 0x10018bf8
je 0x10018bee
cmp eax, 8
ja case.default.0x10018b8d
jmp dword [eax*4 + 0x10018ddc]
mov dword [esp + 0x10], str.No_error
jmp 0x10018c11
mov dword [esp + 0x10], str.Failure_opening_file_to_be_stored_in_cabinet
jmp 0x10018c11
mov dword [esp + 0x10], str.Failure_reading_file_to_be_stored_in_cabinet
jmp 0x10018c11
mov dword [esp + 0x10], str.Insufficient_memory_in_FCI
jmp 0x10018c11
mov dword [esp + 0x10], str.Could_not_create_a_temporary_file
jmp 0x10018c11
mov dword [esp + 0x10], str.Unknown_compression_type
jmp 0x10018c11
mov dword [esp + 0x10], str.Could_not_create_cabinet_file
jmp 0x10018c11
mov dword [esp + 0x10], str.Client_requested_abort
jmp 0x10018c11
mov dword [esp + 0x10], str.Failure_compressing_data
jmp 0x10018c11
mov dword [esp + 0x10], str.Could_not_load_Cabinet.dll
jmp 0x10018c11
cmp eax, 0x3e9
je 0x10018c09
mov dword [esp + 0x10], str.Unknown_error
jmp 0x10018c11
mov dword [esp + 0x10], str.Invalid_parameters
lea ecx, [esp + 0x220]
call fcn.1001a790
mov eax, dword [esp + 0x1c14]
cmp eax, ebx
je 0x10018c2f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1c1c
ret
mov eax, dword [esp + 0x16cc]
cmp eax, ebx
je 0x10018c8f
mov ecx, dword [esp + 0x1c34]
mov edx, dword [esp + 0x1c30]
push 1
push 0x1001a810
push 0x1001a960
push 0x1001a8f0
push ebx
push ecx
push edx
push eax
mov dword [esp + 0x1704], 1
mov dword [esp + 0x16fc], ebx
call dword [esp + 0x1c3c]
add esp, 0x20
cmp eax, ebx
jne 0x10018d50
lea eax, [esp + 0x10]
test eax, eax
je 0x10018d34
mov eax, dword [esp + 0x16d0]
cmp eax, 0x3e8
jg 0x10018d1b
je 0x10018d11
cmp eax, 8
ja case.default.0x10018cb0
jmp dword [eax*4 + 0x10018e00]
mov dword [esp + 0x10], str.No_error
jmp 0x10018d34
mov dword [esp + 0x10], str.Failure_opening_file_to_be_stored_in_cabinet
jmp 0x10018d34
mov dword [esp + 0x10], str.Failure_reading_file_to_be_stored_in_cabinet
jmp 0x10018d34
mov dword [esp + 0x10], str.Insufficient_memory_in_FCI
jmp 0x10018d34
mov dword [esp + 0x10], str.Could_not_create_a_temporary_file
jmp 0x10018d34
mov dword [esp + 0x10], str.Unknown_compression_type
jmp 0x10018d34
mov dword [esp + 0x10], str.Could_not_create_cabinet_file
jmp 0x10018d34
mov dword [esp + 0x10], str.Client_requested_abort
jmp 0x10018d34
mov dword [esp + 0x10], str.Failure_compressing_data
jmp 0x10018d34
mov dword [esp + 0x10], str.Could_not_load_Cabinet.dll
jmp 0x10018d34
cmp eax, 0x3e9
je 0x10018d2c
mov dword [esp + 0x10], str.Unknown_error
jmp 0x10018d34
mov dword [esp + 0x10], str.Invalid_parameters
lea ecx, [esp + 0x220]
call fcn.10019820
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x1c1c
ret
mov eax, dword [esp + 0x16cc]
cmp eax, ebx
je 0x10018d83
push 0x1001a960
push 0x1001a8f0
push ebx
push eax
mov dword [esp + 0x16f4], ebx
mov dword [esp + 0x16ec], ebx
call dword [esp + 0x1c34]
add esp, 0x10
cmp eax, ebx
jne 0x10018db1
lea ecx, [esp + 0x10]
push ebx
push ecx
lea ecx, [esp + 0x228]
call fcn.10019890
lea ecx, [esp + 0x220]
call fcn.10019820
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x1c1c
ret
lea ecx, [esp + 0x220]
call fcn.1001a790
mov eax, dword [esp + 0x1c14]
cmp eax, ebx
je 0x10018dcf
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c1c
ret