Function at 0x419e10
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575d39
mov eax, dword fs:[0]
push eax
mov eax, 0xd98c
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 ecx, dword [ebx + 0x108]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0xcd0]
push edx
mov dword [ebp - 0xd8e0], ebx
call eax
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.DuiLib_u.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
mov ecx, eax
call esi
push eax
lea ecx, [ebp - 0xd8e8]
call fcn.0040cf20
lea ecx, [ebp - 0xcd0]
mov byte [ebp - 4], 2
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov eax, dword [ebp - 0xd8e8]
mov ecx, 0x5a798c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419ebc
test dx, dx
je 0x419eb8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419ebc
add eax, 4
add ecx, 4
test dx, dx
jne 0x419e96
xor eax, eax
jmp 0x419ec1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x419f12
mov edi, dword [ebx + 0xb8]
mov ecx, dword [ebx + 0xbc]
sub ecx, edi
mov eax, 0x63e7063f
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x41a6b4
sub esp, 0xa4
mov edx, esp
mov dword [ebp - 0xd8e4], esp
push edx
call fcn.0040b230
mov ecx, 0x5e634c
call fcn.0041e880
jmp 0x41a6b4
lea eax, [ebp - 0xd8e8]
push 0x5a7994
push eax
call fcn.0040c950
add esp, 8
test al, al
je 0x41a6b4
mov ecx, dword [ebx + 0x114]
mov edx, dword [ecx]
mov eax, dword [edx + 0xb8]
call eax
mov ecx, eax
call esi
push eax
lea ecx, [ebp - 0xd8ec]
call fcn.0040cf20
lea ecx, [ebp - 0xd998]
push ecx
mov byte [ebp - 4], 3
call fcn.0040c1a0
mov byte [ebp - 4], 4
mov esi, dword [ebx + 0x394]
mov ecx, dword [ebx + 0x398]
sub ecx, esi
mov eax, 0x63e7063f
imul ecx
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [ebp - 0xd8dc], 0
je 0x41a05e
xor edx, edx
cmp dword [ebp - 0xd8ec], edx
setne dl
add esi, 0x6c
mov dword [ebp - 0xd8e4], edx
cmp dword [ebp - 0xd8e4], 0
je 0x41a003
mov eax, dword [esi]
mov ecx, dword [ebp - 0xd8ec]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419fdc
test dx, dx
je 0x419fd8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419fdc
add eax, 4
add ecx, 4
test dx, dx
jne 0x419fb6
xor eax, eax
jmp 0x419fe1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x41a00d
mov eax, dword [ebp - 0xd8dc]
inc eax
add esi, 0xa4
mov dword [ebp - 0xd8dc], eax
cmp eax, edi
jb 0x419fa5
jmp 0x41a05e
push 0x80004005
call fcn.0040d6e0
mov esi, dword [ebp - 0xd8dc]
mov ecx, dword [ebx + 0x394]
imul esi, esi, 0xa4
lea eax, [ebx + 0xac]
lea ecx, [ecx + esi + 0x98]
push eax
call fcn.0040d610
mov ecx, dword [ebx + 0x394]
lea edx, [ebx + 0xb0]
lea ecx, [esi + ecx + 0x9c]
push edx
call fcn.0040d610
mov edi, dword [ebx + 0x394]
add edi, esi
lea esi, [ebp - 0xd998]
call fcn.004158c0
mov eax, dword [ebx + 0x14]
cmp eax, 3
jne 0x41a34b
cmp dword [0x5e8808], 0
je 0x41a63d
cmp dword [0x5e8820], 0
je 0x41a63d
xor edi, edi
push 0x3ff
lea eax, [ebp - 0xc0f]
push edi
push eax
mov dword [ebp - 0xd8dc], edi
mov byte [ebp - 0xc10], 0
call fcn.00549e40
mov esi, dword [0x5e8818]
add esp, 0xc
cmp esi, edi
jne 0x41a0ba
mov dword [ebp - 0xd8e0], edi
jmp 0x41a0ed
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41a0d1
mov dword [ebp - 0xd8e0], edi
jmp 0x41a0ed
lea edi, [eax + eax]
mov eax, edi
call fcn.0054bbf0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0040c9b0
mov dword [ebp - 0xd8e0], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jne 0x41a0f8
xor eax, eax
jmp 0x41a121
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41a10b
xor eax, eax
jmp 0x41a121
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040c9b0
mov ecx, dword [ebp - 0xd8e0]
push ecx
push eax
lea edx, [ebp - 0xc10]
push str.id_stoken_s
push edx
call fcn.00546876
lea eax, [ebp - 0xd8e4]
push eax
lea ecx, [ebp - 0xd8dc]
push ecx
lea edx, [ebp - 0xc10]
push edx
call fcn.00409c00
add esp, 0x1c
test al, al
je 0x41a683
cmp dword [ebp - 0xd8dc], 0
je 0x41a683
mov eax, dword [ebp - 0xd8dc]
lea edi, [ebp - 0xc48]
call fcn.00403880
lea eax, [ebp - 0xc2c]
push eax
mov esi, edi
mov byte [ebp - 4], 5
call fcn.00409d00
add esp, 4
mov byte [ebp - 4], 7
call fcn.00403bd0
push 0x3ff
lea ecx, [ebp - 0x40f]
push 0
push ecx
mov byte [ebp - 0x410], 0
call fcn.00549e40
add esp, 0xc
push 1
push 0x1c
lea edx, [ebp - 0x410]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea esi, [ebp - 0xd8d8]
call fcn.00403050
cmp dword [ebp - 0xc18], 0x10
mov eax, dword [ebp - 0xc2c]
mov dword [ebp - 0xd8d8], 0x544547
jae 0x41a1f5
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0xd4d8]
push str.http:__pc.mapps.m1905.cn_Vip_authVipPlay_request_s
push eax
call fcn.00546876
lea ecx, [ebp - 0xacd8]
add esp, 0xc
push ecx
call fcn.00404b10
mov esi, dword [ebx + 0x20]
add esp, 4
test esi, esi
jne 0x41a224
xor ebx, ebx
jmp 0x41a24f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41a237
xor ebx, ebx
jmp 0x41a24f
lea edi, [eax + eax]
mov eax, edi
call fcn.0054bbf0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0040c9b0
mov ebx, eax
push 0x5a52f8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41a266
xor edi, edi
jmp 0x41a282
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push 0x5a52f8
push eax
call fcn.0040c9b0
mov edi, eax
push str.1905Cache1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41a299
xor eax, eax
jmp 0x41a2b3
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push str.1905Cache1
push eax
call fcn.0040c9b0
push ebx
push edi
push eax
lea edx, [ebp - 0x410]
push edx
push str._s_s_s_s.xml
lea eax, [ebp - 0x84d8]
push 0x2800
push eax
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]
lea ecx, [ebp - 0x84d8]
push ecx
push 0x20
lea edx, [ebp - 0x34d0]
push str.type_dsaveFile_s
push edx
mov dword [ebp - 0x34d8], eax
mov dword [ebp - 0x34d4], 0x402
call fcn.00546876
add esp, 0x10
mov eax, 0xcc08
lea esi, [ebp - 0xd8d8]
call fcn.0054a430
mov edi, esp
mov ecx, 0x3302
rep movsd dword es:[edi], dword [esi]
call fcn.004028a0
mov eax, dword [ebp - 0xd8dc]
push eax
call fcn.00444c84
add esp, 4
lea esi, [ebp - 0xc2c]
call fcn.00403bd0
jmp 0x41a683
cmp eax, 4
jne 0x41a63d
cmp dword [0x5e8808], 0
je 0x41a63d
push 0x3ff
lea ecx, [ebp - 0x40f]
push 0
push ecx
mov dword [ebp - 0xd8dc], 0
mov byte [ebp - 0x410], 0
call fcn.00549e40
mov esi, dword [0x5e8818]
add esp, 0xc
test esi, esi
jne 0x41a396
xor ebx, ebx
jmp 0x41a3c1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41a3a9
xor ebx, ebx
jmp 0x41a3c1
lea edi, [eax + eax]
mov eax, edi
call fcn.0054bbf0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0040c9b0
mov ebx, eax
mov edx, dword [ebp - 0xd8e0]
mov edi, dword [edx + 0x20]
test edi, edi
jne 0x41a3d2
xor eax, eax
jmp 0x41a3fb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41a3e5
xor eax, eax
jmp 0x41a3fb
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 ebx
push eax
lea eax, [ebp - 0x410]
push str.id_stoken_s
push eax
call fcn.00546876
lea ecx, [ebp - 0xd8e4]
push ecx
lea edx, [ebp - 0xd8dc]
push edx
lea eax, [ebp - 0x410]
push eax
call fcn.00409c00
add esp, 0x1c
test al, al
je 0x41a683
mov eax, dword [ebp - 0xd8dc]
test eax, eax
je 0x41a683
lea edi, [ebp - 0xc48]
call fcn.00403880
lea ecx, [ebp - 0xc2c]
push ecx
mov esi, edi
mov byte [ebp - 4], 8
call fcn.00409d00
add esp, 4
mov byte [ebp - 4], 0xa
call fcn.00403bd0
push 0x3ff
lea edx, [ebp - 0x80f]
push 0
push edx
mov byte [ebp - 0x810], 0
call fcn.00549e40
add esp, 0xc
push 1
push 0x1c
lea eax, [ebp - 0x810]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea esi, [ebp - 0xd8d8]
call fcn.00403050
cmp dword [ebp - 0xc18], 0x10
mov eax, dword [ebp - 0xc2c]
mov dword [ebp - 0xd8d8], 0x544547
jae 0x41a4c4
lea eax, [ebp - 0xc2c]
push eax
lea ecx, [ebp - 0xd4d8]
push str.http:__pc.mapps.m1905.cn_Vip_authVipPlay_request_s
push ecx
call fcn.00546876
lea edx, [ebp - 0xacd8]
add esp, 0xc
push edx
call fcn.00404b10
mov eax, dword [ebp - 0xd8e0]
mov esi, dword [eax + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 4
test esi, esi
jne 0x41a503
mov dword [ebp - 0xd8e0], esi
jmp 0x41a536
push esi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x41a51a
mov dword [ebp - 0xd8e0], 0
jmp 0x41a536
lea edi, [eax + eax]
mov eax, edi
call fcn.0054bbf0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0040c9b0
mov dword [ebp - 0xd8e0], eax
push 0x5a52f8
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x41a549
xor edi, edi
jmp 0x41a565
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push 0x5a52f8
push eax
call fcn.0040c9b0
mov edi, eax
push str.1905Cache1
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x41a578
xor eax, eax
jmp 0x41a592
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push str.1905Cache1
push eax
call fcn.0040c9b0
mov ecx, dword [ebp - 0xd8e0]
push ecx
push edi
push eax
lea edx, [ebp - 0x810]
push edx
push str._s_s_s_s.xml
lea eax, [ebp - 0x84d8]
push 0x2800
push eax
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]
cmp dword [0x5e7f84], 2
mov dword [ebp - 0x34d8], eax
mov dword [ebp - 0x34d4], 0x402
jne 0x41a5f6
lea ecx, [ebp - 0x84d8]
push ecx
push 0x21
push str.type_dshowRes2saveFile_s
lea edx, [ebp - 0x34d0]
push edx
jmp 0x41a60b
lea eax, [ebp - 0x84d8]
push eax
push 0x21
push str.type_dshowRes0saveFile_s
lea ecx, [ebp - 0x34d0]
push ecx
call fcn.00546876
add esp, 0x10
mov eax, 0xcc08
lea esi, [ebp - 0xd8d8]
call fcn.0054a430
mov edi, esp
mov ecx, 0x3302
rep movsd dword es:[edi], dword [esi]
call fcn.004028a0
mov edx, dword [ebp - 0xd8dc]
push edx
jmp 0x41a333
push 0
push 0
sub esp, 0xa4
mov ecx, esp
mov dword [ebp - 0xd8e4], esp
push ecx
lea edi, [ebp - 0xd998]
call fcn.0040b230
push ebx
call fcn.0041a700
test eax, eax
jne 0x41a683
sub esp, 0xa4
mov edx, esp
mov dword [ebp - 0xd8e4], esp
push edx
call fcn.0040b230
mov ecx, 0x5e634c
call fcn.0041e880
lea eax, [ebp - 0xd998]
call fcn.00406a80
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xd8ec]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a6b4
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 - 0xd8e8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a6dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0xd9a8]
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