Function at 0x408300
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x433018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [0x44647c]
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 0x436a98
mov dword [esp + 0xac], 1
mov word [edi + 4], si
call fcn.00426a3d
add esp, 4
push eax
push 0x436a98
mov ecx, edi
call fcn.00402060
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.00426a3d
add esp, 4
push eax
push str.d:dnsrvdrivers_storage_volsnap_vss_server_vss_support_vshadow.sdk72_srcutil.h
mov ecx, edi
call fcn.00402060
lea ecx, [esp + 0x80]
mov byte [esp + 0xc8], 1
call fcn.00418520
mov eax, dword [esp + 0xac]
mov ebp, 8
cmp eax, ebp
mov eax, dword [esp + 0x98]
mov byte [esp + 0x8c], 3
jae 0x4083d8
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.00426a3d
add esp, 4
push eax
push str.Writing_the_file__s_...
mov ecx, edi
call fcn.00402060
lea eax, [esp + 0x64]
push eax
call fcn.004187d0
mov eax, dword [esp + 0xd0]
add esp, 0x24
cmp eax, ebp
mov eax, dword [esp + 0x98]
jae 0x40842c
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 0x40867f
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.00426a3d
add esp, 4
push eax
push str.Executing_Win32_call__s
mov ecx, edi
call fcn.00402060
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x5c], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push 0x436a98
mov byte [esp + 0xcc], 4
mov word [edi + 4], si
call fcn.00426a3d
add esp, 4
push eax
push 0x436a98
mov ecx, edi
call fcn.00402060
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.00426a3d
add esp, 4
push eax
push str.d:dnsrvdrivers_storage_volsnap_vss_server_vss_support_vshadow.sdk72_srcutil.h
mov ecx, edi
call fcn.00402060
lea ecx, [esp + 0xa0]
push ecx
mov byte [esp + 0xec], 3
call fcn.00418290
add esp, 0x60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, esi
jg 0x408519
mov dword [esp + 0x10], ebp
jmp 0x408529
mov eax, ebp
and eax, 0xffff
or eax, 0x80070000
mov dword [esp + 0x10], eax
cmp ebp, esi
je 0x408676
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.00426a3d
add esp, 4
push eax
push str._nERROR:_Win32_call__s_failed.
mov ecx, edi
call fcn.00402060
lea edx, [esp + 0x64]
push edx
call fcn.004187d0
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.00426a3d
add esp, 4
push eax
push str.__GetLastError_____ld
mov ecx, edi
call fcn.00402060
lea eax, [esp + 0x64]
push eax
call fcn.004187d0
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 0x4c]
push ebp
push ecx
call fcn.00417f50
add esp, 0x2c
cmp dword [eax + 0x18], 8
mov byte [esp + 0x8c], 6
jb 0x4085cd
mov eax, dword [eax + 4]
jmp 0x4085d0
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.00426a3d
add esp, 4
push eax
push str.__Error_text:__s
mov ecx, edi
call fcn.00402060
lea edx, [esp + 0x64]
push edx
call fcn.004187d0
mov eax, dword [esp + 0x64]
add esp, 0x24
cmp eax, 8
mov byte [esp + 0x8c], 3
jb 0x408629
mov eax, dword [esp + 0x2c]
push eax
call fcn.00426a53
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.00426a3d
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.00402060
lea ecx, [esp + 0x60]
push ecx
call fcn.004187d0
add esp, 0x20
push 0x442394
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebp
call fcn.00426efa
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 0x4086ae
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 0x4088f4
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.00426a3d
add esp, 4
push eax
push str.Executing_Win32_call__s
mov ecx, edi
call fcn.00402060
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x4c], esp
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], esi
push 0x436a98
mov byte [esp + 0xcc], 8
mov word [edi + 4], si
call fcn.00426a3d
add esp, 4
push eax
push 0x436a98
mov ecx, edi
call fcn.00402060
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.00426a3d
add esp, 4
push eax
push str.d:dnsrvdrivers_storage_volsnap_vss_server_vss_support_vshadow.sdk72_srcutil.h
mov ecx, edi
call fcn.00402060
lea eax, [esp + 0xa0]
push eax
mov byte [esp + 0xec], bl
call fcn.00418290
add esp, 0x60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, esi
jg 0x40878f
mov dword [esp + 0x10], ebp
jmp 0x40879f
mov eax, ebp
and eax, 0xffff
or eax, 0x80070000
mov dword [esp + 0x10], eax
cmp ebp, esi
je 0x4088eb
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.00426a3d
add esp, 4
push eax
push str._nERROR:_Win32_call__s_failed.
mov ecx, edi
call fcn.00402060
lea ecx, [esp + 0x64]
push ecx
call fcn.004187d0
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.00426a3d
add esp, 4
push eax
push str.__GetLastError_____ld
mov ecx, edi
call fcn.00402060
lea edx, [esp + 0x64]
push edx
call fcn.004187d0
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0x4c]
push ebp
push eax
call fcn.00417f50
add esp, 0x2c
cmp dword [eax + 0x18], 8
mov byte [esp + 0x8c], 0xa
jb 0x408843
mov eax, dword [eax + 4]
jmp 0x408846
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.00426a3d
add esp, 4
push eax
push str.__Error_text:__s
mov ecx, edi
call fcn.00402060
lea ecx, [esp + 0x64]
push ecx
call fcn.004187d0
mov eax, dword [esp + 0x64]
add esp, 0x24
cmp eax, 8
mov byte [esp + 0x8c], bl
jb 0x40889e
mov edx, dword [esp + 0x2c]
push edx
call fcn.00426a53
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.00426a3d
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.00402060
lea eax, [esp + 0x60]
push eax
call fcn.004187d0
add esp, 0x20
push 0x442394
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], ebp
call fcn.00426efa
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.00418690
cmp dword [esp + 0xac], ebp
jb 0x408925
mov edx, dword [esp + 0x98]
push edx
call fcn.00426a53
add esp, 4
cmp dword [esp + 0xc8], ebp
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], esi
mov word [esp + 0x98], si
jb 0x408954
mov eax, dword [esp + 0xb4]
push eax
call fcn.00426a53
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x80]
call fcn.0042714d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret