Function at 0x541760
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633791
mov eax, dword fs:[0]
push eax
sub esp, 0x460
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 - 0x41c], ecx
mov ecx, dword [ebp - 0x41c]
call fcn.005432d0
test eax, eax
jne 0x5417b4
push str._DSP_Init_Err
call fcn.004560b0
add esp, 4
xor eax, eax
jmp 0x542358
push 0
push 0x655060
mov ecx, dword [ebp - 0x41c]
add ecx, 0xc80
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
jne 0x5417db
xor eax, eax
jmp 0x542358
push 0
push 0x65506c
mov ecx, dword [ebp - 0x41c]
add ecx, 0xcb8
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
jne 0x541802
xor eax, eax
jmp 0x542358
push 0
push 0x655078
mov ecx, dword [ebp - 0x41c]
add ecx, 0xcd4
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
jne 0x541862
push 0
push 0x655084
mov ecx, dword [ebp - 0x41c]
add ecx, 0xcf0
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
jne 0x541862
push 0
push 0x655090
mov ecx, dword [ebp - 0x41c]
add ecx, 0xd0c
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
je 0x541872
mov eax, dword [ebp - 0x41c]
mov dword [eax + 0xee0], 0
lea ecx, [ebp - 0x48]
push ecx
call fcn.00412530
mov ecx, eax
call fcn.0040ac90
mov dword [ebp - 4], 0
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x64]
call fcn.0040e4f0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.0040e4f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2d0]
call fcn.0040e4f0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040e4f0
mov byte [ebp - 4], 4
push str.img1.png
lea ecx, [ebp - 0x64]
call fcn.0040e5b0
push str.img2.png
lea ecx, [ebp - 0x2b4]
call fcn.0040e5b0
push str.img3.png
lea ecx, [ebp - 0x2d0]
call fcn.0040e5b0
push str.img4.png
lea ecx, [ebp - 0x2c]
call fcn.0040e5b0
lea ecx, [ebp - 0x64]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2b4]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2d0]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x298]
call fcn.0044a670
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x41c]
cmp dword [eax + 0xee0], 0
je 0x541b3f
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0040e550
push 0x6550ec
lea ecx, [ebp - 0x64]
call fcn.0040e5b0
push 0
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x2f0]
push eax
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x420], eax
mov ecx, dword [ebp - 0x420]
mov dword [ebp - 0x424], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x424]
call fcn.0040e460
push eax
mov edx, dword [ebp - 0x41c]
add edx, 0xcb8
push edx
lea eax, [ebp - 0x30c]
push eax
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 0x42c], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x42c]
call fcn.0040e460
push eax
lea ecx, [ebp - 0x298]
call fcn.0044a9a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30c]
call fcn.0040e3e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2f0]
call fcn.0040e3e0
lea ecx, [ebp - 0x64]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x541aa0
mov dword [ebp - 0x310], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0x310]
jmp 0x542358
push 0
mov edx, dword [ebp - 0x41c]
add edx, 0x760
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2d1]
call fcn.00473ec0
test eax, eax
jne 0x541b2b
mov dword [ebp - 0x314], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0x314]
jmp 0x542358
lea ecx, [ebp - 0x64]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x54223c
push 0
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x330]
push edx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x434], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x434]
call fcn.0040e460
push eax
mov ecx, dword [ebp - 0x41c]
add ecx, 0xcb8
push ecx
lea edx, [ebp - 0x34c]
push edx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x43c]
call fcn.0040e460
push eax
lea ecx, [ebp - 0x298]
call fcn.0044a9a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34c]
call fcn.0040e3e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x330]
call fcn.0040e3e0
lea ecx, [ebp - 0x64]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x541c59
mov dword [ebp - 0x350], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0x350]
jmp 0x542358
push 0
lea ecx, [ebp - 0x2b4]
push ecx
lea edx, [ebp - 0x36c]
push edx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x444]
call fcn.0040e460
push eax
mov ecx, dword [ebp - 0x41c]
add ecx, 0xcd4
push ecx
lea edx, [ebp - 0x388]
push edx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x44c], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x44c]
call fcn.0040e460
push eax
lea ecx, [ebp - 0x298]
call fcn.0044a9a0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x388]
call fcn.0040e3e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x36c]
call fcn.0040e3e0
lea ecx, [ebp - 0x2b4]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x541d79
mov dword [ebp - 0x38c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0x38c]
jmp 0x542358
push 0
lea ecx, [ebp - 0x2d0]
push ecx
lea edx, [ebp - 0x3a8]
push edx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x454], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x454]
call fcn.0040e460
push eax
mov ecx, dword [ebp - 0x41c]
add ecx, 0xcf0
push ecx
lea edx, [ebp - 0x3c4]
push edx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x45c], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x45c]
call fcn.0040e460
push eax
lea ecx, [ebp - 0x298]
call fcn.0044a9a0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x3c4]
call fcn.0040e3e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3a8]
call fcn.0040e3e0
lea ecx, [ebp - 0x2d0]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x541e99
mov dword [ebp - 0x3c8], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0x3c8]
jmp 0x542358
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x3e4]
push edx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x464], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x464]
call fcn.0040e460
push eax
mov ecx, dword [ebp - 0x41c]
add ecx, 0xd0c
push ecx
lea edx, [ebp - 0x400]
push edx
call fcn.0043a030
add esp, 8
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x468]
mov dword [ebp - 0x46c], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x46c]
call fcn.0040e460
push eax
lea ecx, [ebp - 0x298]
call fcn.0044a9a0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x400]
call fcn.0040e3e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3e4]
call fcn.0040e3e0
lea ecx, [ebp - 0x2c]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x541fb3
mov dword [ebp - 0x404], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0x404]
jmp 0x542358
push 0
mov ecx, dword [ebp - 0x41c]
add ecx, 0x760
push ecx
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x2d1]
call fcn.00473ec0
test eax, eax
jne 0x54203e
mov dword [ebp - 0x408], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0x408]
jmp 0x542358
lea ecx, [ebp - 0x64]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
mov eax, dword [ebp - 0x41c]
add eax, 0x760
push eax
lea ecx, [ebp - 0x2b4]
push ecx
lea ecx, [ebp - 0x2d1]
call fcn.00473ec0
test eax, eax
jne 0x5420da
mov dword [ebp - 0x40c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0x40c]
jmp 0x542358
lea ecx, [ebp - 0x2b4]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
mov edx, dword [ebp - 0x41c]
add edx, 0x760
push edx
lea eax, [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x2d1]
call fcn.00473ec0
test eax, eax
jne 0x54217a
mov dword [ebp - 0x410], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0x410]
jmp 0x542358
lea ecx, [ebp - 0x2d0]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
mov ecx, dword [ebp - 0x41c]
add ecx, 0x760
push ecx
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x2d1]
call fcn.00473ec0
test eax, eax
jne 0x542217
mov dword [ebp - 0x414], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0x414]
jmp 0x542358
lea ecx, [ebp - 0x2c]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.mainframe_4.xml
mov ecx, dword [ebp - 0x41c]
add ecx, 0xdb8
call fcn.00579c85
xor eax, eax
mov word [ebp - 0x26c], ax
push 0x206
push 0
lea ecx, [ebp - 0x26a]
push ecx
call fcn.005b4de0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x26c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea eax, [ebp - 0x26c]
push eax
call fcn.0040e2a0
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
push 0x65511c
lea edx, [ebp - 0x26c]
push edx
call fcn.005b4d90
add esp, 8
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5422ba
push 0x65512c
call sym.demo.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourcePath_wchar_t_const__
add esp, 4
jmp 0x5422d6
push 1
mov ecx, dword [ebp - 0x41c]
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 ecx, dword [ebp - 0x41c]
add ecx, 0xc80
push ecx
mov ecx, dword [ebp - 0x41c]
add ecx, 0x3c8
call fcn.0040e550
mov dword [ebp - 0x418], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
call fcn.0044a6e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov eax, dword [ebp - 0x418]
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