Function at 0x4795a0
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 0x50e43a
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x2c08
call fcn.004d35a0
mov eax, dword [0x565040]
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.0041ec50
call fcn.0041c8c0
mov esi, dword [ebx + 0xc]
lea eax, [ebp - 0x2c00]
push eax
push esi
call fcn.0041ecd0
test al, al
je 0x479781
call fcn.0041c8c0
lea ecx, [ebp - 0x11b0]
call fcn.0041d2b0
lea eax, [ebp - 0x11b0]
push eax
call dword [0x57045c]
add esp, 4
test al, al
je 0x479788
mov eax, dword [ebp - 0x11b0]
cmp eax, 6
je 0x479788
cmp eax, 7
je 0x479788
test eax, eax
je 0x479788
cmp dword [ebp - 0x11ba], 0
jne 0x479788
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 0x52f6b8
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 0x521a28
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 0x521a28
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 0x52f6ac
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 0x52f640
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.004710a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x788]
push dword [edi + 0x248]
call fcn.004706f0
cmp eax, 1
jne 0x47976a
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.00471210
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 0x4798ba
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.00485350
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 0x4797e4
cmp esi, 1
je 0x4797e4
xor esi, esi
jmp 0x479882
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], 0x52fdac
mov dword [ebp - 0x3cc], 0x52fbf8
mov dword [ebp - method.SOUI::SQrCtrl.virtual_0], 0x52fd0c
mov dword [ebp - method.SOUI::SQrCtrl.1.virtual_0], 0x52fd14
mov dword [ebp - 0x194], 0x52fbcc
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3d0]
push dword [edi + 0x248]
call fcn.004706f0
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 0x4798b8
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4798ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4798da
push ecx
push edx
call fcn.004d2c11
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.004d2bfe
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004e23ec
int3