Function at 0x4d8750
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x744660
mov eax, dword fs:[0]
push eax
sub esp, 0x538
mov eax, dword [0x8312b0]
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 - 0x518], esi
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x544]
mov dword [ebp - 0x51c], 0
push edx
mov ecx, dword [eax + 0x38]
mov eax, dword [ecx]
call dword [eax + 4]
xor ecx, ecx
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], cx
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], 7
push dword [eax + 4]
push dword [eax]
call fcn.0044bdc0
mov ebx, 8
mov dword [ebp - 0x238], 0
push 0x7f8170
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 0
call fcn.00460420
test al, al
je 0x4d8cc5
mov eax, dword [0x83ce58]
test eax, eax
jne 0x4d882d
push 0xb8
call fcn.006f4f3d
add esp, 4
mov dword [ebp - 0x520], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004dee10
mov byte [ebp - 4], 0
mov dword [0x83ce58], eax
mov al, byte [eax + 0x1d]
test al, al
je 0x4d8844
mov eax, dword [esi]
mov ecx, esi
push 1
push 0
call dword [eax + 4]
jmp 0x4d901a
lea ecx, [ebp - 0x510]
call fcn.004a3770
lea ecx, [ebp - 0x524]
call fcn.004d2fe0
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4d887a
push 2
lea ecx, [ebp - 0x510]
push ecx
call eax
mov byte [ebp - 0x511], al
jmp 0x4d8881
mov byte [ebp - 0x511], 0
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov ecx, dword [ebp - 0x520]
mov dword [ebp - 0x51c], ecx
test ecx, ecx
je 0x4d88b9
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x4d88b9
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x51c]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x4d88b9
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x511], 0
mov byte [ebp - 4], 0
je 0x4d894c
lea ecx, [ebp - 0x52c]
call fcn.0045b760
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov dword [ebp - 0x51c], 9
call fcn.004ccb80
lea ecx, [ebp - 0x53c]
mov bl, al
call fcn.0045b760
mov dword [ebp - 4], 5
mov ecx, dword [eax]
push ebx
mov dword [ebp - 0x51c], 0xb
cmp dword [ecx + 0x10], 3
lea ecx, [ebp - 0x510]
sete al
push eax
call fcn.004a3840
test al, al
je 0x4d8947
lea ecx, [ebp - 0x534]
call fcn.0045b760
mov ebx, 0xf
mov eax, dword [eax]
mov al, byte [eax + 0x239]
test al, al
jne 0x4d894c
mov byte [ebp - 0x511], 1
jmp 0x4d8953
mov ebx, 0xb
mov byte [ebp - 0x511], 0
test bl, 4
je 0x4d8999
and ebx, 0xfffffffb
mov dword [ebp - 0x51c], ebx
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x530]
mov dword [ebp - 0x520], ecx
test ecx, ecx
je 0x4d8999
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x4d8999
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x520]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x4d8999
mov eax, dword [ecx]
call dword [eax + 4]
test bl, 2
je 0x4d89df
and ebx, 0xfffffffd
mov dword [ebp - 0x51c], ebx
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0x538]
mov dword [ebp - 0x520], ecx
test ecx, ecx
je 0x4d89df
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x4d89df
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x520]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x4d89df
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
test bl, 1
je 0x4d8a1c
mov byte [ebp - 4], 8
mov ebx, dword [ebp - 0x528]
test ebx, ebx
je 0x4d8a18
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x4d8a18
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x4d8a18
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov byte [ebp - 4], 0
cmp byte [ebp - 0x511], 0
je 0x4d8b23
call fcn.0045b8d0
push ecx
push 0x1f
mov ecx, eax
call fcn.004e15d0
lea eax, [ebp - 0x49c]
push eax
push dword [ebp - 0x4a0]
lea eax, [ebp - 0x234]
push 0x7f81a8
push 0x7f8184
push eax
call fcn.00460c10
push ecx
mov byte [ebp - 4], 9
mov ecx, esp
mov esi, dword [esi + 4]
mov dword [ebp - 0x518], esp
push 0x7f821c
call fcn.0044c260
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
push 0x18b
cmovae eax, dword [ebp - 0x234]
push 0x28f
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0044c260
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.004d6660
add esp, 0x38
lea ecx, [ebp - 0x52c]
call fcn.0045b760
mov eax, dword [eax]
mov byte [eax + 0x239], 1
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x528]
test esi, esi
je 0x4d8af0
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4d8af0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4d8af0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov dword [ebp - 0x224], 0
cmovae eax, dword [ebp - 0x234]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x234]
call fcn.0044bf40
jmp 0x4d901a
cmp dword [0x83ce58], 0
jne 0x4d8b4f
push 0xb8
call fcn.006f4f3d
add esp, 4
mov dword [ebp - 0x520], eax
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.004dee10
mov dword [0x83ce58], eax
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push 0x208
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0xd
push eax
call fcn.0070dcd0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4d8baf
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], al
call fcn.0044bf40
jmp 0x4d8c48
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d8bc0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0044bdc0
push 1
push 0x7f90c8
lea ecx, [ebp - 0x230]
call fcn.00460700
push 7
push 0x7f90cc
lea ecx, [ebp - 0x230]
call fcn.00460700
push 4
push 0x7f90dc
lea ecx, [ebp - 0x230]
call fcn.00460700
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.0044bf40
test esi, esi
jne 0x4d8cb2
call fcn.00498bc0
sub esp, 8
mov edx, 0x7f8244
mov ecx, dword [eax + 0x1d0]
call fcn.004f55e0
add esp, 8
cmp eax, 1
jne 0x4d8cb2
mov esi, dword [0x83ce58]
test esi, esi
jne 0x4d8c9c
push 0xb8
call fcn.006f4f3d
add esp, 4
mov dword [ebp - 0x520], eax
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.004dee10
mov esi, eax
mov byte [ebp - 4], 0
mov dword [0x83ce58], esi
sub esp, 0x18
mov ecx, esp
push 0x7f81a4
call fcn.0044c260
mov ecx, esi
call fcn.004dfc60
mov ecx, dword [ebp - 0x518]
push 1
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWindowWnd::Close_unsigned_int_]
jmp 0x4d901a
push str.minbtn
lea ecx, [ebp - 0x250]
call fcn.00460420
test al, al
je 0x4d8cf2
push 0
push 0xf020
push 0x112
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_long_int___thiscall_DuiLib::CWindowWnd::SendMessageW_unsigned_int__unsigned_int__long_int_]
jmp 0x4d901a
push str.maxbtn
lea ecx, [ebp - 0x250]
call fcn.00460420
test al, al
je 0x4d8d1f
push 0
push 0xf030
push 0x112
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_long_int___thiscall_DuiLib::CWindowWnd::SendMessageW_unsigned_int__unsigned_int__long_int_]
jmp 0x4d901a
push str.restorebtn
lea ecx, [ebp - 0x250]
call fcn.00460420
test al, al
je 0x4d8d4c
push 0
push 0xf120
push 0x112
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_long_int___thiscall_DuiLib::CWindowWnd::SendMessageW_unsigned_int__unsigned_int__long_int_]
jmp 0x4d901a
push str.menubtn
lea ecx, [ebp - 0x250]
call fcn.00460420
test al, al
je 0x4d8d6e
push 0
mov ecx, esi
call fcn.004d9070
jmp 0x4d901a
push 0x7f82b4
lea ecx, [ebp - 0x250]
call fcn.00460420
test al, al
jne 0x4d8fe5
push 0x7f82c4
lea ecx, [ebp - 0x250]
call fcn.00460420
test al, al
jne 0x4d8fe5
push str.closemsgbtn
lea ecx, [ebp - 0x250]
call fcn.00460420
test al, al
je 0x4d8dcf
mov ecx, dword [esi + 0x5d4]
test ecx, ecx
je 0x4d901a
mov eax, dword [ecx]
push 0
call dword [eax + 0x138]
jmp 0x4d901a
push 0x7f7bc4
lea ecx, [ebp - 0x250]
call fcn.00460420
test al, al
je 0x4d8e5b
call fcn.004d2150
cmp dword [eax + 0x10], 3
jne 0x4d8e34
call fcn.004d2150
mov ecx, eax
call fcn.004ccb80
test al, al
je 0x4d8e20
call fcn.004d2150
cmp dword [eax + 0x1a8], 0
jne 0x4d8e20
call fcn.0045bc30
mov dword [ebp - 0x518], 0x7558
jmp 0x4d9008
call fcn.0045bc30
mov dword [ebp - 0x518], 0x754c
jmp 0x4d9008
call fcn.0045bc30
push ecx
push 0
push 1
lea ecx, [ebp - 0x518]
mov dword [ebp - 0x518], 0x7556
push ecx
mov ecx, eax
call fcn.004be440
jmp 0x4d901a
push str.closetipbtn
lea ecx, [ebp - 0x250]
call fcn.00460420
test al, al
je 0x4d8f8e
sub esp, 8
lea ecx, [esi + 0x34]
mov eax, esp
mov dword [eax], 0x7f8304
mov dword [eax + 4], 0xc
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t___const]
mov ecx, eax
test ecx, ecx
je 0x4d8e9e
mov eax, dword [ecx]
push 0
call dword [eax + 0x138]
lea ecx, [ebp - 0x52c]
call fcn.0045b760
mov eax, dword [eax]
mov byte [eax + 0x18c], 1
mov byte [ebp - 4], 0xf
or edi, 0xffffffff
mov esi, dword [ebp - 0x528]
test esi, esi
je 0x4d8ee2
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4d8ee2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4d8ee2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 0
call fcn.0045b760
mov byte [ebp - 4], 0x10
mov esi, dword [eax]
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004ca030
push eax
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.004c84b0
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x4d8f51
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d8f47
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d9066
push edx
push ecx
call fcn.006f4f2f
add esp, 8
mov byte [ebp - 4], 0x12
mov esi, dword [ebp - 0x528]
test esi, esi
je 0x4d901a
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4d901a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4d901a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x4d901a
push str.lab_tips
lea ecx, [ebp - 0x250]
call fcn.00460420
test al, al
je 0x4d901a
call fcn.0045bc30
push 0
push 1
lea ecx, [ebp - 0x518]
mov dword [ebp - 0x518], 0x7558
push ecx
mov ecx, eax
call fcn.004be8f0
sub esp, 8
lea ecx, [esi + 0x34]
mov eax, esp
mov dword [eax], 0x7f8334
mov dword [eax + 4], 0xc
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t___const]
mov ecx, eax
jmp 0x4d8db8
mov ecx, dword [esi + 0x5d4]
test ecx, ecx
je 0x4d8ff9
mov eax, dword [ecx]
push 0
call dword [eax + 0x138]
call fcn.0045bc30
mov dword [ebp - 0x518], 0x757d
push 0
push 1
lea ecx, [ebp - 0x518]
push ecx
mov ecx, eax
call fcn.004be8f0
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
mov dword [ebp - 0x240], 0
cmovae eax, dword [ebp - 0x250]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x250]
call fcn.0044bf40
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.006f4f1e
mov esp, ebp
pop ebp
ret 4
call fcn.00710a9c
int3