Function at 0x51b7f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66408f
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x7060c4]
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 str.act_img
mov ecx, dword [ebp - 0x54]
add ecx, 4
call fcn.00489f30
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x51b83d
xor al, al
jmp 0x51ba3d
push 0xffffffffffffffff
push 0x68db70
mov ecx, dword [ebp - 0x54]
add ecx, 4
call fcn.00489d30
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x51b85f
xor al, al
jmp 0x51ba3d
lea ecx, [ebp - 0x48]
call fcn.00446de0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0054db90
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.0054e440
lea ecx, [ebp - 0x48]
call fcn.0043d500
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x51b8ca
mov byte [ebp - 0x49], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0054dbb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0043c8a0
mov al, byte [ebp - 0x49]
jmp 0x51ba3d
lea ecx, [ebp - 0x48]
call fcn.0043d500
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 0x51b90c
mov byte [ebp - 0x4a], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0054dbb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0043c8a0
mov al, byte [ebp - 0x4a]
jmp 0x51ba3d
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.004b7910
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.00494f00
cmp eax, dword [ebp - 0x64]
jle 0x51b98b
lea ecx, [ebp - 0x30]
call fcn.00494f00
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.00494cb0
cmp eax, dword [ebp - 0x60]
jle 0x51b9bd
lea ecx, [ebp - 0x30]
call fcn.00494cb0
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.00494cb0
push eax
lea ecx, [ebp - 0x20]
call fcn.00494f00
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.0054dbb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0043c8a0
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.005c4766
mov esp, ebp
pop ebp
ret