Function at 0x40c530
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [0x45447c]
push ebx
push ebp
push esi
mov dword [esp + 0x7c], eax
push edi
sub esp, 0x1c
mov edi, esp
xor esi, esi
mov ebx, 7
mov dword [esp + 0x30], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push 0x441890
mov dword [esp + 0xac], 1
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push 0x441890
mov ecx, edi
call fcn.00402190
push 0x1b6
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 + 0xcc], 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 + 0x80]
mov byte [esp + 0xc8], 1
call fcn.0041fd60
mov eax, dword [esp + 0xac]
mov ebp, 8
cmp eax, ebp
mov eax, dword [esp + 0x98]
mov byte [esp + 0x8c], 3
jae 0x40c608
lea eax, [esp + 0x98]
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.Writing_the_file__s_...
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push str.Writing_the_file__s_...
mov ecx, edi
call fcn.00402190
lea eax, [esp + 0x64]
push eax
call fcn.00420010
mov eax, dword [esp + 0xd0]
add esp, 0x24
cmp eax, ebp
mov eax, dword [esp + 0x98]
jae 0x40c65c
lea eax, [esp + 0x98]
push esi
push esi
push 2
push esi
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
jne 0x40c8af
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 0x441890
mov byte [esp + 0xcc], 4
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push 0x441890
mov ecx, edi
call fcn.00402190
push 0x1c3
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 + 0xec], 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 + 0xa0]
push ecx
mov byte [esp + 0xec], 3
call fcn.0041fad0
add esp, 0x60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, esi
jg 0x40c749
mov dword [esp + 0x10], ebp
jmp 0x40c759
mov eax, ebp
and eax, 0xffff
or eax, 0x80070000
mov dword [esp + 0x10], eax
cmp ebp, esi
je 0x40c8a6
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 + 0x64]
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 + 0x64]
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 + 0x8c], 6
jb 0x40c7fd
mov eax, dword [eax + 4]
jmp 0x40c800
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 + 0x64]
push edx
call fcn.00420010
mov eax, dword [esp + 0x64]
add esp, 0x24
cmp eax, 8
mov byte [esp + 0x8c], 3
jb 0x40c859
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 + 0x60]
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 ebp, 8
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0xc4]
cmp ecx, ebp
mov ecx, dword [esp + 0xb4]
mov byte [esp + 0x8c], bl
lea eax, [eax + eax + 2]
jae 0x40c8de
lea ecx, [esp + 0xb4]
push esi
lea edx, [esp + 0x28]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, esi
jne 0x40cb24
push str._WriteFile_hFile___LPWSTR_contents.c_str____cbWrite__dwWritten__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 0x441890
mov byte [esp + 0xcc], 8
mov word [edi + 4], si
call fcn.0042fe2d
add esp, 4
push eax
push 0x441890
mov ecx, edi
call fcn.00402190
push 0x1cc
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 + 0xec], 9
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 + 0xa0]
push eax
mov byte [esp + 0xec], bl
call fcn.0041fad0
add esp, 0x60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, esi
jg 0x40c9bf
mov dword [esp + 0x10], ebp
jmp 0x40c9cf
mov eax, ebp
and eax, 0xffff
or eax, 0x80070000
mov dword [esp + 0x10], eax
cmp ebp, esi
je 0x40cb1b
push str._WriteFile_hFile___LPWSTR_contents.c_str____cbWrite__dwWritten__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 + 0x64]
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 + 0x64]
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 + 0x8c], 0xa
jb 0x40ca73
mov eax, dword [eax + 4]
jmp 0x40ca76
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 + 0x64]
push ecx
call fcn.00420010
mov eax, dword [esp + 0x64]
add esp, 0x24
cmp eax, 8
mov byte [esp + 0x8c], bl
jb 0x40cace
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 + 0x60]
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, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x44]
mov byte [esp + 0x8c], 1
call fcn.0041fed0
cmp dword [esp + 0xac], ebp
jb 0x40cb55
mov edx, dword [esp + 0x98]
push edx
call fcn.0042fe43
add esp, 4
cmp dword [esp + 0xc8], ebp
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], esi
mov word [esp + 0x98], si
jb 0x40cb84
mov eax, dword [esp + 0xb4]
push eax
call fcn.0042fe43
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x80]
call fcn.0043053d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret