Function at 0x4afeb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x502204]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0xbc], vtable.t_str.0
push 4
mov dword [ebp - 0x8c], ebx
call fcn.0046c3ce
add esp, 4
mov dword [ebp - 0xb4], eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xb0], 0
mov dword [eax], 0
call fcn.004a60e0
lea ecx, [ebp - 0xbc]
call fcn.004a60e0
push 4
mov dword [ebp - 0xcc], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xc0], 0
mov dword [eax], 0
call fcn.004a60e0
lea ecx, [ebp - 0xcc]
call fcn.004a60e0
mov eax, dword [ebx + 0x14]
lea ecx, [ebp - 0xbc]
add eax, 4
push eax
call fcn.004a5ed0
cmp dword [ebp - 0xb8], 0
je 0x4afffd
push 0
push 0
push 0
push 0
push 0
push str.runtime.ini
lea ecx, [ebp - 0x9c]
call fcn.004b7750
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xbc]
call fcn.004b6e40
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x4affac
push eax
call fcn.00459651
add esp, 4
mov eax, dword [ebx + 0x14]
lea ecx, [ebp - 0xcc]
add eax, 4
push eax
call fcn.004a5ed0
push 0
push 0
push 0
push 0
push 0
push str.gamelist.ini
lea ecx, [ebp - 0x9c]
call fcn.004b7750
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004b6e40
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x4afffd
push eax
call fcn.00459651
add esp, 4
mov edi, dword [ebp - 0xb4]
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b03bb
shr eax, 4
not al
and al, 1
je 0x4b03bb
push ecx
lea ecx, [ebp - 0x194]
call fcn.004169f0
lea eax, [ebp - 0x174]
mov dword [ebp - method.t_configRuntimeFile.virtual_0], vtable.t_configRuntimeFile.0
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x190]
mov dword [ebp - 0xf8], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x118]
mov byte [ebp - 0x140], 0
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0x144]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x13c], 0x4e9c90
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x128], fcn.0046c3ce
mov dword [ebp - 0x124], fcn.00478579
mov dword [ebp - 0x120], fcn.00459651
mov dword [ebp - method.t_configRuntimeFile::t_setting.virtual_0], vtable.t_configRuntimeFile::t_setting.0
mov byte [ebp - 0x114], 0
mov dword [ebp - 0x110], 0x4e9cac
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - method.n_config::t_int.virtual_0], vtable.n_config::t_int.0
mov byte [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0x4e9ca0
movups xmmword [ebp - 0xf4], xmm0
mov dword [ebp - 0xe4], fcn.0046c3ce
mov dword [ebp - 0xe0], fcn.00478579
mov dword [ebp - 0xdc], fcn.00459651
mov dword [ebp - method.n_config::t_arraySection_class_t_configRuntimeFile::t_item_.virtual_0], vtable.n_config::t_arraySection_class_t_configRuntimeFile::t_item_.0
mov dword [ebp - 0xd8], 0
call fcn.00417510
lea eax, [ebp - 0x104]
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x190]
lea eax, [ebp - 0x88]
push eax
call fcn.00417510
xor esi, esi
cmp dword [ebp - 0x18c], esi
jle 0x4b0177
nop dword [eax]
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
call dword [eax + 0x20]
inc esi
cmp esi, dword [ebp - 0x18c]
jl 0x4b0160
push edi
lea ecx, [ebp - 0x194]
call fcn.004bf960
xorps xmm0, xmm0
mov dword [ebp - 0x9c], fcn.0046c3ce
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x98], fcn.00478579
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x94], fcn.00459651
mov dword [ebp - 0x90], 0
call fcn.00412b40
xor esi, esi
xor edi, edi
mov dword [ebp - 0x90], esi
cmp dword [ebp - 0x10c], esi
jle 0x4b02da
nop word [eax + eax]
cmp dword [ebp - 0xf0], edi
jle 0x4b02da
lea ecx, [ebp - 0x84]
call fcn.004bcf10
mov eax, dword [ebp - 0xf4]
lea ecx, [ebp - 0x84]
mov esi, dword [eax + edi*4]
push dword [esi + 0x38]
call fcn.004a5ed0
mov eax, dword [esi + 0x50]
lea ecx, [ebp - 0x70]
push dword [esi + 0x64]
mov dword [ebp - 0x74], eax
call fcn.004a5ed0
push dword [esi + 0x7c]
lea ecx, [ebp - 0x60]
call fcn.004a5ed0
mov esi, dword [esi + 0x94]
lea eax, [ebp - 0x50]
push 0x3d
push 0
push eax
call fcn.0044eee0
add esp, 0xc
test esi, esi
je 0x4b027e
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b0250
sub ecx, edx
mov edx, 0x3d
sar ecx, 1
cmp ecx, edx
cmovl edx, ecx
xor ecx, ecx
test edx, edx
jle 0x4b027e
nop
mov al, byte [esi + ecx*2]
sub al, 0x30
mov byte [ebp + ecx - 0x50], al
inc ecx
cmp ecx, edx
jl 0x4b0270
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xac]
call fcn.00417350
mov esi, dword [ebp - 0x90]
mov eax, dword [ebp - 0x58]
inc esi
mov dword [ebp - 0x90], esi
test eax, eax
je 0x4b02ad
push eax
call fcn.00459651
add esp, 4
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4b02bd
push eax
call fcn.00459651
add esp, 4
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4b02cd
push eax
call fcn.00459651
add esp, 4
inc edi
cmp edi, dword [ebp - 0x10c]
jl 0x4b01e0
xor edi, edi
test esi, esi
jle 0x4b030e
mov ebx, dword [ebp - 0xac]
test edi, edi
js 0x4b02f2
cmp edi, esi
jge 0x4b02f2
mov eax, ebx
jmp 0x4b02f4
xor eax, eax
mov ecx, dword [ebp - 0x8c]
push eax
call fcn.004afd20
inc edi
add ebx, 0x74
cmp edi, esi
jl 0x4b02e6
mov ebx, dword [ebp - 0x8c]
lea ecx, [ebp - 0xac]
call fcn.00412b40
lea ecx, [ebp - 0x104]
mov dword [ebp - method.n_config::t_arraySection_class_t_configRuntimeFile::t_item_.virtual_0], vtable.n_config::t_arraySection_class_t_configRuntimeFile::t_item_.0
call fcn.00412800
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x4b034c
push eax
call dword [ebp - 0xdc]
add esp, 4
mov dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
test eax, eax
je 0x4b0392
push eax
call dword [ebp - 0x120]
add esp, 4
mov dword [ebp - 0x138], 0
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
call fcn.00411710
mov edi, dword [ebp - 0xc4]
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b0783
shr eax, 4
not al
and al, 1
je 0x4b0783
push ecx
lea ecx, [ebp - 0x1ac]
call fcn.004169f0
lea eax, [ebp - 0x18c]
mov dword [ebp - method.t_configGameFile.virtual_0], vtable.t_configGameFile.0
mov dword [ebp - 0x134], eax
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0x108], eax
xorps xmm0, xmm0
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 0x158], 0
mov dword [ebp - 0x154], 0x4e9d08
movups xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], fcn.0046c3ce
mov dword [ebp - 0x13c], fcn.00478579
mov dword [ebp - 0x138], fcn.00459651
mov dword [ebp - method.t_configGameFile::t_setting.virtual_0], vtable.t_configGameFile::t_setting.0
mov byte [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0x4e9d24
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - method.n_config::t_int.virtual_0], vtable.n_config::t_int.0
mov byte [ebp - 0x118], 0
mov dword [ebp - 0x114], 0x4e9d30
mov dword [ebp - 0x110], 0x4e9d2c
mov dword [ebp - 0x10c], 0x4e9d2c
mov dword [ebp - method.n_config::t_str.virtual_0], vtable.n_config::t_str.0
mov byte [ebp - 0x100], 0
mov dword [ebp - 0xfc], str.item
movups xmmword [ebp - 0xf4], xmm0
mov dword [ebp - 0xe4], fcn.0046c3ce
mov dword [ebp - 0xe0], fcn.00478579
mov dword [ebp - 0xdc], fcn.00459651
mov dword [ebp - method.n_config::t_arraySection_class_t_configGameFile::t_item_.virtual_0], vtable.n_config::t_arraySection_class_t_configGameFile::t_item_.0
mov dword [ebp - 0xd8], 0
call fcn.00417510
lea eax, [ebp - 0x104]
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x1a8]
lea eax, [ebp - 0x88]
push eax
call fcn.00417510
xor esi, esi
cmp dword [ebp - 0x1a4], esi
jle 0x4b0567
nop dword [eax]
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
call dword [eax + 0x20]
inc esi
cmp esi, dword [ebp - 0x1a4]
jl 0x4b0550
push edi
lea ecx, [ebp - 0x1ac]
call fcn.004bf960
lea ecx, [ebx + 0x968]
call fcn.00412750
xor esi, esi
mov dword [ebx + 0x984], 0
cmp dword [ebp - 0x124], esi
jle 0x4b0650
nop word [eax + eax]
cmp dword [ebp - 0xf0], esi
jle 0x4b0650
push 4
mov dword [ebp - 0x9c], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x98], 0
mov dword [eax], 0
push 0x24
push eax
call fcn.00478579
xor ecx, ecx
mov dword [ebp - 0x94], eax
add esp, 8
mov dword [eax], 0x10
mov word [eax + 4], cx
lea ecx, [ebp - 0x9c]
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + esi*4]
push dword [eax + 0x38]
call fcn.004a5ed0
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebx + 0x968]
call fcn.00416f10
inc dword [ebx + 0x984]
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x9c], vtable.t_str.0
test eax, eax
je 0x4b0643
push eax
call fcn.00459651
add esp, 4
inc esi
cmp esi, dword [ebp - 0x124]
jl 0x4b05a0
mov eax, dword [ebp - 0x110]
mov edi, 0x4e3ce0
test eax, eax
cmovne edi, eax
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b0665
mov eax, dword [ebp - 0x8c]
sub ecx, edx
sar ecx, 1
mov dword [ebx + 0x95c], ecx
lea ebx, [ecx + 1]
mov ecx, dword [eax + 0x960]
mov esi, dword [ecx]
cmp ebx, esi
jbe 0x4b06c6
lea esi, [esi*2 + 0x10]
and esi, 0xfff0
cmp ebx, esi
cmovae esi, ebx
lea eax, [esi*2 + 4]
push eax
push ecx
call fcn.00478579
mov ecx, dword [ebp - 0x8c]
add esp, 8
mov dword [ecx + 0x960], eax
mov dword [eax], esi
mov ecx, dword [ecx + 0x960]
lea eax, [ebx + ebx]
push eax
lea eax, [ecx + 4]
push edi
push eax
call fcn.0044e3e0
add esp, 0xc
mov dword [ebp - method.n_config::t_arraySection_class_t_configGameFile::t_item_.virtual_0], vtable.n_config::t_arraySection_class_t_configGameFile::t_item_.0
lea ecx, [ebp - 0x104]
call fcn.00412520
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x4b070a
push eax
call dword [ebp - 0xdc]
add esp, 4
mov dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
test eax, eax
je 0x4b075a
push eax
call dword [ebp - 0x138]
add esp, 4
mov dword [ebp - 0x150], 0
lea ecx, [ebp - 0x1ac]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
call fcn.00411710
mov eax, dword [ebp - 0xc4]
test eax, eax
je 0x4b0796
push eax
call fcn.00459651
add esp, 4
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x4b07a9
push eax
call fcn.00459651
add esp, 4
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret 4