Function at 0x41c460
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43dbbf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
mov eax, dword [0x45447c]
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x9c], eax
push edi
mov dword [esp + 0x24], esi
sub esp, 0x1c
mov edi, esp
mov ebx, 7
mov dword [esp + 0x30], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.ReadFileContents
mov dword [esp + 0xcc], 1
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.ReadFileContents
mov ecx, edi
call fcn.00402190
push 0x194
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x4c], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.d:dnsrvdrivers_storage_volsnap_vss_server_vss_support_vshadow.sdk72_srcutil.h
mov byte [esp + 0xec], 2
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.d:dnsrvdrivers_storage_volsnap_vss_server_vss_support_vshadow.sdk72_srcutil.h
mov ecx, edi
call fcn.00402190
lea ecx, [esp + 0xa0]
mov byte [esp + 0xe8], 1
call fcn.0041fd60
mov eax, dword [esp + 0xd0]
mov ebp, 8
cmp eax, ebp
mov eax, dword [esp + 0xbc]
mov byte [esp + 0xac], 3
jae 0x41c542
lea eax, [esp + 0xbc]
push eax
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x34], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.Reading_the_file__s_...
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.Reading_the_file__s_...
mov ecx, edi
call fcn.00402190
lea eax, [esp + 0x84]
push eax
call fcn.00420010
mov eax, dword [esp + 0xf4]
add esp, 0x24
cmp eax, ebp
mov eax, dword [esp + 0xbc]
jae 0x41c599
lea eax, [esp + 0xbc]
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
jne 0x41c7f3
push str.L_CreateFile_
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x30], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.Executing_Win32_call__s
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.Executing_Win32_call__s
mov ecx, edi
call fcn.00402190
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x5c], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.ReadFileContents
mov byte [esp + 0xec], 4
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.ReadFileContents
mov ecx, edi
call fcn.00402190
push 0x1a1
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x74], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.d:dnsrvdrivers_storage_volsnap_vss_server_vss_support_vshadow.sdk72_srcutil.h
mov byte [esp + 0x10c], 5
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.d:dnsrvdrivers_storage_volsnap_vss_server_vss_support_vshadow.sdk72_srcutil.h
mov ecx, edi
call fcn.00402190
lea ecx, [esp + 0xc0]
push ecx
mov byte [esp + 0x10c], 3
call fcn.0041fad0
add esp, 0x60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, esi
jg 0x41c686
mov dword [esp + 0x10], ebp
jmp 0x41c696
mov eax, ebp
and eax, 0xffff
or eax, 0x80070000
mov dword [esp + 0x10], eax
cmp ebp, esi
je 0x41c7ef
push str.L_CreateFile_
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x38], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str._nERROR:_Win32_call__s_failed.
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str._nERROR:_Win32_call__s_failed.
mov ecx, edi
call fcn.00402190
lea edx, [esp + 0x84]
push edx
call fcn.00420010
add esp, 0x24
push ebp
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x38], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.__GetLastError_____ld
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.__GetLastError_____ld
mov ecx, edi
call fcn.00402190
lea eax, [esp + 0x84]
push eax
call fcn.00420010
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 0x4c]
push ebp
push ecx
call fcn.0041f780
add esp, 0x2c
cmp dword [eax + 0x18], 8
mov byte [esp + 0xac], 6
jb 0x41c740
mov eax, dword [eax + 4]
jmp 0x41c743
add eax, 4
push eax
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x38], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.__Error_text:__s
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.__Error_text:__s
mov ecx, edi
call fcn.00402190
lea edx, [esp + 0x84]
push edx
call fcn.00420010
mov eax, dword [esp + 0x64]
add esp, 0x24
cmp eax, 8
mov byte [esp + 0xac], 3
jb 0x41c79f
mov eax, dword [esp + 0x2c]
push eax
call fcn.0042fe43
add esp, 4
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x34], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.__Please_re_run_VSHADOW.EXE_with_the__tracing_option_to_get_more_details
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.__Please_re_run_VSHADOW.EXE_with_the__tracing_option_to_get_more_details
mov ecx, edi
call fcn.00402190
lea ecx, [esp + 0x80]
push ecx
call fcn.00420010
add esp, 0x20
push 0x44f9c4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebp
call fcn.004302ea
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], edi
push esi
push edi
mov byte [esp + 0xb4], bl
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push esi
shr eax, 1
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], esi
mov word [esp + 0x54], si
call fcn.00401ef0
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 8
call fcn.00403950
mov eax, dword [eax + 8]
push esi
lea edx, [esp + 0x48]
push edx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x28]
mov ebp, eax
call fcn.004039d0
cmp ebp, esi
jne 0x41ca95
push str._ReadFile_hFile__WString2Buffer_contents___dwFileSize__dwRead__NULL__
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x40], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.Executing_Win32_call__s
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.Executing_Win32_call__s
mov ecx, edi
call fcn.00402190
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x4c], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.ReadFileContents
mov byte [esp + 0xec], 9
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.ReadFileContents
mov ecx, edi
call fcn.00402190
push 0x1ad
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x78], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.d:dnsrvdrivers_storage_volsnap_vss_server_vss_support_vshadow.sdk72_srcutil.h
mov byte [esp + 0x10c], 0xa
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.d:dnsrvdrivers_storage_volsnap_vss_server_vss_support_vshadow.sdk72_srcutil.h
mov ecx, edi
call fcn.00402190
lea eax, [esp + 0xc0]
push eax
mov byte [esp + 0x10c], 8
call fcn.0041fad0
add esp, 0x60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, esi
jg 0x41c928
mov dword [esp + 0x10], ebp
jmp 0x41c938
mov eax, ebp
and eax, 0xffff
or eax, 0x80070000
mov dword [esp + 0x10], eax
cmp ebp, esi
je 0x41ca91
push str._ReadFile_hFile__WString2Buffer_contents___dwFileSize__dwRead__NULL__
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x3c], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str._nERROR:_Win32_call__s_failed.
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str._nERROR:_Win32_call__s_failed.
mov ecx, edi
call fcn.00402190
lea ecx, [esp + 0x84]
push ecx
call fcn.00420010
add esp, 0x24
push ebp
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x3c], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.__GetLastError_____ld
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.__GetLastError_____ld
mov ecx, edi
call fcn.00402190
lea edx, [esp + 0x84]
push edx
call fcn.00420010
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0x4c]
push ebp
push eax
call fcn.0041f780
add esp, 0x2c
cmp dword [eax + 0x18], 8
mov byte [esp + 0xac], 0xb
jb 0x41c9e2
mov eax, dword [eax + 4]
jmp 0x41c9e5
add eax, 4
push eax
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x3c], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.__Error_text:__s
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.__Error_text:__s
mov ecx, edi
call fcn.00402190
lea ecx, [esp + 0x84]
push ecx
call fcn.00420010
mov eax, dword [esp + 0x64]
add esp, 0x24
cmp eax, 8
mov byte [esp + 0xac], 8
jb 0x41ca41
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042fe43
add esp, 4
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x38], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push str.__Please_re_run_VSHADOW.EXE_with_the__tracing_option_to_get_more_details
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.__Please_re_run_VSHADOW.EXE_with_the__tracing_option_to_get_more_details
mov ecx, edi
call fcn.00402190
lea eax, [esp + 0x80]
push eax
call fcn.00420010
add esp, 0x20
push 0x44f9c4
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], ebp
call fcn.004302ea
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0xb4]
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x50]
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], esi
push edx
mov ecx, ebp
mov word [ebp + 4], si
call fcn.00401de0
cmp dword [esp + 0x60], 8
mov dword [esp + 0x24], 1
jb 0x41cad1
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042fe43
add esp, 4
push edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], esi
mov word [esp + 0x50], si
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x64]
mov byte [esp + 0xac], 1
call fcn.0041fed0
cmp dword [esp + 0xd0], 8
jb 0x41cb10
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.0042fe43
add esp, 4
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xa0]
mov eax, ebp
call fcn.0043053d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret