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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x427944], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
jne 0x406b03
call fcn.00406a55
cmp dword [0x427948], 2
jl 0x406fad
push 0x4225a0
call fcn.0040b51e
cmp dword [0x427940], 0
pop ecx
lea edi, [eax*2 + 2]
jne 0x406cc8
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004094e0
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004094e0
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x406b79
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406faf
push ecx
lea eax, [ebp - 0x61c]
mov edx, 0x82
push eax
push ecx
lea ecx, [ebp - 0x414]
call fcn.00403b0e
test eax, eax
js 0x406faf
push str.AdobeArmService.log
mov edx, 0x104
lea ecx, [ebp - 0x414]
call fcn.00403aa0
test eax, eax
js 0x406faf
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x427940], eax
cmp eax, 0xffffffff
jne 0x406c5f
push 0x104
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004094e0
pop ecx
pop ecx
lea eax, [ebp - 0x61c]
mov edx, 0x82
push eax
push ecx
lea ecx, [ebp - 0x414]
call fcn.00403b0e
test eax, eax
js 0x406faf
push str.AdobeArmService_NotLocked.log
mov edx, 0x104
lea ecx, [ebp - 0x414]
call fcn.00403aa0
test eax, eax
js 0x406faf
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x427940], eax
cmp eax, 0xffffffff
je 0x406b6e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x406e6e
push 2
push 0
push 0
push dword [0x427940]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x838]
push eax
push edi
push 0x4225a0
push dword [0x427940]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406b6e
push 0
lea eax, [ebp - 0x838]
push eax
push edi
push 0x4225a0
push dword [0x427940]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406b6e
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.004094e0
add esp, 0xc
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x826]
push eax
movzx eax, word [ebp - 0x828]
push eax
movzx eax, word [ebp - 0x82a]
push eax
movzx eax, word [ebp - 0x82c]
push eax
movzx eax, word [ebp - 0x82e]
push eax
movzx eax, word [ebp - 0x832]
push eax
movzx eax, word [ebp - 0x834]
push eax
push 0x4226b8
lea eax, [ebp - 0x824]
push 0x100
push eax
call fcn.00406a27
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004094e0
add esp, 0x34
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x406d69
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x406fad
push ecx
lea eax, [ebp - 0x824]
mov edx, 0x82
push eax
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00403b0e
test eax, eax
js 0x406faf
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x406dae
push ebx
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.00403aa0
test eax, eax
js 0x406faf
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x406def
push 0x422614
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.00403aa0
test eax, eax
js 0x406faf
push esi
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.00403aa0
test eax, eax
js 0x406faf
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x406ee7
cmp esi, 0x186a0
jne 0x406e91
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
lea ecx, [ebp - 0x83c]
push ebx
push ebx
push ecx
push 0x400
push eax
push ebx
push 0x1100
mov dword [ebp - 0x83c], ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov esi, 0x104
lea ecx, [ebp - 0x20c]
push 0x422618
mov edx, esi
call fcn.00403aa0
test eax, eax
js 0x406faf
push dword [ebp - 0x83c]
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.00403aa0
test eax, eax
jns 0x406eee
jmp 0x406faf
mov eax, 0xfeff
mov word [ebp - 0x83c], ax
lea eax, [ebp - 0x838]
push 0
push eax
push 2
lea eax, [ebp - 0x83c]
push eax
jmp 0x406c91
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004094e0
push 0xa
push 0x104
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.0040ce72
add esp, 0x1c
lea ecx, [ebp - 0x20c]
mov esi, 0x104
mov edx, esi
push str.___Error_Code:
call fcn.00403aa0
test eax, eax
js 0x406faf
lea eax, [ebp - 0x61c]
push eax
jmp 0x406e54
xor ebx, ebx
mov esi, 0x104
lea eax, [ebp - 0x20c]
push str.ISX_SERIALNUMBER
push eax
call fcn.00409264
pop ecx
pop ecx
test eax, eax
je 0x406f47
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004094e0
pop ecx
pop ecx
lea eax, [ebp - 0x824]
mov edx, 0x82
push eax
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00403b0e
test eax, eax
js 0x406faf
push str.Command_line:_Hidden
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.00403aa0
test eax, eax
js 0x406faf
lea eax, [ebp - 0x20c]
push eax
call fcn.0040b51e
pop ecx
push ebx
lea ecx, [ebp - 0x838]
push ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [0x427940]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406b6e
push ebx
lea eax, [ebp - 0x838]
push eax
push edi
push 0x4225a0
push dword [0x427940]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406b6e
push dword [0x427940]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040787a
leave
ret