Function at 0x54a5e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634229
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.CDodgeWin.4.0
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x10], vtable.CDodgeWin.3.0
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x20], vtable.CDodgeWin.2.0
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0x24], vtable.CDodgeWin.1.0
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x28], vtable.CDodgeWin.0
mov ecx, dword [ebp - 0x23c]
add ecx, 0xdc8
call sym.demo.exe_public:_void___thiscall_DuiLib::CPoint::constructor_void_
mov ecx, dword [ebp - 0x23c]
add ecx, 0xdd0
call sym.demo.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_void_
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x23c]
add ecx, 0xe54
call fcn.0040e480
mov byte [ebp - 4], 3
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x23c]
add ecx, 0x494
call fcn.0041bdd0
mov eax, dword [ebp - 0x23c]
mov byte [eax + 0xe70], 0
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x1234], 0
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0xe74], 0
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xe78], 0
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0xdc8], 0
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0xdcc], 0
push 0x656108
mov ecx, dword [ebp - 0x23c]
add ecx, 0xdd0
call fcn.00579c85
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x23c]
call fcn.0054a990
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x244], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x244]
push edx
mov ecx, dword [ebp - 0x23c]
add ecx, 0xe54
call fcn.0040e550
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call fcn.0040e530
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xdbc], 0
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0xdb8], 0
push 0x656124
mov edx, dword [ebp - 0x23c]
add edx, 0x840
push edx
call fcn.00412550
add esp, 8
movzx eax, al
test eax, eax
je 0x54a7ec
mov ecx, dword [ebp - 0x23c]
cmp dword [ecx + 0x494], 0
jne 0x54a7ec
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0xdc4], 0
jmp 0x54a7fc
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xdc4], 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 0x656128
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 0x54a87a
push 0x656138
call sym.demo.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourcePath_wchar_t_const__
add esp, 4
jmp 0x54a896
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