Function at 0x140032730
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x1401f3f10]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
mov byte [rbp], 0
call fcn.140015130
mov dword [rbp + 0x20], eax
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.MSVCR120.dll_wcslen]
add rax, 0x12
mov qword [rbp + 0x38], rax
mov byte [rbp + 0x90], 0
lea rax, [rbp + 0x91]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea r8, [0x14021b010]
mov rdx, qword [rbp + 0x38]
lea rcx, [rbp + 0x90]
call qword [sym.imp.MSVCR120.dll_strcpy_s]
mov rax, qword [rbp + 0x1d8]
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x1400327e0
mov qword [rbp + 0x40], 0
jmp 0x140032861
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.MSVCR120.dll_wcslen]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x3fffffff
jle 0x140032802
mov qword [rbp + 0x30], 0
jmp 0x140032859
movsxd rax, dword [rbp + 4]
shl rax, 1
mov qword [rbp + 0x50], rax
movsxd rcx, dword [rbp + 4]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x14003282a
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.14010f740
sub rsp, rax
lea rax, [rsp + 0x40]
mov r9d, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x50]
mov r8d, ecx
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call fcn.14002ec40
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x40], rax
mov r8, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x38]
lea rcx, [rbp + 0x90]
call qword [sym.imp.MSVCR120.dll_strcat_s]
lea rax, [rbp + 0x90]
mov qword [rbp + 0x48], rax
mov rcx, qword [rbp + 0x48]
call sub.MSVCR120.dll_strlen
mov r9, qword [rbp + reloc.mfc120u.dll_Ordinal_488]
mov rcx, qword [rbp + 0x1e0]
mov r8, qword [rcx]
mov rdx, rax
mov rcx, qword [rbp + 0x48]
call fcn.14007d9f0
mov byte [rbp], al
movzx eax, byte [rbp]
test eax, eax
je 0x1400329d1
mov byte [rbp], 0
lea rcx, [rbp + 0x70]
call fcn.140030030
nop
mov edx, 0x104
lea rcx, [rbp + 0x70]
call fcn.140030800
mov r8, qword [rbp + 0x1d8]
mov rdx, qword [rbp + 0x1d0]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rcx, qword [rbp + 0x1d0]
call fcn.140031c50
movzx eax, al
test eax, eax
jne 0x140032908
mov rcx, qword [rbp + 0x1d0]
call fcn.140031d00
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x58], 0x18
mov dword [rbp + 0x68], 0
lea rcx, [rbp + 0x58]
call fcn.140031e50
movzx eax, al
test eax, eax
je 0x140032936
lea rax, [rbp + 0x58]
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x70]
call fcn.140030730
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x22
mov dword [rsp + 0x20], 2
mov r9, qword [rbp + 0x28]
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0xffffffffffffffff
je 0x1400329be
mov qword [rsp + 0x20], 0
lea r9, [rbp + 8]
mov r8d, dword [rbp + reloc.mfc120u.dll_Ordinal_488]
mov rax, qword [rbp + 0x1e0]
mov rdx, qword [rax]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400329b4
mov eax, dword [rbp + 8]
cmp qword [rbp + reloc.mfc120u.dll_Ordinal_488], rax
jne 0x1400329b4
mov byte [rbp], 1
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x28]
call fcn.140031ec0
nop
lea rcx, [rbp + 0x70]
call fcn.140030070
movzx eax, byte [rbp]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.14010f170
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret