Function at 0x420930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5735fb
mov eax, dword fs:[0]
push eax
mov eax, 0x5414
call fcn.0054a430
mov eax, dword [0x5dbcc8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x27ff
mov esi, ecx
lea ecx, [ebp - 0x540f]
push 0
push ecx
mov dword [ebp - 0x541c], eax
mov byte [ebp - 0x5410], 0
call fcn.00549e40
push 0x27ff
lea edx, [ebp - 0x2c0f]
push 0
push edx
mov byte [ebp - 0x2c10], 0
call fcn.00549e40
push 0x3ff
lea eax, [ebp - 0x40f]
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.00549e40
add esp, 0x24
push 1
push 0x23
lea ecx, [ebp - 0x410]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [esi + 0x48]
cmp dword [edx - 0xc], 0x14
jl 0x420a24
push 0x14
lea eax, [ebp - 0x5414]
push eax
lea ecx, [esi + 0x48]
call fcn.0040a440
push eax
lea ecx, [esi + 0x48]
mov dword [ebp - 4], 0
call fcn.0040d610
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5414]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420a24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x48]
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 + 0x8c]
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 + 0x84]
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 + 0x80]
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 + 0x2c]
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 + 0x24]
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 edi, esp
mov eax, dword [esi + 8]
sub eax, 0x10
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 + 4]
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
mov ecx, dword [esi]
add esp, 4
push eax
push ecx
lea edx, [ebp - 0x5410]
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__1__
push edx
call fcn.00546876
add esp, 0x2c
push str.1905Cache2
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x420bb9
lea edi, [eax + eax]
mov eax, edi
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x420bb9
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push str.1905Cache2
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x420bbb
xor eax, eax
push str.LocalData.db
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x2c10]
push str._s_s_s
push ecx
call fcn.00546876
lea edx, [ebp - 0x5418]
push edx
lea eax, [ebp - 0x2c10]
xor esi, esi
push eax
mov dword [ebp - 0x5418], esi
call dword [sym.imp.sqlite3.dll_sqlite3_open]
add esp, 0x1c
test eax, eax
jne 0x420c45
mov edx, dword [ebp - 0x541c]
lea ecx, [ebp - 0x5420]
push ecx
mov ecx, dword [ebp - 0x5418]
push edx
push esi
lea eax, [ebp - 0x5410]
push eax
push ecx
mov dword [ebp - 0x5420], esi
call dword [sym.imp.sqlite3.dll_sqlite3_exec]
add esp, 0x14
test eax, eax
je 0x420c35
mov edx, dword [ebp - 0x5418]
push edx
jmp 0x420c3c
mov eax, dword [ebp - 0x5418]
push eax
call dword [sym.imp.sqlite3.dll_sqlite3_close]
add esp, 4
lea esp, [ebp - 0x5430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545eb2
mov esp, ebp
pop ebp
ret 4