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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb597
mov eax, dword fs:[0]
push eax
sub esp, 0x3d4
mov eax, dword [0x57b070]
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 ebx, ecx
mov dword [ebp - 0x268], ebx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x260]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x26c], eax
call fcn.00461c60
push 1
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x25c], 0
call fcn.00462700
cmp byte [ebp - 0x144], 0
lea eax, [ebp - 0x254]
cmove eax, dword [ebp - 0x258]
xor ecx, ecx
mov word [eax + 4], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x138]
call fcn.00461c60
push 1
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x134], 0
call fcn.00462700
cmp byte [ebp - 0x1c], 0
lea eax, [ebp - 0x12c]
cmove eax, dword [ebp - 0x130]
xor ecx, ecx
mov word [eax + 4], cx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
mov eax, dword [ebx]
push ecx
lea ecx, [ebp - 0x260]
push ecx
mov eax, dword [eax + 0x1c]
mov ecx, ebx
push edi
call eax
test al, al
jne 0x467032
xor bl, bl
jmp 0x4674bc
cmp byte [ebp - 0x144], 0
lea eax, [ebp - 0x254]
mov byte [ebp - 0x261], 1
cmove eax, dword [ebp - 0x258]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, fcn.004ac7ec
cmp eax, 0xffffffff
je 0x46737d
shr eax, 4
not al
and al, 1
je 0x46737d
cmp byte [ebx + 0xad5], 0
lea ecx, [ebp - 0x3e0]
sete al
movzx eax, al
push eax
call fcn.00470a60
mov byte [ebp - 4], 2
lea eax, [ebp - 0x254]
cmp byte [ebp - 0x144], 0
lea ecx, [ebp - 0x3e0]
cmove eax, dword [ebp - 0x258]
add eax, 4
push eax
call fcn.00472980
cmp dword [ebp - 0x29c], 0
mov ecx, dword [ebp - 0x2dc]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
setne al
test ecx, ecx
mov byte [ebx + 0x21bd], al
setne al
mov byte [ebx + 0x21bc], al
test ecx, ecx
je 0x467124
call fcn.00467de0
mov byte [ebp - 0x262], al
call fcn.0046cc30
test al, al
je 0x46710c
call esi
push str.initruntime_safeapi
push eax
call fcn.00473e30
mov ecx, eax
call fcn.00473fd0
mov ecx, eax
call fcn.00474340
mov cl, byte [ebp - 0x262]
call fcn.00470700
push str.initruntime_safeapi
call fcn.0046cad0
add esp, 4
call fcn.0046cc30
test al, al
je 0x467148
call esi
push str.initruntime_SetProcessShortName
push eax
call fcn.00473e30
mov ecx, eax
call fcn.00473fd0
mov ecx, eax
call fcn.00474340
mov eax, dword [ebp - 0x26c]
mov ecx, ebx
push edi
mov byte [eax], 1
call fcn.00466420
neg al
push str.initruntime_SetProcessShortName
sbb al, al
and byte [ebp - 0x261], al
call fcn.0046cad0
xorps xmm0, xmm0
mov dword [ebp - 0x27c], fcn.004b12a2
add esp, 4
mov dword [ebp - 0x278], fcn.004b2dab
movups xmmword [ebp - 0x28c], xmm0
mov dword [ebp - 0x274], fcn.004ac7ec
mov dword [ebp - 0x270], 0
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x3e0]
call fcn.00471000
mov ebx, dword [ebp - 0x270]
xor esi, esi
test ebx, ebx
jle 0x467201
mov edi, dword [ebp - 0x28c]
nop word [eax + eax]
test esi, esi
js 0x4671dc
cmp esi, ebx
jge 0x4671dc
mov eax, edi
jmp 0x4671de
xor eax, eax
mov ecx, dword [eax + 0x124]
cmp ecx, 6
ja 0x4671f6
push ecx
mov ecx, dword [ebp - 0x268]
push eax
call fcn.004678e0
inc esi
add edi, 0x4d8
cmp esi, ebx
jl 0x4671d0
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 4
call fcn.00468cf0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
mov byte [ebp - 4], 5
mov esi, fcn.004ac7ec
mov ecx, dword [ebp - 0x2c8]
test ecx, ecx
je 0x467248
mov eax, dword [ebp - 0x2b0]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 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 byte [ebp - 4], 6
mov ecx, dword [ebp - 0x308]
test ecx, ecx
je 0x467299
mov eax, dword [ebp - 0x2f0]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x300], 0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x348]
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.00468720
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x338]
test ecx, ecx
je 0x4672f9
mov eax, dword [ebp - 0x320]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 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 byte [ebp - 4], 9
mov ecx, dword [ebp - 0x37c]
test ecx, ecx
je 0x46734a
mov eax, dword [ebp - 0x364]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x37c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3e0]
mov dword [ebp - 0x378], 0
mov dword [ebp - 0x374], 0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
call fcn.004649b0
mov ebx, dword [ebp - 0x268]
cmp byte [ebp - 0x1c], 0
lea eax, [ebp - 0x12c]
cmove eax, dword [ebp - 0x130]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4674b6
shr eax, 4
not al
and al, 1
je 0x4674b6
push ecx
lea ecx, [ebp - 0x378]
call fcn.00471500
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x12c]
cmp byte [ebp - 0x1c], 0
lea ecx, [ebp - 0x378]
cmove eax, dword [ebp - 0x130]
add eax, 4
push eax
call fcn.00472980
lea eax, [ebx + 0x1d34]
push eax
lea ecx, [ebp - 0x378]
call fcn.00471950
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2c8]
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
call fcn.00468720
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2b8]
test ecx, ecx
je 0x467432
mov eax, dword [ebp - 0x2a0]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 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
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x314]
test ecx, ecx
je 0x46748d
mov eax, dword [ebp - 0x2fc]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x314], 0
lea ecx, [ebp - 0x378]
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x30c], 0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
call fcn.004649b0
mov bl, byte [ebp - 0x261]
cmp byte [ebp - 0x1c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4674e5
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x4674e5
push eax
call fcn.004ac7ec
add esp, 4
cmp byte [ebp - 0x144], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x467511
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x254]
cmp eax, ecx
je 0x467511
push eax
call fcn.004ac7ec
add esp, 4
mov al, bl
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.004a35cb
mov esp, ebp
pop ebp
ret 8