Function at 0x408b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c4c0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xa5c
mov eax, dword [0x412018]
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 [0x4127a4]
test eax, eax
jne 0x408b62
call fcn.00408a80
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x41279c]
jle 0x408b74
xor eax, eax
jmp 0x4091bf
mov dword [ebp - 0x18], 0x40e1e8
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 [0x4127a0], 0
jne 0x408e6c
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 0x408c05
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4091bf
lea eax, [ebp - 0x850]
push eax
push 0x104
lea ecx, [ebp - 0x648]
push ecx
call fcn.004063a0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x408c37
mov eax, dword [ebp - 0x230]
jmp 0x4091bf
push str.AdobeArmService.log
push 0x104
lea edx, [ebp - 0x648]
push edx
call fcn.004063f0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x408c67
mov eax, dword [ebp - 0x230]
jmp 0x4091bf
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 [0x4127a0], eax
cmp dword [0x4127a0], 0xffffffff
jne 0x408d48
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.004063a0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x408ce0
mov eax, dword [ebp - 0x230]
jmp 0x4091bf
push str.AdobeArmService_NotLocked.log
push 0x104
lea ecx, [ebp - 0x648]
push ecx
call fcn.004063f0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x408d10
mov eax, dword [ebp - 0x230]
jmp 0x4091bf
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 [0x4127a0], eax
cmp dword [0x4127a0], 0xffffffff
jne 0x408d48
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4091bf
push 0
mov eax, dword [0x4127a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jbe 0x408dee
mov dword [ebp - 4], 0
push 2
push 0
push 0
mov ecx, dword [0x4127a0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
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 [0x4127a0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408dad
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4091bf
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [0x4127a0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408dd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4091bf
jmp 0x408de5
mov dword [ebp - 4], 0xffffffff
jmp 0x408e6c
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 [0x4127a0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408e2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4091bf
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 [0x4127a0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4091bf
jmp 0x408e65
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov word [ebp - 0x438], ax
push 0x206
push 0
lea ecx, [ebp - 0x436]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x438]
push edx
call fcn.00408a30
add esp, 4
xor eax, eax
mov word [ebp - 0x228], ax
push 0x206
push 0
lea ecx, [ebp - 0x226]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x408ed9
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4091bd
lea ecx, [ebp - 0x438]
push ecx
push 0x104
lea edx, [ebp - 0x228]
push edx
call fcn.004063a0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x408f0b
mov eax, dword [ebp - 0x230]
jmp 0x4091bf
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x408f48
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x228]
push edx
call fcn.004063f0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x408f48
mov eax, dword [ebp - 0x230]
jmp 0x4091bf
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x408fb5
push 0x40e28c
push 0x104
lea ecx, [ebp - 0x228]
push ecx
call fcn.004063f0
mov dword [ebp - 0x230], eax
add byte [eax], al
add byte [edx + eax - 9], bh
fmul dword [ecx + 0x458bfc45]
cld
pop edi
pop esi
leave
ret
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0x10]
add eax, ebx
cmp dword [ebp + 0xc], eax
jne 0x4091c3
call fcn.00409001
iretd
invalid
cmp byte [eax], al
jne 0x4091d2
mov eax, dword [esi + 0x14]
add dword [ebp - 0x10], 4
inc ebx
dec eax
cmp ebx, eax
jbe 0x4091a8
jmp 0x409194
mov eax, dword [edi + ebx*4]
shl eax, 6
add eax, dword [ebp + 8]
jmp 0x409196