Function at 0x1403e0de0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r12, qword [rbp + 0x210]
mov r15, r8
mov r14, rdx
mov r13, rcx
test rcx, rcx
je 0x1403e1172
test rdx, rdx
je 0x1403e1172
test r8, r8
je 0x1403e1172
cmp dword [rdx + 0x14], 0
jne 0x1403e0ecd
mov rdx, qword [rdx + 0x28]
xor esi, esi
mov edi, 0x80004005
mov rbx, 0xffffffffffffffff
test rdx, rdx
jne 0x1403e0e60
mov eax, esi
jmp 0x1403e0e6c
mov rax, rbx
inc rax
cmp word [rdx + rax*2], si
jne 0x1403e0e63
lea eax, [rax - 1]
cmp word [rdx + rax*2], 0x5c
jne 0x1403e1177
mov r9, rbx
lea rcx, [rbp - 0x70]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rax, [rbp - 0x70]
cmp word [rax + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x1403e0e90
lea ecx, [rbx - 1]
add rcx, rcx
cmp rcx, 0x208
jae 0x1403e11a3
mov word [rbp + rcx - 0x70], si
xor edx, edx
lea rcx, [rbp - 0x70]
call sym.ErrorReportClient.exe_SfCreateDirectory
test eax, eax
je 0x1403e1177
mov edi, esi
jmp 0x1403e1177
test r9d, r9d
je 0x1403e1033
xor esi, esi
lea rdx, [rbp - 0x70]
mov r8d, 0x104
mov rcx, r15
mov edi, esi
call sym.ErrorReportClient.exe_SfGetPathNameFromFilePath
lea rax, [rbp - 0x70]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], si
jne 0x1403e0ef7
test ebx, ebx
je 0x1403e0f17
xor edx, edx
lea rcx, [rbp - 0x70]
call sym.ErrorReportClient.exe_SfCreateDirectory
test eax, eax
je 0x1403e1029
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1403e1029
movzx edx, word [r14 + 6]
lea r8, [rsp + 0x58]
movzx ecx, word [r14 + 8]
call qword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov rax, qword [rsp + 0x48]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rax, qword [r13 + 0x10]
xor r9d, r9d
mov edx, dword [r14 + 0x20]
xor r8d, r8d
mov rcx, qword [r13 + 8]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r13 + 0x10]
lea r9, [rsp + 0x40]
mov rcx, qword [r13 + 8]
lea rdx, [rsp + 0x68]
mov r8d, 0x1e
call qword [rax]
test eax, eax
je 0x1403e101b
cmp dword [rsp + 0x40], 0x1e
jne 0x1403e101b
mov eax, dword [rsp + 0x68]
cmp eax, 0x4034b50
je 0x1403e0fe5
cmp eax, 0x30304b50
jne 0x1403e101b
movzx eax, word [rbp - 0x7e]
xor r9d, r9d
movzx edx, word [rbp - 0x7c]
add eax, 0x1e
mov r10, qword [r13 + 0x10]
add edx, eax
add edx, dword [r14 + 0x20]
xor r8d, r8d
mov rcx, qword [r13 + 8]
call qword [r10 + reloc.OLEAUT32.dll_VariantClear]
mov r9, r12
mov r8, r14
mov rdx, rbx
mov rcx, r13
call fcn.1403e1fc0
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1403e1177
mov edi, 0x8004e006
jmp 0x1403e1177
lea r8, [rsp + 0x50]
call sym.ErrorReportClient.exe_SfZipEnum_ExtractToMemory
mov edi, eax
test eax, eax
js 0x1403e1177
mov r8d, 0x104
lea rdx, [rbp - 0x70]
mov rcx, r15
call sym.ErrorReportClient.exe_SfGetPathNameFromFilePath
lea rax, [rbp - 0x70]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1403e1064
mov r12, qword [rsp + 0x50]
test ebx, ebx
je 0x1403e1090
xor edx, edx
lea rcx, [rbp - 0x70]
call sym.ErrorReportClient.exe_SfCreateDirectory
test eax, eax
jne 0x1403e1090
mov edi, 0x8004e009
jmp 0x1403e114c
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, r15
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1403e1147
movzx edx, word [r14 + 6]
lea r8, [rsp + 0x50]
movzx ecx, word [r14 + 8]
call qword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x58], rcx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x60], rcx
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov r8d, dword [r14 + 0x14]
lea r9, [rsp + 0x40]
mov rdx, r12
mov dword [rsp + 0x40], esi
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 0x8004e009
mov rcx, rbx
test eax, eax
cmovne edi, esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1403e114c
mov edi, 0x80070057
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1403e1177
mov edi, 0x80070057
mov eax, edi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14039bbb0
mov rbx, qword [rsp + 0x308]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14039c530
int3