Function at 0x408306
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xc
mov eax, 0x4ad5e0
call fcn.0046c418
mov esi, ecx
push str.InitSession...
lea ecx, [ebp - 0x10]
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x10]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.00414d4f
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [esi + 0xe8], ebx
jne 0x408739
lea edi, [esi + 0x12c]
mov ecx, edi
call fcn.0043d5c1
cmp dword [0x51b28c], 0x1b260
je 0x4086e8
test eax, eax
je 0x4086e8
cmp dword [esi + 0x13c], 1
jge 0x4083c8
xor ecx, ecx
call fcn.00443e3e
push str.No_files_in_Session__setting_NO_UPDATES_mode
lea ecx, [ebp - 0x10]
call fcn.00402829
xor ecx, ecx
mov dword [ebp - 4], 2
push ebx
lea edx, [ebp - 0x10]
inc ecx
call fcn.00414d4f
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402e64
push ecx
mov ecx, esp
push str.noupdates
call fcn.00402829
call fcn.0044f9ae
pop ecx
jmp 0x408420
cmp dword [esi + 0x1b0], ebx
jne 0x40842a
cmp dword [esi + 0xd4], ebx
jne 0x40842a
cmp dword [esi + 0x120], 2
je 0x40842a
cmp dword [esi + 0x1c4], ebx
jne 0x40842a
xor ecx, ecx
call fcn.00443e3e
push str.None_of_the_updates_valid_for_the_current_mode__setting_NO_UPDATES_mode
lea ecx, [ebp - 0x10]
call fcn.00402829
xor ecx, ecx
mov dword [ebp - 4], 3
push ebx
lea edx, [ebp - 0x10]
inc ecx
call fcn.00414d4f
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402e64
mov dword [esi + 0x11c], 3
cmp dword [esi + 0x11c], 3
jne 0x4085a3
push ecx
call fcn.004249ad
cmp dword [esi + 0x104], ebx
jne 0x4086e3
cmp dword [esi + 0x100], ebx
jne 0x4086e3
cmp dword [esi + 0xd4], ebx
jne 0x4086e3
cmp dword [esi + 0x1b0], ebx
jne 0x4086e3
mov eax, dword [esi + 0x2c0]
sub eax, 0x10
push eax
call fcn.00402d9f
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 4
call fcn.00446984
or edi, 0xffffffff
lea ecx, [esi - 0x10]
mov dword [ebp - 4], edi
call fcn.00402e64
push ebx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x18]
push ebx
mov ebx, str.AdobeARM_UCB.exe
mov ecx, ebx
call fcn.00436379
pop ecx
pop ecx
test eax, eax
jne 0x408599
call fcn.00452601
push eax
lea ecx, [ebp - 0x10]
call fcn.00402899
mov esi, 0x104
mov dword [ebp - 4], 5
push esi
lea ecx, [ebp - 0x10]
call fcn.00402bd2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40858b
push edi
lea ecx, [ebp - 0x10]
call fcn.0040ae39
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.00485294
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x40852d
sub ecx, esi
sar ecx, 1
cmp ecx, edi
je 0x40852d
mov eax, dword [esi - 0xc]
dec eax
cmp ecx, eax
je 0x40852d
push 0x4d1898
lea ecx, [ebp - 0x10]
call fcn.0040259d
mov esi, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402459
add esp, 0xc
mov byte [ebp - 4], 6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40857e
push str.Unable_to_delete_backup_instance_file:
lea ecx, [ebp - 0x14]
call fcn.00402829
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
lea edx, [ebp - 0x14]
pop ecx
call fcn.00414e00
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x40858e
mov esi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
mov dword [ebp - 4], edi
call fcn.00402e64
call fcn.00446ce6
jmp 0x4086e3
cmp dword [esi + 0x1b0], ebx
jne 0x4086e3
mov ecx, edi
call fcn.00403224
mov ebx, eax
test ebx, ebx
je 0x408624
mov ecx, edi
call fcn.0043dc30
test eax, eax
je 0x408624
push 0x66a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x4d189c
lea ecx, [ebp - 0x18]
call fcn.00402829
mov dword [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x249f0
lea ecx, [esi + 0x548]
call fcn.00412c86
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor ecx, ecx
call fcn.00443e3e
push ecx
mov ecx, esp
push str.patchedaip
jmp 0x40872e
call fcn.00452601
push eax
lea ecx, [ebp - 0x14]
call fcn.00402899
mov dword [ebp - 4], 9
test ebx, ebx
jne 0x408665
mov eax, dword [esi + 0x2d0]
sub eax, 0x10
push eax
call fcn.00402d9f
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x14]
call fcn.00402e14
jmp 0x4086c4
mov ecx, edi
call fcn.004031f2
test eax, eax
mov edx, str.Acrobat
mov ecx, 0x4cd960
cmove ecx, edx
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040286d
call fcn.00452601
push eax
lea ecx, [ebp - 0x10]
call fcn.00402899
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xb
push eax
mov ecx, edi
call fcn.0043f582
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x4086b8
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0043f50d
mov esi, dword [ebp - 0x10]
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
push esi
call fcn.004025c6
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 9
call fcn.00402e64
lea ecx, [ebp - 0x14]
call fcn.004157e7
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402e64
xor eax, eax
inc eax
jmp 0x40873b
push str.Init_Session_data_failed.
lea ecx, [ebp - 0x18]
call fcn.00402829
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x1b260
lea ecx, [esi + 0x548]
call fcn.00412c86
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402e64
push ecx
mov ecx, esp
push str.initsessiondata
call fcn.00402829
call fcn.0044f9ae
pop ecx
xor eax, eax
call fcn.0046c3e1
ret