Function at 0x4214a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575b00
mov eax, dword fs:[0]
push eax
mov eax, 0x3008
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 esi, ecx
mov dword [ebp - 0x3014], esi
push 0x27ff
lea eax, [ebp - 0x300f]
push 0
mov dword [ebp - 4], 1
push eax
mov byte [ebp - 0x3010], 0
call fcn.00549e40
push 0x3ff
lea ecx, [ebp - 0x80f]
push 0
push ecx
mov byte [ebp - 0x810], 0
call fcn.00549e40
add esp, 0x18
push 1
push 0x23
lea edx, [ebp - 0x810]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.1905Cache2
call ebx
inc eax
cmp eax, 0x3fffffff
jg 0x42157e
lea edi, [eax + eax]
mov eax, edi
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x421578
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
mov esi, dword [ebp - 0x3014]
jmp 0x421580
mov esi, dword [ebp - 0x3014]
xor eax, eax
push str.LocalData.db
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x3010]
push str._s_s_s
push ecx
call fcn.00546876
push 0x3ff
lea edx, [ebp - 0x40f]
push 0
push edx
mov byte [ebp - 0x410], 0
call fcn.00549e40
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
add esp, 0x20
cmp eax, 3
ja case.default.0x4215ca
jmp dword [eax*4 + 0x4217a8]
mov eax, dword [str.delete_from_LoadTable]
mov ecx, dword [0x5a935c]
mov edx, dword [0x5a9360]
mov dword [ebp - 0x410], eax
mov eax, dword [0x5a9364]
mov dword [ebp - 0x40c], ecx
mov ecx, dword [0x5a9368]
mov dword [ebp - 0x408], edx
mov dx, word [0x5a936c]
mov dword [ebp - 0x404], eax
mov dword [ebp - 0x400], ecx
mov word [ebp - 0x3fc], dx
push esi
push 0
lea esi, [ebp - 0x410]
lea ecx, [ebp - 0x3010]
call fcn.00409aa0
add esp, 8
push 0x5e9800
call fcn.00420380
jmp case.default.0x4215ca
mov edi, dword [esi + 0x278]
test edi, edi
jne 0x42164d
xor eax, eax
jmp 0x421672
push edi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x42165c
xor eax, eax
jmp 0x421672
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040c9b0
push eax
lea eax, [ebp - 0x410]
push str.delete_from_LoadTable_where_FilmID_s
push eax
call fcn.00546876
mov ecx, dword [ebp - 0x3014]
push ecx
push 0
lea esi, [ebp - 0x410]
lea ecx, [ebp - 0x3010]
call fcn.00409aa0
add esp, 0x14
push 1
jmp 0x42172b
mov edx, dword [ebp - 0x3014]
mov ecx, 0xa
mov esi, str.delete_from_LoadTable_where_LoadFlag1
lea edi, [ebp - 0x410]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push edx
jmp 0x42161a
mov edi, dword [esi + 0x278]
test edi, edi
jne 0x4216d5
xor eax, eax
jmp 0x4216fa
push edi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x4216e4
xor eax, eax
jmp 0x4216fa
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040c9b0
push eax
lea eax, [ebp - 0x410]
push str.delete_from_LoadTable_where__LoadFlag1_and_FilmID_s
push eax
call fcn.00546876
mov ecx, dword [ebp - 0x3014]
push ecx
push 0
lea esi, [ebp - 0x410]
lea ecx, [ebp - 0x3010]
call fcn.00409aa0
add esp, 0x14
push 0
lea ecx, [ebp + 0x10]
mov edx, 0x5e9800
call fcn.004206d0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42175b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421781
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x3024]
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 0xc