Function at 0x4a5a30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66152b
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x70a0c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
cmp dword [ebp + 8], 0
jne 0x4a5a66
jmp 0x4a5cbb
lea ecx, [ebp - 0x28]
call fcn.004474e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.0054e470
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x60]
call fcn.0054ebe0
lea ecx, [ebp - 0x28]
call fcn.0043dc00
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a5ac8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.0054e490
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0043cfa0
jmp 0x4a5b48
lea ecx, [ebp - 0x28]
call fcn.0043dc00
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 - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x4a5b00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.0054e490
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0043cfa0
jmp 0x4a5b48
push 3
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SImageWnd::SetImage_struct_SOUI::IBitmap___enum_SOUI::FilterLevel_]
mov ecx, dword [ebp - 0x5c]
add ecx, 4
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 4]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.0054e490
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0043cfa0
jmp 0x4a5cbb
cmp dword [ebp + 0x14], 4
je 0x4a5b53
jmp 0x4a5c6d
cmp dword [ebp + 0x18], 2
je 0x4a5b5e
jmp 0x4a5c6d
lea ecx, [ebp - 0x58]
call fcn.004474e0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004474e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.0054e470
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x68]
call fcn.0054e730
lea ecx, [ebp - 0x40]
call fcn.0043dc00
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a5bd8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.0054e490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0043cfa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0043cfa0
jmp 0x4a5c6d
lea ecx, [ebp - 0x40]
call fcn.0043dc00
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 - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x4a5c1c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.0054e490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0043cfa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0043cfa0
jmp 0x4a5c6d
push 3
mov ecx, dword [ebp - 0x64]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SImageWnd::SetImage_struct_SOUI::IBitmap___enum_SOUI::FilterLevel_]
mov ecx, dword [ebp - 0x64]
add ecx, 4
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 4]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.0054e490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0043cfa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0043cfa0
jmp 0x4a5cbb
cmp dword [ebp + 0x14], 0x64
jl 0x4a5c75
jmp 0x4a5ca3
cmp dword [ebp + 0x14], 4
jne 0x4a5c83
cmp dword [ebp + 0x18], 1
je 0x4a5c83
jmp 0x4a5ca3
push 0
push 0
mov ecx, dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SImageWnd::SetImage_struct_SOUI::IBitmap___enum_SOUI::FilterLevel_]
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SImageWnd::SetIcon_int_]
jmp 0x4a5cbb
push 0
push 0
mov ecx, dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SImageWnd::SetImage_struct_SOUI::IBitmap___enum_SOUI::FilterLevel_]
push 0
mov ecx, dword [ebp + 8]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SImageWnd::SetIcon_int_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c7840
mov esp, ebp
pop ebp
ret 0x14