Function at 0x47a080
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 0x50fb4a
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x2c08
call fcn.004d4ad0
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.0041f140
call fcn.0041cdc0
mov esi, dword [ebx + 0xc]
lea eax, [ebp - 0x2c00]
push eax
push esi
call fcn.0041f1c0
test al, al
je 0x47a261
call fcn.0041cdc0
lea ecx, [ebp - 0x11b0]
call fcn.0041d7a0
lea eax, [ebp - 0x11b0]
push eax
call dword [0x572480]
add esp, 4
test al, al
je 0x47a268
mov eax, dword [ebp - 0x11b0]
cmp eax, 6
je 0x47a268
cmp eax, 7
je 0x47a268
test eax, eax
je 0x47a268
cmp dword [ebp - 0x11ba], 0
jne 0x47a268
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 0x5307e8
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 0x522a28
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 0x522a28
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 0x5307ac
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 0x53078c
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.00471b30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x788]
push dword [edi + 0x248]
call fcn.00471180
cmp eax, 1
jne 0x47a24a
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.00471ca0
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 0x47a39a
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.00485e30
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 0x47a2c4
cmp esi, 1
je 0x47a2c4
xor esi, esi
jmp 0x47a362
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], 0x530ef8
mov dword [ebp - 0x3cc], 0x530d58
mov dword [ebp - method.SOUI::SQrCtrl.virtual_0], 0x530e58
mov dword [ebp - method.SOUI::SQrCtrl.1.virtual_0], 0x530e60
mov dword [ebp - 0x194], 0x530d18
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3d0]
push dword [edi + 0x248]
call fcn.00471180
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 0x47a398
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47a38e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a3ba
push ecx
push edx
call fcn.004d4141
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.004d412e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004e392c
int3