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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5077
mov eax, dword fs:[0]
push eax
sub esp, 0x3e0
mov eax, dword [0x519220]
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 - 0x260], ebx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x258]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x26c], eax
call fcn.00403e10
push 1
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x254], 0
call fcn.00406110
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
cmove eax, dword [ebp - 0x250]
xor ecx, ecx
mov word [eax + 4], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x134]
call fcn.00403e10
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00406110
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x134]
mov eax, dword [ebx]
push ecx
lea ecx, [ebp - 0x258]
push ecx
mov eax, dword [eax + 0x1c]
mov ecx, ebx
push edi
call eax
test al, al
jne 0x40af48
xor bl, bl
jmp 0x40b41a
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
mov byte [ebp - 0x259], 1
cmove eax, dword [ebp - 0x250]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, fcn.0049c7b1
cmp eax, 0xffffffff
je 0x40b2db
shr eax, 4
not al
and al, 1
je 0x40b2db
cmp byte [ebx + 0xad8], 0
lea ecx, [ebp - 0x3ec]
sete al
movzx eax, al
push eax
call fcn.00421470
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24c]
cmp byte [ebp - 0x13c], 0
lea ecx, [ebp - 0x3ec]
cmove eax, dword [ebp - 0x250]
add eax, 4
push eax
call fcn.0042c420
cmp dword [ebp - 0x294], 0
mov ecx, dword [ebp - 0x2d4]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
setne al
test ecx, ecx
mov byte [ebx + 0x21c1], al
setne al
mov byte [ebx + 0x21c0], al
test ecx, ecx
je 0x40b086
call fcn.0040cd90
mov byte [ebp - 0x264], al
call fcn.00428580
test al, al
je 0x40b026
call esi
push str.initruntime_safeapi
push eax
call fcn.004435d0
mov ecx, eax
call fcn.00443750
mov ecx, eax
call fcn.00444130
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 1
push 1
push 0x536074
call edi
cmp eax, 1
je 0x40b07b
call fcn.0041f470
mov esi, dword [ebp - 0x264]
mov ecx, eax
push 1
push 0x5055c8
push esi
call fcn.0043f000
call fcn.0041f470
push 0
push 0x5055dc
push esi
mov ecx, eax
call fcn.0043f000
push 0
push 1
push 0x536074
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call fcn.00428400
mov edi, dword [ebp - 0x268]
call fcn.00428580
test al, al
je 0x40b0aa
call esi
push str.initruntime_SetProcessShortName
push eax
call fcn.004435d0
mov ecx, eax
call fcn.00443750
mov ecx, eax
call fcn.00444130
mov eax, dword [ebp - 0x26c]
mov ecx, ebx
push edi
mov byte [eax], 1
call fcn.00409390
neg al
sbb al, al
and byte [ebp - 0x259], al
call fcn.00428400
xorps xmm0, xmm0
mov dword [ebp - 0x27c], fcn.004af1b3
movups xmmword [ebp - 0x28c], xmm0
mov dword [ebp - 0x278], fcn.004e1c5f
mov dword [ebp - 0x274], fcn.0049c7b1
mov dword [ebp - 0x270], 0
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x3ec]
call fcn.004227c0
mov ebx, dword [ebp - 0x270]
xor esi, esi
test ebx, ebx
jle 0x40b155
mov edi, dword [ebp - 0x28c]
test esi, esi
js 0x40b130
cmp esi, ebx
jge 0x40b130
mov eax, edi
jmp 0x40b132
xor eax, eax
mov ecx, dword [eax + 0x124]
cmp ecx, 7
ja 0x40b14a
push ecx
mov ecx, dword [ebp - 0x260]
push eax
call fcn.0040b940
inc esi
add edi, 0x4d8
cmp esi, ebx
jl 0x40b124
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 4
call fcn.0040eab0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
mov byte [ebp - 4], 5
mov esi, fcn.0049c7b1
mov ecx, dword [ebp - 0x2c0]
test ecx, ecx
je 0x40b19c
mov eax, dword [ebp - 0x2a8]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 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 - 0x300]
test ecx, ecx
je 0x40b1ed
mov eax, dword [ebp - 0x2e8]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], 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 - 0x340]
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.0040e780
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x330]
test ecx, ecx
je 0x40b24d
mov eax, dword [ebp - 0x318]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x328], 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], 9
mov ecx, dword [ebp - 0x388]
test ecx, ecx
je 0x40b2a8
mov eax, dword [ebp - 0x370]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x388], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3ec]
mov dword [ebp - 0x384], 0
mov dword [ebp - 0x380], 0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
call fcn.004067d0
mov ebx, dword [ebp - 0x260]
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b414
shr eax, 4
not al
and al, 1
je 0x40b414
push ecx
lea ecx, [ebp - 0x370]
call fcn.00423770
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x128]
cmp byte [ebp - 0x18], 0
lea ecx, [ebp - 0x370]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
call fcn.0042c420
lea eax, [ebx + 0x1d38]
push eax
lea ecx, [ebp - 0x370]
call fcn.004241e0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2c0]
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.0040e400
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2b0]
test ecx, ecx
je 0x40b390
mov eax, dword [ebp - 0x298]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 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 - 0x30c]
test ecx, ecx
je 0x40b3eb
mov eax, dword [ebp - 0x2f4]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x30c], 0
lea ecx, [ebp - 0x370]
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x304], 0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
call fcn.004067d0
mov bl, byte [ebp - 0x259]
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40b443
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x40b443
push eax
call fcn.0049c7b1
add esp, 4
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40b46f
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x40b46f
push eax
call fcn.0049c7b1
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.0048f1b0
mov esp, ebp
pop ebp
ret 8