Function at 0x408f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598434
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x5da084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 4], 0
je 0x408fcc
mov al, 1
jmp 0x409924
lea eax, [esi + 0x20]
push eax
lea ecx, [ebp - 0x3a8]
call fcn.00408e40
mov dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
jne 0x40913f
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00570cd0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
jns 0x409062
xor ecx, ecx
mov dword [ebp - 0x23c], 0
movups xmmword [ebp - 0x24c], xmm0
mov dword [ebp - 0x238], 0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409040
sub ecx, edx
sar ecx, 1
push ecx
push 0
lea ecx, [ebp - 0x24c]
call fcn.0040b8b0
jmp 0x40914e
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x234], xmm0
mov dword [ebp - 0x220], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409086
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0040b8b0
push 0xc
push str.AdobeOOBE_
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.0040b580
push 0xb
push str.filesync.db
lea ecx, [ebp - 0x234]
call fcn.0040b580
lea edi, [esi + 8]
lea eax, [ebp - 0x234]
cmp edi, eax
je 0x4090f9
cmp dword [ebp - 0x220], 8
mov ecx, edi
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.0040b270
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x220]
cmp ecx, 8
jb 0x409142
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409133
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40993f
push ecx
push edx
call fcn.0056ebaf
add esp, 8
jmp 0x409142
lea edi, [esi + 8]
push edi
lea ecx, [ebp - 0x24c]
call fcn.0040a540
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
cmp dword [ebp - 0x238], 8
xorps xmm0, xmm0
mov eax, dword [ebp - 0x23c]
cmovae ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x3a4], ecx
mov dword [ebp - 0x39c], eax
movups xmmword [ebp - 0x264], xmm0
cmp eax, 0x7ffffffe
ja 0x409944
mov dword [ebp - 0x250], 7
cmp eax, 8
jae 0x4091c7
push 0x10
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x264]
push ecx
push eax
call fcn.00570750
jmp 0x409220
mov edi, eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4091db
mov edi, 0x7ffffffe
jmp 0x4091e5
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x264]
call fcn.0040c4b0
mov ecx, dword [ebp - 0x39c]
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x250], edi
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x3a4]
push eax
call fcn.00570750
add esp, 0xc
lea ecx, [ebp - 0x394]
mov byte [ebp - 4], 3
call fcn.0040a1e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x264]
cmp dword [ebp - 0x250], 8
mov eax, dword [ebp - 0x254]
cmovae ecx, dword [ebp - 0x264]
lea eax, [ecx + eax*2]
push eax
push ecx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x394]
call fcn.0040aa10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24c]
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x23c]
cmovae ecx, dword [ebp - 0x24c]
lea eax, [ecx + eax*2]
push eax
push ecx
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x394]
call fcn.0040aa10
lea edx, [ebp - 0x2ac]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2f4]
call fcn.00434990
mov dword [ebp - 0x26c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x27c], xmm0
mov dword [ebp - 0x268], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x27c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x26c], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x2f4]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.0040b0e0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x27c]
cmp dword [ebp - 0x268], 8
mov dword [ebp - 0x39c], eax
jb 0x40932b
mov edi, dword [ebp - 0x27c]
mov dword [ebp - 0x39c], edi
jmp 0x409331
lea edi, [ebp - 0x27c]
lea ecx, [ebp - 0x27c]
call fcn.00435af0
mov ecx, dword [ebp - 0x39c]
lea eax, [ecx + eax*2]
push eax
push edi
lea ecx, [ebp - 0x2dc]
call fcn.00430870
lea eax, [ebp - 0x2dc]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x234]
call fcn.0040a540
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 7
call fcn.0040b0e0
lea ecx, [ebp - 0x27c]
call fcn.0040b0e0
movups xmm0, xmmword [ebp - 0x234]
xor eax, eax
lea ecx, [ebp - 0x234]
mov word [ebp - 0x234], ax
movups xmmword [ebp - 0x27c], xmm0
movq xmm0, qword [ebp - 0x224]
movq qword [ebp - 0x26c], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
call fcn.0040b0e0
lea edx, [ebp - 0x2c4]
lea ecx, [ebp - 0x2dc]
call fcn.00434990
mov dword [ebp - 0x284], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x294], xmm0
mov dword [ebp - 0x280], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x294], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x284], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x2dc]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.0040b0e0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 9
call fcn.004306f0
test al, al
jne 0x4094ce
lea edx, [ebp - 0x2ac]
lea ecx, [ebp - 0x2f4]
call fcn.00434990
mov dword [ebp - 0x224], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x234], xmm0
mov dword [ebp - 0x220], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x234], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x224], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x2f4]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.0040b0e0
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xa
call fcn.00430990
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 9
call fcn.0040b0e0
mov byte [ebp - 0x396], 0
jmp 0x4094df
lea ecx, [ebp - 0x294]
call fcn.004306f0
mov byte [ebp - 0x396], al
mov edi, dword [esi]
test edi, edi
je 0x409504
lea ecx, [edi + 4]
mov dword [edi], vtable.FileSyncSqliteDbWrapper.0
call fcn.0040ca10
push 0x44
push edi
call fcn.0056ebaf
add esp, 8
mov dword [esi], 0
push 0x44
call fcn.0056eb7f
mov edi, eax
mov byte [ebp - 0x395], 1
lea eax, [edi + 0xc]
mov dword [ebp - 0x3a0], edi
xorps xmm0, xmm0
mov dword [ebp - 0x39c], eax
add esp, 4
mov dword [edi], vtable.FileSyncSqliteDbWrapper.0
mov dword [edi + 4], vtable.SqliteDBWrapper.0
mov byte [edi + 8], 0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [edi + 0x24]
mov dword [eax], 0
movups xmmword [edi + 0x28], xmm0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 7
mov dword [ebp - 0x3a0], eax
xor eax, eax
mov word [edi + 0x28], ax
mov byte [edi + 0x40], al
mov dword [esi], edi
mov byte [esi + 4], 1
cmp byte [ebp - 0x396], al
jne 0x409591
mov byte [ebp - 0x395], al
jmp 0x409753
lea ecx, [ebp - 0x344]
call fcn.00410670
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x24c]
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x23c]
cmovae ecx, dword [ebp - 0x24c]
lea eax, [ecx + eax*2]
push eax
push ecx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x344]
call fcn.0040aa10
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x234]
cmp dword [ebp - 0x220], 0x10
lea edx, [edi + 0x24]
push 0
cmovae ecx, dword [ebp - 0x234]
push 6
call fcn.004e84d0
mov byte [ebp - 4], 0xb
add esp, 8
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x3a4], eax
cmp ecx, 0x10
jb 0x409642
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409632
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409949
push ecx
push edx
call fcn.0056ebaf
mov eax, dword [ebp - 0x3a4]
add esp, 8
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
test eax, eax
je 0x4096f1
mov ecx, dword [ebp - 0x39c]
push 0x1d
push str.Error_opening_the_database__
call fcn.0040b750
mov edi, dword [ebp - 0x3a0]
push dword [edi]
call fcn.004e7840
mov ecx, dword [ebp - 0x39c]
add esp, 4
push eax
call fcn.0040a680
lea ecx, [ebp - 0x344]
mov dword [edi], 0
mov byte [ebp - 4], 9
call fcn.004105f0
mov edi, dword [esi]
mov byte [ebp - 0x395], 0
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x4096c6
xor edx, edx
call fcn.004e5fe0
mov dword [edi + 0x24], 0
mov edi, dword [esi]
test edi, edi
je 0x4096e5
lea ecx, [edi + 4]
mov dword [edi], vtable.FileSyncSqliteDbWrapper.0
call fcn.0040ca10
push 0x44
push edi
call fcn.0056ebaf
add esp, 8
mov dword [esi], 0
mov byte [esi + 4], 0
jmp 0x409753
mov esi, dword [edi + 0x24]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x409705
push eax
call dword [0x5dac80]
add esp, 4
mov eax, dword [esi + 0xc]
mov dword [esi + 0x1c0], 0x4e67b0
mov dword [esi + 0x1c4], esi
mov dword [esi + 0x1c8], 0
mov dword [esi + 0x1f4], 0
test eax, eax
je 0x40973a
push eax
call dword [0x5dac88]
add esp, 4
mov dword [esi + 0x1f4], 0x7d0
lea ecx, [ebp - 0x344]
mov byte [edi + 8], 1
call fcn.004105f0
lea ecx, [ebp - 0x294]
call fcn.0040b0e0
lea ecx, [ebp - 0x27c]
call fcn.0040b0e0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2b0]
cmp ecx, 0x10
jb 0x4097a7
mov edx, dword [ebp - 0x2c4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40979d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40994e
push ecx
push edx
call fcn.0056ebaf
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x298]
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], 0
cmp ecx, 0x10
jb 0x409800
mov edx, dword [ebp - 0x2ac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4097f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40994e
push ecx
push edx
call fcn.0056ebaf
add esp, 8
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0xf
mov byte [ebp - 0x2ac], 0
call fcn.0040a160
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x250]
cmp ecx, 8
jb 0x40986a
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409860
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40994e
push ecx
push edx
call fcn.0056ebaf
add esp, 8
xor eax, eax
mov dword [ebp - 0x254], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
cmp ecx, 8
jb 0x4098ca
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4098c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40994e
push ecx
push edx
call fcn.0056ebaf
add esp, 8
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov dword [ebp - 4], 0xd
mov eax, 0x80000000
mov ecx, dword [ebp - 0x3a8]
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x40991e
cmp eax, 0x80000000
jle 0x40991e
lock bts dword [ecx], 0x1e
jb 0x40991e
call fcn.00408db0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, byte [ebp - 0x395]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eb71
mov esp, ebp
pop ebp
ret
call fcn.00578112
call fcn.00407580
call fcn.00578112
call fcn.00578112
int3