Function at 0x47af30
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 0x50fbea
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x2c08
call fcn.004d49d0
mov eax, dword [0x567040]
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.0041f060
call fcn.0041ccc0
mov esi, dword [ebx + 0xc]
lea eax, [ebp - 0x2c00]
push eax
push esi
call fcn.0041f0e0
test al, al
je 0x47b111
call fcn.0041ccc0
lea ecx, [ebp - 0x11b0]
call fcn.0041d6c0
lea eax, [ebp - 0x11b0]
push eax
call dword [0x572478]
add esp, 4
test al, al
je 0x47b118
mov eax, dword [ebp - 0x11b0]
cmp eax, 6
je 0x47b118
cmp eax, 7
je 0x47b118
test eax, eax
je 0x47b118
cmp dword [ebp - 0x11ba], 0
jne 0x47b118
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 0x530870
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 0x522a68
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 0x522a68
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 0x530864
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 0x530890
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.004728e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x788]
push dword [edi + 0x248]
call fcn.00471f30
cmp eax, 1
jne 0x47b0fa
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.00472a50
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 0x47b24a
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.00486e40
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 0x47b174
cmp esi, 1
je 0x47b174
xor esi, esi
jmp 0x47b212
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], 0x530fc4
mov dword [ebp - 0x3cc], 0x530e10
mov dword [ebp - method.SOUI::SQrCtrl.virtual_0], 0x530f40
mov dword [ebp - method.SOUI::SQrCtrl.1.virtual_0], 0x530f64
mov dword [ebp - 0x194], 0x530de4
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3d0]
push dword [edi + 0x248]
call fcn.00471f30
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 0x47b248
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47b23e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b26a
push ecx
push edx
call fcn.004d4041
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.004d402e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004e399c
int3