Function at 0x1806bd62
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx ecx, byte [0x180fb8f9]
sub esp, 0x24
neg ecx
push ebx
sbb ecx, ecx
and ecx, 0x180fbba0
push esi
push edi
je 0x1806bdad
push 2
pop esi
push esi
push 4
pop edi
push edi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x20]
push str._WriteInstallerDataToTempFile__data_s_
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.18001000
add esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x1806bdc0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [0x180fa268]
mov edi, 0x180fa268
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.18004129
mov esi, eax
lea eax, [ebp - 0xc]
call fcn.18008a22
mov eax, dword [eax]
push esi
push 0
push 0x180e24b0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
mov eax, dword [ebp - 0xc]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.18004250
or eax, 0xffffffff
lea esi, [ebp - 4]
call fcn.18003fe5
test bl, bl
je 0x1806be78
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov ebx, eax
je 0x1806be64
push 0xfffffffffffffffe
pop esi
push esi
push 4
pop edi
push edi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
push ebx
push str._::GetTempFileName_failed__0x08_x_
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.18001000
add esp, 0xc
mov esi, ebx
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18004250
mov eax, esi
jmp 0x1806bdbb
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1806becc
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov ebx, eax
je 0x1806be64
push 0xfffffffffffffffe
pop esi
push esi
push 4
pop edi
push edi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
push ebx
push str._::CreateFile_failed__0x08_x_
jmp 0x1806be4f
mov eax, dword [0x180fa268]
mov ecx, edi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
call fcn.18008da2
push dword [eax]
lea eax, [ebp - 8]
push 0xbf
push 0xbb
push 0xef
push str._c_c_c_s
push eax
call fcn.1800e1a0
mov eax, dword [ebp + 8]
add esp, 0x20
add eax, 0xfffffff0
call fcn.18004250
mov eax, dword [ebp - 8]
push esi
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], esi
mov ecx, dword [eax - 0xc]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1806bf92
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov dword [ebp + 8], eax
je 0x1806bf78
push 0xfffffffffffffffe
pop esi
push esi
push 4
pop edi
push edi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push str._::WriteFile_failed__0x08_x_
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.18001000
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18004250
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
jmp 0x1806be66
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
call fcn.18003d26
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18004250
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x1806be66