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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c65b0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4fafc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], eax
mov dword [eax], vtable.F_Attribute.0
lea edi, [eax + 4]
lea eax, [edi + 0x10]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x50], eax
movups xmmword [edi], xmm0
mov dword [eax], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00461850
push 0x5c
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00499990
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4625fd
mov ecx, eax
call fcn.004b38e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x462639
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46262f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46262f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004be688
add esp, 8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00498b40
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4626ba
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x462688
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46267e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4626e6
push ecx
push edx
call fcn.004be688
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x4626f6
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4626ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4626ec
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004be688
add esp, 8
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [ebp - 0x4c]
mov dword [esi + 0x1c], eax
cmp eax, 0xffffffff
je 0x46286d
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x46286d
cmp dword [ebp - 0x14], 7
mov ecx, eax
mov edx, dword [edi + 0x14]
cmova ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
cmp esi, edx
ja 0x462761
cmp edx, 7
jbe 0x462743
mov edi, dword [edi]
mov edx, dword [ebp - 0x50]
lea eax, [esi + esi]
push eax
push ecx
push edi
mov dword [edx], esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x46286a
cmp esi, 0x7ffffffe
ja 0x462904
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x462797
mov eax, 0x7ffffffe
mov dword [ebp - 0x48], eax
mov eax, 0x7fffffff
add eax, eax
push eax
call fcn.0045f350
mov ecx, dword [ebp - 0x48]
add esp, 4
jmp 0x46280d
mov eax, edx
shr eax, 1
mov dword [ebp - 0x44], eax
mov eax, 0x7ffffffe
sub eax, dword [ebp - 0x44]
cmp edx, eax
jbe 0x4627c7
mov eax, 0x7ffffffe
mov dword [ebp - 0x48], eax
mov eax, 0x7fffffff
add eax, eax
push eax
call fcn.0045f350
mov ecx, dword [ebp - 0x48]
add esp, 4
jmp 0x46280d
mov eax, dword [ebp - 0x44]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
mov dword [ebp - 0x48], ecx
lea eax, [ecx + 1]
cmp eax, 0x7fffffff
ja 0x462909
add eax, eax
cmp eax, 0x1000
jb 0x4627f9
push eax
call fcn.0045f350
mov ecx, dword [ebp - 0x48]
add esp, 4
jmp 0x46280d
test eax, eax
je 0x46280b
push eax
call sub.mfc140u.dll_operator_2
mov ecx, dword [ebp - 0x48]
add esp, 4
jmp 0x46280d
xor eax, eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
mov dword [edi + 0x14], ecx
mov dword [edx], esi
add esi, esi
push esi
push dword [ebp - 0x58]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x44]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x54]
cmp ecx, 7
jbe 0x462868
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46285b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x462899
mov eax, edx
push ecx
push eax
call fcn.004be688
mov eax, dword [ebp - 0x44]
add esp, 8
mov dword [edi], eax
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4628a9
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46289f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46289f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004be688
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x4628e5
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4628db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4628db
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004be688
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004beb23
mov esp, ebp
pop ebp
ret 0x18
call fcn.004b3940
call fcn.004b37e0
int3