Function at 0x475390
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50efc5
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x567040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push ecx
lea esi, [edi + 4]
push str.act_img
mov ecx, esi
call fcn.004254f0
mov dword [ebp - 0x44], eax
test eax, eax
je 0x475563
push ecx
push 0x52a310
mov ecx, esi
call fcn.00427c40
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x475563
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x68], vtable.GamePicDownloadInfo.0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push dword [edi + 0x398]
call fcn.00486f10
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x475524
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
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 - 0x48], eax
test eax, eax
je 0x475524
mov edx, dword [eax]
lea ecx, [ebp - 0x54]
push ecx
mov ecx, eax
mov edx, dword [edx + 0x58]
call edx
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [esi]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x38]
push ecx
mov ecx, esi
mov dword [ebp - 0x50], edi
call dword [eax + 0x4c]
movups xmm1, xmmword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
movaps xmm0, xmm1
movd ecx, xmm1
psrldq xmm0, 8
movd eax, xmm0
movups xmmword [ebp - 0x64], xmm1
sub eax, ecx
cmp eax, esi
jle 0x4754b2
sub eax, esi
cdq
sub eax, edx
sar eax, 1
add ecx, eax
add esi, ecx
jmp 0x4754b8
mov esi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], esi
cmp eax, edi
jle 0x4754d8
sub eax, edi
mov edi, dword [ebp - 0x60]
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov eax, dword [ebp - 0x50]
add eax, edi
jmp 0x4754de
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x60]
sub eax, edi
sub esi, ecx
push eax
push esi
mov esi, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::Move_int__int__int__int_]
push edi
push ecx
mov ecx, dword [ebp - 0x44]
call esi
mov ecx, dword [ebp - 0x44]
push 3
push dword [ebp - 0x48]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SImageWnd::SetImage_struct_SOUI::IBitmap___enum_SOUI::FilterLevel_]
mov ecx, dword [ebp - 0x48]
add ecx, 4
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x4c]
lea eax, [edi - 0x17]
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0x40]
add eax, 0xa
push eax
call esi
mov byte [ebp - 0x39], 1
jmp 0x475528
mov byte [ebp - 0x39], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x47555e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x475554
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475580
push ecx
push edx
call fcn.004d4041
add esp, 8
mov al, byte [ebp - 0x39]
jmp 0x475565
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d402e
mov esp, ebp
pop ebp
ret
call fcn.004e399c
int3