Function at 0x479b30
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 0x50effa
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x2c08
call fcn.004d4130
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.0041f1c0
call fcn.0041ce30
mov esi, dword [ebx + 0xc]
lea eax, [ebp - 0x2c00]
push eax
push esi
call fcn.0041f240
test al, al
je 0x479d11
call fcn.0041ce30
lea ecx, [ebp - 0x11b0]
call fcn.0041d820
lea eax, [ebp - 0x11b0]
push eax
call dword [0x571454]
add esp, 4
test al, al
je 0x479d18
mov eax, dword [ebp - 0x11b0]
cmp eax, 6
je 0x479d18
cmp eax, 7
je 0x479d18
test eax, eax
je 0x479d18
cmp dword [ebp - 0x11ba], 0
jne 0x479d18
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 0x52f77c
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 0x52f7d8
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 0x52f7b8
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.00471610
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x788]
push dword [edi + 0x248]
call fcn.00470c60
cmp eax, 1
jne 0x479cfa
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.00471780
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 0x479e4a
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.004858e0
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 0x479d74
cmp esi, 1
je 0x479d74
xor esi, esi
jmp 0x479e12
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], 0x52fee8
mov dword [ebp - 0x3cc], 0x52fd48
mov dword [ebp - method.SOUI::SQrCtrl.virtual_0], 0x52fe48
mov dword [ebp - method.SOUI::SQrCtrl.1.virtual_0], 0x52fe50
mov dword [ebp - 0x194], 0x52fd08
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3d0]
push dword [edi + 0x248]
call fcn.00470c60
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 0x479e48
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x479e3e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x479e6a
push ecx
push edx
call fcn.004d37a1
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.004d378e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004e2f6c
int3