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
cmp dword [ebp - 0x230], 0
jge 0x408f86
mov eax, dword [ebp - 0x230]
jmp 0x4091bf
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x228]
push eax
call fcn.004063f0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x408fb5
mov eax, dword [ebp - 0x230]
jmp 0x4091bf
cmp dword [ebp + 0x14], 0
je 0x409109
cmp dword [ebp + 0x14], 0x186a0
jne 0x40906d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x858], 0
push 0
push 0
lea ecx, [ebp - 0x858]
push ecx
push 0x400
mov edx, dword [ebp - 0x85c]
push edx
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x40e290
push 0x104
lea eax, [ebp - 0x228]
push eax
call fcn.004063f0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x409036
mov eax, dword [ebp - 0x230]
jmp 0x4091bf
mov ecx, dword [ebp - 0x858]
push ecx
push 0x104
lea edx, [ebp - 0x228]
push edx
call fcn.004063f0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x409068
mov eax, dword [ebp - 0x230]
jmp 0x4091bf
jmp 0x409109
xor eax, eax
mov word [ebp - 0xa68], ax
push 0x206
push 0
lea ecx, [ebp - 0xa66]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0xa
push 0x104
lea edx, [ebp - 0xa68]
push edx
mov eax, dword [ebp + 0x14]
push eax
invalid
invalid
invalid
invalid
inc eax