Function at 0x424d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573486
mov eax, dword fs:[0]
push eax
mov eax, 0x5410
call fcn.0054a430
mov eax, dword [0x5dbcc8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x27ff
lea eax, [ebp - 0x2c0f]
push 0
push eax
mov byte [ebp - 0x2c10], 0
call fcn.00549e40
push 0x27ff
lea ecx, [ebp - 0x540f]
push 0
push ecx
mov byte [ebp - 0x5410], 0
call fcn.00549e40
push 0x3ff
lea edx, [ebp - 0x40f]
push 0
push edx
mov byte [ebp - 0x410], 0
call fcn.00549e40
add esp, 0x24
push 1
push 0x23
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, dword [esi + 0xd84]
cmp dword [ecx - 0xc], 0x14
jl 0x424e01
push 0x14
lea edx, [ebp - 0x541c]
push edx
lea ecx, [esi + 0xd84]
call fcn.0040a440
push eax
lea ecx, [esi + 0xd84]
mov dword [ebp - 4], 0
call fcn.0040d610
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x541c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424e01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004457a5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x424e1b
push 0x80004005
call fcn.0040d6e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x5418], eax
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0xd30]
push ecx
lea edx, [ebp - 0x5418]
push 0x5a55b0
push edx
call fcn.0040cb10
mov ebx, dword [ebp - 0x5418]
add esp, 8
add ebx, 0xfffffff0
mov dword [ebp - 0x5414], esp
mov edi, esp
push ebx
call fcn.0040d710
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004047d0
add esp, 4
push eax
mov eax, dword [esi + 0xd84]
push ecx
sub eax, 0x10
mov dword [ebp - 0x5414], esp
mov edi, esp
push eax
call fcn.0040d710
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004047d0
add esp, 4
push eax
mov eax, dword [esi + 0xdc8]
push ecx
sub eax, 0x10
mov dword [ebp - 0x5414], esp
mov edi, esp
push eax
call fcn.0040d710
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004047d0
add esp, 4
push eax
mov eax, dword [esi + 0xdc0]
push ecx
sub eax, 0x10
mov dword [ebp - 0x5414], esp
mov edi, esp
push eax
call fcn.0040d710
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004047d0
add esp, 4
push eax
mov eax, dword [esi + 0xdbc]
push ecx
sub eax, 0x10
mov dword [ebp - 0x5414], esp
mov edi, esp
push eax
call fcn.0040d710
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004047d0
add esp, 4
push eax
push ecx
mov dword [ebp - 0x5414], esp
mov eax, dword [esi + 0xd68]
sub eax, 0x10
mov edi, esp
push eax
call fcn.0040d710
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004047d0
add esp, 4
push eax
mov eax, dword [esi + 0xd60]
push ecx
sub eax, 0x10
mov dword [ebp - 0x5414], esp
mov edi, esp
push eax
call fcn.0040d710
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004047d0
add esp, 4
push eax
mov eax, dword [esi + 0xd44]
push ecx
sub eax, 0x10
mov dword [ebp - 0x5414], esp
mov edi, esp
push eax
call fcn.0040d710
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004047d0
add esp, 4
push eax
mov eax, dword [esi + 0xd40]
push ecx
sub eax, 0x10
mov dword [ebp - 0x5414], esp
mov edi, esp
push eax
call fcn.0040d710
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004047d0
add esp, 4
push eax
mov eax, dword [esi + 0xd3c]
push eax
lea ecx, [ebp - 0x2c10]
push str.Insert_into_LoadTable_Type__FilmID__ContentID__Title__ImgAddr___TotalCap__LoadCap__SavePath__Actor___LoadFlag___values__d___s___s___s___s____s___s___s___s___s__
push ecx
call fcn.00546876
add esp, 0x30
push str.1905Cache2
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x425028
add eax, eax
mov dword [ebp - 0x541c], eax
call fcn.0054bbf0
mov edi, esp
test edi, edi
je 0x425028
mov edx, dword [ebp - 0x541c]
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push str.1905Cache2
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x42502a
xor eax, eax
push str.LocalData.db
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x5410]
push str._s_s_s
push ecx
call fcn.00546876
lea edx, [ebp - 0x5418]
push edx
lea eax, [ebp - 0x5410]
xor edi, edi
push eax
mov dword [ebp - 0x5418], edi
call dword [sym.imp.sqlite3.dll_sqlite3_open]
add esp, 0x1c
test eax, eax
jne 0x4250ae
mov eax, dword [ebp - 0x5418]
lea ecx, [ebp - 0x5414]
push ecx
push esi
push edi
lea edx, [ebp - 0x2c10]
push edx
push eax
mov dword [ebp - 0x5414], edi
call dword [sym.imp.sqlite3.dll_sqlite3_exec]
add esp, 0x14
test eax, eax
je 0x42509e
mov ecx, dword [ebp - 0x5418]
push ecx
jmp 0x4250a5
mov edx, dword [ebp - 0x5418]
push edx
call dword [sym.imp.sqlite3.dll_sqlite3_close]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4250ce
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea esp, [ebp - 0x5428]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545eb2
mov esp, ebp
pop ebp
ret