Function at 0x545820
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633aca
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], ecx
mov ecx, dword [ebp - 0x23c]
call sym.demo.exe_public:_void___thiscall_DuiLib::WindowImplBase::constructor_void_
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x23c]
add ecx, 0x364
call fcn.005574b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x23c]
mov dword [eax], vtable.CCloseWin.4.0
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x10], vtable.CCloseWin.3.0
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x20], vtable.CCloseWin.2.0
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0x24], vtable.CCloseWin.1.0
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x28], vtable.CCloseWin.0
mov ecx, dword [ebp - 0x23c]
add ecx, 0xdb8
call sym.demo.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_void_
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x23c]
add ecx, 0xe3c
call fcn.0040e480
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x23c]
add ecx, 0xe58
call fcn.00544520
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x23c]
add ecx, 0x494
call fcn.0041bdd0
push str.close.xml
mov ecx, dword [ebp - 0x23c]
add ecx, 0xdb8
call fcn.00579c85
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x23c]
call fcn.00545c20
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x244], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x244]
push edx
mov ecx, dword [ebp - 0x23c]
add ecx, 0xe3c
call fcn.0040e550
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x238]
call fcn.0040e530
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0x3a0], 0
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0xe8c], 0
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0xe80], 0
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xe84], 0
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0xe88], 0
push 0x65567c
mov edx, dword [ebp - 0x23c]
add edx, 0x840
push edx
call fcn.00412550
add esp, 8
movzx eax, al
test eax, eax
je 0x545a03
mov ecx, dword [ebp - 0x23c]
cmp dword [ecx + 0x494], 0
jne 0x545a03
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0xe7c], 0
jmp 0x545a13
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xe7c], 1
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.005b4de0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0040e2a0
add esp, 8
xor edx, edx
mov word [eax + 2], dx
push 0x655680
lea eax, [ebp - 0x21c]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x545a91
push 0x655690
call sym.demo.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourcePath_wchar_t_const__
add esp, 4
jmp 0x545aad
push 1
mov ecx, dword [ebp - 0x23c]
add ecx, 0x760
call fcn.0040e5d0
push eax
call sym.demo.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceZip_wchar_t_const___bool_
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret 4