Function at 0x4068d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523046
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x57cf60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push str.Data.pk2
mov esi, ecx
call edi
test eax, eax
push str.Map.pk2
setne byte [ebp - 0x4c]
call edi
test eax, eax
push str.Media.pk2
setne byte [ebp - 0x4a]
call edi
test eax, eax
push str.Music.pk2
setne byte [ebp - 0x4b]
call edi
test eax, eax
push str.Particles.pk2
setne byte [ebp - 0x49]
call edi
test eax, eax
push str.sro_client.exe
setne byte [ebp - 0x43]
call edi
test eax, eax
push str.GFXFileManager.dll
setne byte [ebp - 0x47]
call edi
test eax, eax
setne al
xor ebx, ebx
cmp byte [ebp - 0x4c], bl
je 0x406cd6
cmp byte [ebp - 0x4a], bl
je 0x406cd6
cmp byte [ebp - 0x4b], bl
je 0x406cd6
cmp byte [ebp - 0x49], bl
je 0x406cd6
cmp byte [ebp - 0x43], bl
je 0x406cd6
cmp byte [ebp - 0x47], bl
je 0x406cd6
cmp al, bl
je 0x406cd6
push 0x64
push 1
lea ecx, [esi + 0x598]
call fcn.004019b0
mov eax, dword [esi + 0x5b8]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x402
push eax
call edi
mov ecx, esi
call fcn.0040b40d
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x20]
push eax
push 1
push 0x80
push ecx
call edi
mov eax, dword [esi + 0x94]
mov edx, dword [esi + 0x20]
push eax
push ebx
push 0x80
push edx
call edi
push 0x402100
mov ecx, 0x57e740
call fcn.00407690
push str.GFXFileManager.dll
mov ecx, 0x57e740
call fcn.00407200
mov esi, dword [esi + 0x20]
push 0x3e8
push esi
mov dword [0x57e738], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 0x40
push 3
push str.SettingSROptionSet.dat
lea ecx, [ebp - 0x1dc]
mov dword [0x57e73c], eax
mov word [ebp - 0x48], 0x780
mov word [ebp - 0x44], 0x438
call fcn.00405540
push 1
push 0x40
push 3
push str.sro_client.exe
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], ebx
call fcn.00405540
mov eax, dword [ebp - 0x1dc]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x1d0]
lea eax, [ebp + eax - 0x1dc]
and cl, 6
movsx edx, cl
neg edx
sbb edx, edx
not edx
mov byte [ebp - 4], 1
test eax, edx
je 0x406b3e
mov dword [ebp - 0x50], 2
lea esp, [esp]
xor esi, esi
mov eax, esi
cdq
sub esp, 0x18
mov ecx, esp
mov edi, eax
add eax, 0x5a
mov dword [ebp - 0x58], edx
adc edx, ebx
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x54], esp
call fcn.00402f50
movzx ecx, byte [ebp + esi - 0x48]
push ecx
lea edx, [ebp - 0x1cc]
push edx
call fcn.00404000
mov ecx, dword [ebp - 0x58]
sub esp, 0x10
mov eax, esp
add edi, 0x62
adc ecx, ebx
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x54], esp
mov dword [eax], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
call fcn.00402f50
movzx eax, byte [ebp + esi - 0x44]
push eax
lea ecx, [ebp - 0x1cc]
push ecx
call fcn.00404000
inc esi
add esp, 8
cmp esi, 2
jl 0x406aa2
dec dword [ebp - 0x50]
jne 0x406aa0
lea ecx, [ebp - 0x1dc]
call fcn.004050d0
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + 4]
mov ecx, dword [ebp + eax - 0x118]
lea eax, [ebp + eax - 0x124]
and cl, 6
movsx edx, cl
neg edx
sbb edx, edx
not edx
test eax, edx
je 0x406c80
xor eax, eax
mov dword [ebp - 0x28], 0x144b8b
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x23f539
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x247da2
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x40], 0x247daf
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0x144b99
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0x23f541
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x50], eax
jmp 0x406bb3
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + eax - 0x28]
mov edx, dword [ebp + eax - 0x24]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp + eax - 0x40]
mov dword [ebp - 0x60], edx
mov edx, dword [ebp + eax - 0x3c]
xor esi, esi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x64]
mov eax, esi
cdq
mov edi, eax
mov eax, edx
mov edx, dword [ebp - 0x60]
add ecx, edi
adc edx, eax
sub esp, 0x18
mov dword [ebp - 0x68], eax
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x54], esp
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
call fcn.00402f50
movzx eax, byte [ebp + esi - 0x48]
push eax
lea ecx, [ebp - 0x114]
push ecx
call fcn.00404000
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
add ecx, edi
adc edx, dword [ebp - 0x68]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x54], esp
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
call fcn.00402f50
movzx edx, byte [ebp + esi - 0x44]
push edx
lea eax, [ebp - 0x114]
push eax
call fcn.00404000
inc esi
add esp, 8
cmp esi, 2
jl 0x406bd1
mov eax, dword [ebp - 0x50]
add eax, 8
mov dword [ebp - 0x50], eax
cmp eax, 0x18
jl 0x406bb0
lea ecx, [ebp - 0x124]
call fcn.004050d0
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], bl
call fcn.004056d0
lea ecx, [ebp - 0xb4]
mov esi, vtable.std::ios_base.0
push ecx
mov dword [ebp - 0xb4], esi
call fcn.00522176
add esp, 4
lea ecx, [ebp - 0x16c]
mov dword [ebp - 4], 0xffffffff
call fcn.004056d0
lea edx, [ebp - 0x16c]
push edx
mov dword [ebp - 0x16c], esi
call fcn.00522176
add esp, 4
mov eax, 1
jmp 0x406d13
push ebx
push str.Installation_Error
push str.Please_copy_the_patch_to_the_game_installation_directory__run_the_patch_installer.
mov ecx, esi
call fcn.00410edd
mov ecx, 0x57e740
call fcn.004076b0
test al, al
je 0x406d00
mov ecx, 0x57e740
call fcn.004073e0
mov ecx, 0x57e740
call fcn.00407350
mov ecx, esi
call fcn.0040b008
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00505fe3
mov esp, ebp
pop ebp
ret