Function at 0x401c50
Capabilities:
Acquire debug privileges
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4043c0
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
xorps xmm0, xmm0
push 0x28
movups xmmword [ebp - 0x44], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401ce7
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x38], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401ce2
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x48]
call edi
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401d17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess_failed:_0x_X_n
call fcn.00401020
add esp, 8
lea eax, [esi - 2]
jmp 0x401f86
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x401d43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cant_confirm_target_process_architecture:_0x_X_n
call fcn.00401020
add esp, 8
jmp 0x401d63
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
je 0x401d7d
push str.Invalid_Process_Architecture._n
call fcn.00401020
add esp, 4
push esi
call edi
mov eax, 0xfffffffd
jmp 0x401f86
push 0x405760
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401da7
push str.Dll_file_doesnt_exist_n
call fcn.00401020
add esp, 4
push esi
call edi
mov eax, 0xfffffffc
jmp 0x401f86
push 0xb8
lea eax, [ebp - 0x100]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ecx
lea ecx, [ebp - 0x100]
call fcn.00402d30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xf4], 6
je 0x401e35
push dword [ebp + eax - 0xf4]
push str.Opening_the_file_failed:__X_n
call fcn.00401020
add esp, 8
lea ecx, [ebp - 0xf0]
call fcn.00403170
test eax, eax
jne 0x401e1b
push eax
mov eax, dword [ebp - 0x100]
lea ecx, [ebp - 0x100]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push esi
call edi
lea ecx, [ebp - 0x100]
mov esi, 0xfffffffb
call fcn.00401fc0
mov eax, esi
jmp 0x401f86
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
adc ecx, dword [ebp - 0x30]
test ecx, ecx
jg 0x401eac
jl 0x401e5e
cmp eax, 0x1000
jae 0x401eac
push str.Filesize_invalid._n
call fcn.00401020
add esp, 4
lea ecx, [ebp - 0xf0]
call fcn.00403170
test eax, eax
jne 0x401e92
push eax
mov eax, dword [ebp - 0x100]
lea ecx, [ebp - 0x100]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push esi
call edi
lea ecx, [ebp - 0x100]
mov esi, 0xfffffffa
call fcn.00401fc0
mov eax, esi
jmp 0x401f86
push eax
call fcn.0040369f
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x100]
push 0
push 0
push 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
adc ecx, dword [ebp - 0x30]
push ecx
push edx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, [ebp - 0xf0]
call fcn.00403170
test eax, eax
jne 0x401f0e
push eax
mov eax, dword [ebp - 0x100]
lea ecx, [ebp - 0x100]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push str.Mapping..._n
call fcn.00401020
mov edx, dword [ebp - 0x14]
sub esp, 0x18
mov ecx, esi
call fcn.00401050
add esp, 0x1c
push dword [ebp - 0x14]
test al, al
jne 0x401f5b
call fcn.0040365c
add esp, 4
push esi
call edi
push str.Error_while_mapping._n
call fcn.00401020
add esp, 4
lea ecx, [ebp - 0x100]
mov esi, 0xfffffff8
call fcn.00401fc0
mov eax, esi
jmp 0x401f86
call fcn.0040365c
add esp, 4
push esi
call edi
push 0x40575c
call fcn.00401020
add esp, 4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x100]
call fcn.00401fc0
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.0040364e
mov esp, ebp
pop ebp
ret