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

Disassembly:
push 0x670
mov eax, 0x10012507
call fcn.100110a9
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x634], esi
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x640], edi
cmp byte [0x1001c674], bl
jne 0x1000db94
push 0x1001c345
mov byte [0x1001c345], 1
mov dword [ebp - 4], ebx
call fcn.10011310
or dword [ebp - 4], 0xffffffff
pop ecx
jmp 0x1000db8d
mov byte [0x1001c674], 1
cmp dword [esi + 0x14], 0xffffffff
je 0x1000dba4
mov eax, 0x80004005
jmp 0x1000df14
mov eax, dword [esi + 0xc]
add eax, 0x310
push eax
push dword [ebp - 0x638]
call fcn.10011310
pop ecx
pop ecx
cmp al, 1
je 0x1000de5d
cmp byte [0x1001c674], bl
je 0x1000dbd2
cmp byte [0x1001c345], bl
jne 0x1000db9a
lea eax, [ebp - 0x67c]
push eax
push dword [ebp - 0x638]
call fcn.10011310
movzx eax, al
pop ecx
pop ecx
cmp eax, ebx
je 0x1000dd4c
push str._crossdomain.xml
push dword [ebp - 0x650]
call dword [sym.imp.MSVCR100.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x1000dd40
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x5d4], bl
je 0x1000dd40
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 4], 2
call dword [sym.imp.kernel32.dll_GetTempPathA]
cmp eax, 0x104
ja 0x1000db9a
cmp eax, ebx
je 0x1000db9a
lea eax, [ebp - 0x118]
push eax
push ebx
push 0x1001469c
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
cmp eax, ebx
je 0x1000db9a
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
je 0x1000db9a
push ebx
push SysReAllocString
push str._cross_domain_policy__n_allow_access_from_domain___secure_false____n__cross_domain_policy_
call fcn.10011310
add esp, 0xc
push ebx
lea ecx, [ebp - 0x630]
push ecx
push eax
push str._cross_domain_policy__n_allow_access_from_domain___secure_false____n__cross_domain_policy_
push dword [esi + 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
cmp eax, ebx
je 0x1000db9a
push dword [esi + 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp eax, ebx
je 0x1000db9a
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
je 0x1000db9a
add esi, 0x10
cmp dword [esi], edi
je 0x1000dd0b
push edi
push esi
call fcn.10011310
push 0x104
lea eax, [ebp - 0x62c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push eax
push ebx
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x62c]
push ecx
push 0xe
jmp 0x1000defd
push dword [ebp - 0x678]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x5f0], ebx
je 0x1000db9a
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x638]
mov edi, 0xfde9
push ebx
push edi
mov dword [ebp - 0x634], ebx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x630], eax
cmp eax, ebx
jle 0x1000db9a
push eax
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x63c], eax
cmp eax, ebx
je 0x1000df12
push ebx
push ebx
push dword [ebp - 0x630]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x638]
push ebx
push edi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x634]
push eax
push dword [ebp - 0x63c]
mov dword [ebp - 4], 4
call fcn.10011310
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
push dword [ebp - 0x63c]
mov dword [ebp - 0x630], eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x630], ebx
jne 0x1000db9a
push 0x104
lea eax, [ebp - 0x424]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x634]
push ebx
push edi
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
je 0x1000db9a
mov edi, dword [ebp - 0x640]
add esi, 0x10
cmp dword [esi], edi
je 0x1000de4c
push edi
push esi
call fcn.10011310
lea ecx, [ebp - 0x424]
jmp 0x1000dd32
cmp byte [0x1001c674], bl
je 0x1000de6d
cmp byte [0x1001c345], bl
jne 0x1000de78
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x5d4], bl
jne 0x1000deab
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x5cc], ebx
je 0x1000deab
mov ecx, dword [eax + 0x5ec]
lea edx, [eax + 0x2d4]
push edx
mov dword [ebp - 0x630], ecx
mov ecx, dword [ecx]
push eax
push dword [ebp - 0x630]
call dword [ecx + 0x10]
mov eax, dword [esi + 0xc]
mov dword [eax + 0x5cc], ebx
mov eax, dword [esi + 0xc]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
add eax, 4
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
je 0x1000db9a
lea eax, [esi + 0x10]
cmp dword [eax], edi
je 0x1000dee2
push edi
push eax
call fcn.10011310
mov ecx, dword [esi + 0xc]
mov eax, dword [edi]
add ecx, 4
push ecx
push 0xe
push edi
call dword [eax + 0x10]
mov ecx, dword [esi + 0xc]
add ecx, 0x20c
push ecx
push 0xd
mov eax, dword [edi]
push edi
call dword [eax + 0x10]
mov ecx, dword [edi]
mov eax, 0x3e8
push eax
push eax
push 0xd
push edi
call dword [ecx + 0x14]
xor eax, eax
call fcn.10011105
ret 0x18