Function at 0x5551b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6354b8
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3d4], ecx
mov eax, dword [ebp - 0x3d4]
cmp dword [eax + 0xe80], 0
jne 0x5551f5
jmp 0x55585b
mov ecx, dword [ebp - 0x3d4]
mov dword [ecx + 0xe80], 0
push str.ck_chooise
mov ecx, dword [ebp - 0x3d4]
add ecx, 0x2c
call sym.demo.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x555226
jmp 0x55585b
lea edx, [ebp - 0x348]
push edx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0x3d8], eax
mov ecx, dword [ebp - 0x3d8]
mov dword [ebp - 0x3dc], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3dc]
call sym.demo.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
lea ecx, [ebp - 0x88]
call fcn.0040e4b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x348]
call sym.demo.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp dword [ebp - 0x10], 0
je 0x55538f
mov ecx, dword [ebp - 0x10]
call sym.demo.exe_public:_bool___thiscall_DuiLib::COptionUI::IsSelected_void_const
movzx edx, al
test edx, edx
jne 0x55538f
push 0x657c2c
mov eax, dword [ebp - 0x3d4]
add eax, 0x908
push eax
call fcn.00412570
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x555378
push 0
push 0x657c30
lea ecx, [ebp - 0x88]
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
je 0x555378
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x34c], esp
push 0x657c38
call fcn.0040e4b0
mov dword [ebp - 0x3e0], eax
mov edx, dword [ebp - 0x3e0]
mov dword [ebp - 0x3e4], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3d4]
add ecx, 0x908
call fcn.0040e5d0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x350], esp
push eax
call fcn.0040e4b0
mov dword [ebp - 0x3e8], eax
mov eax, dword [ebp - 0x3e8]
mov dword [ebp - 0x3ec], eax
mov byte [ebp - 4], 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x354], esp
push 0x657c3c
call fcn.0040e4b0
mov dword [ebp - 0x3f0], eax
mov ecx, dword [ebp - 0x3f0]
mov dword [ebp - 0x3f4], ecx
mov byte [ebp - 4], 5
call fcn.00412530
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.0040b820
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.0040e530
jmp 0x55585b
push 0
push 0x657c4c
mov ecx, dword [ebp - 0x3d4]
add ecx, 0x7b8
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
jne 0x5553cd
push 0
push 0x657c54
lea ecx, [ebp - 0x88]
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
je 0x555492
push 0x657c5c
mov edx, dword [ebp - 0x3d4]
add edx, 0x908
push edx
call fcn.00412570
add esp, 8
movzx eax, al
test eax, eax
je 0x555492
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x358], esp
push 0x657c60
call fcn.0040e4b0
mov dword [ebp - 0x3f8], eax
mov ecx, dword [ebp - 0x3f8]
mov dword [ebp - 0x3fc], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x3d4]
add ecx, 0x908
call fcn.0040e5d0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x35c], esp
push eax
call fcn.0040e4b0
mov dword [ebp - 0x400], eax
mov edx, dword [ebp - 0x400]
mov dword [ebp - 0x404], edx
mov byte [ebp - 4], 7
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x360], esp
push 0x657c64
call fcn.0040e4b0
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x408]
mov dword [ebp - 0x40c], eax
mov byte [ebp - 4], 8
call fcn.00412530
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.0040b820
cmp dword [ebp + 8], 0
je 0x5554af
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.0040e530
jmp 0x55585b
mov ecx, dword [ebp - 0x3d4]
add ecx, 0x498
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x364], esp
push str.5001
call fcn.0040e3a0
mov dword [ebp - 0x410], eax
mov edx, dword [ebp - 0x410]
mov dword [ebp - 0x414], edx
mov byte [ebp - 4], 9
call fcn.00412590
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.0051f7b0
mov eax, dword [ebp - 0x3d4]
cmp dword [eax + 0x4cc], 0
je 0x5556b3
xor ecx, ecx
mov word [ebp - 0x294], cx
push 0x206
push 0
lea edx, [ebp - 0x292]
push edx
call fcn.005b4de0
add esp, 0xc
push 0
push 0x19
lea eax, [ebp - 0x294]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x555553
push 0
push 0x10
lea ecx, [ebp - 0x294]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x294]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x55569c
push 0x657c7c
lea eax, [ebp - 0x294]
push eax
call fcn.005b4d90
add esp, 8
mov ecx, dword [ebp - 0x3d4]
add ecx, 0x844
call fcn.0040e5d0
push eax
lea ecx, [ebp - 0x294]
push ecx
call fcn.005b4d90
add esp, 8
lea edx, [ebp - 0x294]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x55569c
lea ecx, [ebp - 0x2c4]
call fcn.0044a670
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x380]
call fcn.0040e4b0
mov byte [ebp - 4], 0xb
push 0
lea ecx, [ebp - 0x380]
push ecx
lea edx, [ebp - 0x39c]
push edx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x41c]
call fcn.0040e460
push eax
mov ecx, dword [ebp - 0x3d4]
add ecx, 0x8b4
push ecx
lea edx, [ebp - 0x3b8]
push edx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x424]
call fcn.0040e460
push eax
lea ecx, [ebp - 0x2c4]
call fcn.0044a9a0
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x3b8]
call fcn.0040e3e0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x39c]
call fcn.0040e3e0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x380]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c4]
call fcn.0044a6e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.0040e530
jmp 0x55585b
lea ecx, [ebp - 0x6c]
call fcn.00546550
mov byte [ebp - 4], 0xe
push 0
push 0x657c80
mov ecx, dword [ebp - 0x3d4]
add ecx, 0x8b4
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
je 0x555783
mov ecx, dword [ebp - 0x3d4]
add ecx, 0x8d0
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x3bc], esp
push ecx
mov ecx, edx
call fcn.0040e4f0
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x3d4]
add ecx, 0x8b4
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x3c0], esp
push ecx
mov ecx, edx
call fcn.0040e4f0
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x434], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x3d4]
add ecx, 0x844
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x3c4], esp
push ecx
mov ecx, edx
call fcn.0040e4f0
mov dword [ebp - 0x438], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x6c]
call fcn.00546d00
jmp 0x55583d
push 0
push 0x657c8c
mov ecx, dword [ebp - 0x3d4]
add ecx, 0x898
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
je 0x55583d
mov eax, dword [ebp - 0x3d4]
add eax, 0x898
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3c8], esp
push eax
call fcn.0040e4f0
mov dword [ebp - 0x43c], eax
mov ecx, dword [ebp - 0x43c]
mov dword [ebp - 0x440], ecx
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x3d4]
add edx, 0x844
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3cc], esp
push edx
call fcn.0040e4f0
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x448], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x3d4]
add ecx, 0x764
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x3d0], esp
push ecx
mov ecx, edx
call fcn.0040e4f0
mov dword [ebp - 0x44c], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x6c]
call fcn.00546630
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.005465c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.0040e530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret 4