Function at 0x479f70
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50eb9a
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x2c08
call fcn.004d3aa0
mov eax, dword [0x566040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 0x14]
lea ecx, [ebp - 0x2c00]
mov dword [eax], 1
call fcn.0041ebd0
call fcn.0041c830
mov esi, dword [ebx + 0xc]
lea eax, [ebp - 0x2c00]
push eax
push esi
call fcn.0041ec50
test al, al
je 0x47a151
call fcn.0041c830
lea ecx, [ebp - 0x11b0]
call fcn.0041d230
lea eax, [ebp - 0x11b0]
push eax
call dword [0x57145c]
add esp, 4
test al, al
je 0x47a158
mov eax, dword [ebp - 0x11b0]
cmp eax, 6
je 0x47a158
cmp eax, 7
je 0x47a158
test eax, eax
je 0x47a158
cmp dword [ebp - 0x11ba], 0
jne 0x47a158
lea ecx, [ebp - 0x2c04]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
lea eax, [ebp - 0x2bfc]
mov dword [ebp - 4], 0
push eax
push 0x52f7ac
lea eax, [ebp - 0x2c08]
push eax
lea eax, [ebp - 0x2c04]
push eax
call dword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::Format_wchar_t_const__]
add esp, 0x10
lea ecx, [ebp - 0x2c08]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
push ecx
mov ecx, esp
mov dword [ebp - 0x2c08], esp
push 0x521a68
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x2c10], esp
push 0x521a68
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x2c14], esp
push 0x52f808
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 1
push 2
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x2c18], esp
push 0x52f7e8
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push ecx
lea eax, [ebp - 0x2c04]
mov byte [ebp - 4], 4
mov ecx, esp
push eax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const__]
lea ecx, [ebp - 0x788]
mov byte [ebp - 4], 0
call fcn.00471920
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x788]
push dword [edi + 0x248]
call fcn.00470f70
cmp eax, 1
jne 0x47a13a
push 0
push 0
push 0x82f
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.soui.dll_public:_struct_HWND______thiscall_SOUI::SApplication::GetMainWnd_void_]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x788]
call fcn.00471a90
lea ecx, [ebp - 0x2c04]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
xor eax, eax
jmp 0x47a28a
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 6
mov dword [ebp - method.GamePicDownloadInfo.virtual_0], vtable.GamePicDownloadInfo.0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
push esi
call fcn.00485e80
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47a1b4
cmp esi, 1
je 0x47a1b4
xor esi, esi
jmp 0x47a252
push str.LAYOUT:XML_DLG_TOOL_BOX_REPAIR
lea ecx, [ebp - 0x3d0]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SHostDialog::constructor_wchar_t_const__]
mov dword [ebp - method.SOUI::SDropDownWnd2.2.virtual_0], 0x52ff24
mov dword [ebp - 0x3cc], 0x52fd84
mov dword [ebp - method.SOUI::SQrCtrl.virtual_0], 0x52fea0
mov dword [ebp - method.SOUI::SQrCtrl.1.virtual_0], 0x52fec4
mov dword [ebp - 0x194], 0x52fd44
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3d0]
push dword [edi + 0x248]
call fcn.00470f70
lea ecx, [ebp - 0x3d0]
mov dword [ebp - method.SOUI::SDropDownWnd2.2.virtual_0], vtable.SOUI::SMaskDialog.4.0
mov esi, 1
mov dword [ebp - method.SOUI::SMaskDialog.2.virtual_0], vtable.SOUI::SMaskDialog.2.0
mov dword [ebp - method.SOUI::SQrCtrl.virtual_0], vtable.SOUI::SMaskDialog.0
mov dword [ebp - method.SOUI::SQrCtrl.1.virtual_0], vtable.SOUI::SMaskDialog.1.0
mov dword [ebp - method.SOUI::SMaskDialog.3.virtual_0], vtable.SOUI::SMaskDialog.3.0
call dword [sym.imp.soui.dll_public_virtual:_void___thiscall_SOUI::SHostDialog::destructor_void_]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x47a288
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47a27e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a2aa
push ecx
push edx
call fcn.004d3111
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d30fe
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004e2a5c
int3