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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df597
mov eax, dword fs:[0]
push eax
sub esp, 0x3cc
mov eax, dword [0x513200]
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.00403480
push 1
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x254], 0
call fcn.004056f0
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.00403480
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.004056f0
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 0x40a548
xor bl, bl
jmp 0x40aa10
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.00496f41
cmp eax, 0xffffffff
je 0x40a8d1
shr eax, 4
not al
and al, 1
je 0x40a8d1
cmp byte [ebx + 0xad5], 0
lea ecx, [ebp - 0x3d8]
sete al
movzx eax, al
push eax
call fcn.0041f420
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24c]
cmp byte [ebp - 0x13c], 0
lea ecx, [ebp - 0x3d8]
cmove eax, dword [ebp - 0x250]
add eax, 4
push eax
call fcn.00429da0
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 + 0x21bd], al
setne al
mov byte [ebx + 0x21bc], al
test ecx, ecx
je 0x40a686
call fcn.0040c280
mov byte [ebp - 0x264], al
call fcn.00425fc0
test al, al
je 0x40a626
call esi
push str.initruntime_safeapi
push eax
call fcn.0043f6a0
mov ecx, eax
call fcn.0043f820
mov ecx, eax
call fcn.00440200
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 1
push 1
push 0x52fb70
call edi
cmp eax, 1
je 0x40a67b
call fcn.0041d470
mov esi, dword [ebp - 0x264]
mov ecx, eax
push 1
push 0x4ff208
push esi
call fcn.0043b070
call fcn.0041d470
push 0
push 0x4ff21c
push esi
mov ecx, eax
call fcn.0043b070
push 0
push 1
push 0x52fb70
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call fcn.00425e40
mov edi, dword [ebp - 0x268]
call fcn.00425fc0
test al, al
je 0x40a6aa
call esi
push str.initruntime_SetProcessShortName
push eax
call fcn.0043f6a0
mov ecx, eax
call fcn.0043f820
mov ecx, eax
call fcn.00440200
mov eax, dword [ebp - 0x26c]
mov ecx, ebx
push edi
mov byte [eax], 1
call fcn.004089e0
neg al
sbb al, al
and byte [ebp - 0x259], al
call fcn.00425e40
xorps xmm0, xmm0
mov dword [ebp - 0x27c], fcn.004a9943
movups xmmword [ebp - 0x28c], xmm0
mov dword [ebp - 0x278], fcn.004dc3df
mov dword [ebp - 0x274], fcn.00496f41
mov dword [ebp - 0x270], 0
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x3d8]
call fcn.00420550
mov ebx, dword [ebp - 0x270]
xor esi, esi
test ebx, ebx
jle 0x40a755
mov edi, dword [ebp - 0x28c]
test esi, esi
js 0x40a730
cmp esi, ebx
jge 0x40a730
mov eax, edi
jmp 0x40a732
xor eax, eax
mov ecx, dword [eax + 0x124]
cmp ecx, 4
ja 0x40a74a
push ecx
mov ecx, dword [ebp - 0x260]
push eax
call fcn.0040af30
inc esi
add edi, 0x3b4
cmp esi, ebx
jl 0x40a724
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 4
call fcn.0040da40
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
mov byte [ebp - 4], 5
mov esi, fcn.00496f41
mov ecx, dword [ebp - 0x2c0]
test ecx, ecx
je 0x40a79c
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 0x40a7ed
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.0040d740
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x330]
test ecx, ecx
je 0x40a84d
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 byte [ebp - 4], 9
mov ecx, dword [ebp - 0x374]
test ecx, ecx
je 0x40a89e
mov eax, dword [ebp - 0x35c]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x374], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3d8]
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x36c], 0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
call fcn.00405db0
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 0x40aa0a
shr eax, 4
not al
and al, 1
je 0x40aa0a
push ecx
lea ecx, [ebp - 0x370]
call fcn.004213a0
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.00429da0
lea eax, [ebx + 0x1d34]
push eax
lea ecx, [ebp - 0x370]
call fcn.00421e10
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.0040d3c0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2b0]
test ecx, ecx
je 0x40a986
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 0x40a9e1
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.00405db0
mov bl, byte [ebp - 0x259]
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40aa39
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x40aa39
push eax
call fcn.00496f41
add esp, 4
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40aa65
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x40aa65
push eax
call fcn.00496f41
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.00489940
mov esp, ebp
pop ebp
ret 8