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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d200
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xa5c
mov eax, dword [0x413018]
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
movzx eax, byte [0x41380c]
test eax, eax
jne 0x409452
call fcn.00409370
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x413804]
jle 0x409464
xor eax, eax
jmp 0x409aaf
mov dword [ebp - 0x18], 0x40f270
mov dword [ebp - 0x22c], str.error_writing_to_file:
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
lea eax, [eax + eax + 2]
mov dword [ebp - 0x1c], eax
cmp dword [0x413808], 0
jne 0x40975c
xor ecx, ecx
mov word [ebp - 0x648], cx
push 0x206
push 0
lea edx, [ebp - 0x646]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x850], ax
push 0x206
push 0
lea ecx, [ebp - 0x84e]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x850]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4094f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409aaf
lea eax, [ebp - 0x850]
push eax
push 0x104
lea ecx, [ebp - 0x648]
push ecx
call fcn.00406370
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x409527
mov eax, dword [ebp - 0x230]
jmp 0x409aaf
push str.AdobeArmService.log
push 0x104
lea edx, [ebp - 0x648]
push edx
call fcn.004063c0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x409557
mov eax, dword [ebp - 0x230]
jmp 0x409aaf
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x413808], eax
cmp dword [0x413808], 0xffffffff
jne 0x409638
push 0x104
push 0
lea ecx, [ebp - 0x648]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x850]
push edx
push 0x104
lea eax, [ebp - 0x648]
push eax
call fcn.00406370
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x4095d0
mov eax, dword [ebp - 0x230]
jmp 0x409aaf
push str.AdobeArmService_NotLocked.log
push 0x104
lea ecx, [ebp - 0x648]
push ecx
call fcn.004063c0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x409600
mov eax, dword [ebp - 0x230]
jmp 0x409aaf
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x648]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x413808], eax
cmp dword [0x413808], 0xffffffff
jne 0x409638
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409aaf
push 0
mov eax, dword [0x413808]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jbe 0x4096de
mov dword [ebp - 4], 0
push 2
push 0
push 0
mov ecx, dword [0x413808]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
mov dword [ebp - 4], 2
mov ecx, 0xfeff
mov word [ebp - 0x854], cx
push 0
lea edx, [ebp - 0x14]
push edx
push 2
lea eax, [ebp - 0x854]
push eax
mov ecx, dword [0x413808]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40971c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409aaf
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [0x413808]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x409746
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409aaf
jmp 0x409755
mov dword [ebp - 4], 0xffffffff