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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512630
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x584f80]
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.0045c8f0
push 0x5c
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0046e350
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x45cb2d
mov ecx, eax
call fcn.00475e90
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 0x45cb69
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45cb5f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45cb5f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
add esp, 8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0046e2b0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x45cbea
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x45cbb8
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45cbae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cc16
push ecx
push edx
call fcn.0050686b
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 0x45cc26
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45cc1c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45cc1c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
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 0x45cd67
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x45cd67
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 0x45cc91
cmp edx, 7
jbe 0x45cc73
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 0x45cd64
cmp esi, 0x7ffffffe
ja 0x45cdfe
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
ja 0x45ccde
mov eax, edx
shr eax, 1
mov dword [ebp - 0x44], eax
mov eax, 0x7ffffffe
sub eax, dword [ebp - 0x44]
cmp edx, eax
ja 0x45ccde
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 0x45ce03
add eax, eax
jne 0x45cced
jmp 0x45cd07
mov eax, 0x7ffffffe
mov dword [ebp - 0x48], eax
mov eax, 0x7fffffff
add eax, eax
push eax
cmp eax, 0x1000
jb 0x45ccfc
call fcn.0045bfa0
jmp 0x45cd01
call sub.mfc140u.dll_operator_2
mov ecx, dword [ebp - 0x48]
add esp, 4
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 0x45cd62
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x45cd55
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cd93
mov eax, edx
push ecx
push eax
call fcn.0050686b
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 0x45cda3
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45cd99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45cd99
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x45cddf
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45cdd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45cdd5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050686b
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.00506d06
mov esp, ebp
pop ebp
ret 0x18
call fcn.00475ef0
call fcn.00475de0
int3