Function at 0x513d00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65c12f
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x6fc0c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
push 0xffffffffffffffff
push 0x685528
mov ecx, dword [ebp - 0x54]
add ecx, 4
call fcn.004880a0
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x513d4d
xor al, al
jmp 0x513f4d
push 0xffffffffffffffff
push 0x685538
mov ecx, dword [ebp - 0x54]
add ecx, 4
call fcn.0048b1d0
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x513d6f
xor al, al
jmp 0x513f4d
lea ecx, [ebp - 0x48]
call fcn.00446a90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00545730
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x398]
push edx
lea ecx, [ebp - 0x58]
call fcn.00545ea0
lea ecx, [ebp - 0x48]
call fcn.0043d1b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x513dda
mov byte [ebp - 0x49], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00545750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0043c550
mov al, byte [ebp - 0x49]
jmp 0x513f4d
lea ecx, [ebp - 0x48]
call fcn.0043d1b0
push eax
call dword [sym.imp.soui.dll_public:_static_struct_SOUI::IBitmap____cdecl_SOUI::SResLoadFromFile::LoadImageW_wchar_t_const__]
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x513e1c
mov byte [ebp - 0x4a], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00545750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0043c550
mov al, byte [ebp - 0x4a]
jmp 0x513f4d
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x50]
mov eax, dword [edx + 0x58]
call eax
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x64]
call fcn.004aac20
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 4
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 4]
mov edx, dword [eax + 0x4c]
call edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x30]
call fcn.00492790
cmp eax, dword [ebp - 0x64]
jle 0x513e9b
lea ecx, [ebp - 0x30]
call fcn.00492790
sub eax, dword [ebp - 0x64]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x64]
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0x30]
call fcn.00492540
cmp eax, dword [ebp - 0x60]
jle 0x513ecd
lea ecx, [ebp - 0x30]
call fcn.00492540
sub eax, dword [ebp - 0x60]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x60]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x20]
call fcn.00492540
push eax
lea ecx, [ebp - 0x20]
call fcn.00492790
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x5c]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::Move_int__int__int__int_]
push 3
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x5c]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SImageWnd::SetImage_struct_SOUI::IBitmap___enum_SOUI::FilterLevel_]
mov ecx, dword [ebp - 0x50]
add ecx, 4
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 4]
mov edx, dword [eax + 4]
call edx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
sub eax, 0x17
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xa
push ecx
mov ecx, dword [ebp - 0x68]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::Move_int__int__int__int_]
mov byte [ebp - 0x4b], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00545750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0043c550
mov al, byte [ebp - 0x4b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bcdb6
mov esp, ebp
pop ebp
ret