Function at 0x422b10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57432b
mov eax, dword fs:[0]
push eax
mov eax, 0xd014
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 ebx, ecx
mov edi, edx
lea esi, [ebx + 0x274]
call fcn.004158c0
push 0x5a9954
lea ecx, [ebp - 0xd020]
call fcn.0040cf20
push 0x3ff
lea eax, [ebp - 0x40f]
push 0
mov dword [ebp - 4], 0
push eax
mov byte [ebp - 0x410], 0
call fcn.00549e40
add esp, 0xc
push 1
push 0x1c
lea ecx, [ebp - 0x410]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea esi, [ebp - 0xd018]
call fcn.00403050
mov esi, dword [ebx + 0x27c]
mov dword [ebp - 0xd018], 0x544547
test esi, esi
je 0x422bfd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x422bfd
add eax, eax
mov dword [ebp - 0xd01c], eax
call fcn.0054bbf0
mov edi, esp
test edi, edi
je 0x422bfd
mov edx, dword [ebp - 0xd01c]
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x422bff
xor eax, eax
push eax
lea eax, [ebp - 0xcc18]
push str.http:__pc.mapps.m1905.cn_Film_download_type2id_s
push eax
call fcn.00546876
lea ecx, [ebp - 0xa418]
push ecx
call fcn.00404b10
mov ebx, dword [ebx + 0x27c]
add esp, 0x10
test ebx, ebx
jne 0x422c32
mov dword [ebp - 0xd01c], ebx
jmp 0x422c77
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x422c6f
lea edi, [eax + eax]
mov eax, edi
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x422c6f
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x422c71
xor eax, eax
mov dword [ebp - 0xd01c], eax
push 0x5a52f8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x422cbe
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x422cbe
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push 0x5a52f8
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
mov edi, eax
jmp 0x422cc0
xor edi, edi
push str.1905Cache1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x422d05
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x422d05
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push str.1905Cache1
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x422d07
xor eax, eax
mov edx, dword [ebp - 0xd01c]
push edx
push edi
push eax
lea eax, [ebp - 0x410]
push eax
push str._s_s_sload__s.xml
lea ecx, [ebp - 0x7c18]
push 0x2800
push ecx
call fcn.005468fa
add esp, 0x1c
mov ecx, 0x5e5968
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
mov dword [ebp - 0x2c18], eax
mov eax, dword [ebp - 0xd020]
mov dword [ebp - 0x2c14], 0x402
mov ebx, eax
test eax, eax
je 0x422d94
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x422d94
lea edi, [eax + eax]
mov eax, edi
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x422d94
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x422d96
xor eax, eax
lea edx, [ebp - 0x7c18]
push edx
push eax
push 0x28
lea eax, [ebp - 0x2c10]
push str.type_dwndName_s_saveFile_s
push eax
call fcn.00546876
add esp, 0x14
mov eax, 0xcc08
lea esi, [ebp - 0xd018]
call fcn.0054a430
mov edi, esp
mov ecx, 0x3302
rep movsd dword es:[edi], dword [esi]
call fcn.004028a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd020]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422dfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0xd030]
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