Function at 0x14008b8a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x520]
sub rsp, 0x620
mov qword [rbp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x660], rbx
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rbp + 0x510], rax
mov qword [rbp - 0x68], r9
mov rdi, r8
mov qword [rsp + 0x78], r8
mov r12, rdx
mov qword [rbp - 0x48], rcx
xor r13d, r13d
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x50], r13
mov dword [rsp + 0x44], 0x80
mov dword [rsp + 0x48], r13d
mov esi, 0x80004005
mov ebx, r13d
mov dword [rsp + 0x40], ebx
cmp dword [r8], ebx
jbe 0x14008c095
lea rax, [r8 + 4]
mov qword [rsp + 0x70], rax
nop dword [rax]
mov ecx, dword [rax]
test cl, 4
je 0x14008b93e
mov edx, dword [rax + 0x24]
mov dword [rsp + 0x44], edx
test cl, 0x40
je 0x14008b94b
mov edx, dword [rax + 0x44]
mov qword [rsp + 0x48], rdx
test cl, 8
je 0x14008b962
mov eax, ebx
imul rax, rax, 0x250
lea r8, [rax + rdi + 0x2c]
mov qword [rbp - 0x58], r8
test cl, 0x10
je 0x14008b979
mov eax, ebx
imul rax, rax, 0x250
lea r8, [rax + rdi + 0x34]
mov qword [rbp - 0x60], r8
test cl, 0x20
je 0x14008b990
mov eax, ebx
imul rax, rax, 0x250
lea rax, [rax + rdi + 0x3c]
mov qword [rbp - 0x50], rax
xor edi, edi
mov dword [rsp + 0x50], edi
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov r13d, edi
mov r14d, edi
mov r15d, edi
lea rcx, [0x1401038a8]
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov word [rbp - 0x40], ax
mov dword [rbp - 0x28], 1
mov dword [rbp - 0x2c], ebx
mov dword [rbp - 0x30], 1
mov qword [rbp - 0x38], rdi
lea rcx, [0x1401038c8]
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov word [rbp], ax
mov dword [rbp + 0x18], 4
mov dword [rbp + 0x14], ebx
mov dword [rbp + 0x10], 1
mov qword [rbp + 8], rdi
lea rcx, [0x1401038e8]
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov word [rbp - 0x20], ax
mov dword [rbp - 8], 8
mov dword [rbp - 0xc], ebx
mov dword [rbp - 0x10], 1
mov qword [rbp - 0x18], rdi
mov edi, dword [rbp - 0x2c]
mov dword [rbp - 0x2c], 0xffffffff
mov rax, qword [r12]
lea rdx, [rbp - 0x40]
mov rcx, r12
call qword [rax + 0x28]
mov dword [rbp - 0x2c], edi
test eax, eax
jne 0x14008ba65
mov rax, qword [r12]
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x40]
mov rcx, r12
call qword [rax + ILCombine]
test eax, eax
jne 0x14008ba65
lea rcx, [rbp - 0x80]
call qword [sym.imp.ole32.dll_ReleaseStgMedium]
lea rdx, [rbp - 0x40]
jmp 0x14008baf5
mov edi, dword [rbp + 0x14]
mov dword [rbp + 0x14], 0xffffffff
mov rax, qword [r12]
lea rdx, [rbp]
mov rcx, r12
call qword [rax + 0x28]
mov dword [rbp + 0x14], edi
test eax, eax
jne 0x14008baaa
mov rax, qword [r12]
lea r8, [rbp - 0x80]
lea rdx, [rbp]
mov rcx, r12
call qword [rax + ILCombine]
test eax, eax
jne 0x14008baaa
lea rcx, [rbp - 0x80]
call qword [sym.imp.ole32.dll_ReleaseStgMedium]
lea rdx, [rbp]
jmp 0x14008baf5
mov edi, dword [rbp - 0xc]
mov dword [rbp - 0xc], 0xffffffff
mov rax, qword [r12]
lea rdx, [rbp - 0x20]
mov rcx, r12
call qword [rax + 0x28]
mov dword [rbp - 0xc], edi
test eax, eax
jne 0x14008c057
mov rax, qword [r12]
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x20]
mov rcx, r12
call qword [rax + ILCombine]
test eax, eax
jne 0x14008c057
lea rcx, [rbp - 0x80]
call qword [sym.imp.ole32.dll_ReleaseStgMedium]
lea rdx, [rbp - 0x20]
mov rax, qword [r12]
lea r8, [rsp + 0x50]
mov rcx, r12
call qword [rax + ILCombine]
mov esi, eax
test eax, eax
jne 0x14008c057
mov eax, dword [rsp + 0x50]
dec eax
je 0x14008bd59
sub eax, 3
je 0x14008bcf4
cmp eax, 4
jne 0x14008bdd1
mov rax, qword [rbp - 0x48]
mov rdi, qword [rax + 0x40]
mov edx, 0x104
lea rcx, [rbp + 0xf0]
lea rax, [rbp + 0xf0]
sub rdi, rax
nop word [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14008bb73
movzx eax, word [rdi + rcx]
test ax, ax
je 0x14008bb73
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x14008bb50
jmp 0x14008bb78
test rdx, rdx
jne 0x14008bb7c
sub rcx, 2
xor edi, edi
mov word [rcx], di
mov eax, ebx
imul rax, rax, 0x250
mov rcx, qword [rsp + 0x78]
lea rbx, [rax + rcx + 0x4c]
mov rdx, rbx
lea rcx, [rbp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x68], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [0x1400fa3b0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x11002
lea rcx, [rbp + 0xf0]
call qword [sym.imp.ole32.dll_StgCreateStorageEx]
mov esi, eax
test eax, eax
jne 0x14008bdcd
mov rcx, qword [rsp + 0x58]
mov rdi, qword [rcx]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rdi + 0x38]
mov esi, eax
test eax, eax
jne 0x14008bce4
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x48]
mov esi, eax
test eax, eax
jne 0x14008bce4
mov qword [rbp + 0xb8], 7
mov qword [rbp + 0xb0], r13
mov word [rbp + 0xa0], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rbp + 0xa0]
call fcn.140009a30
nop
mov rbx, qword [rbp - 0x68]
mov rdi, qword [rbx]
lea r8, [rbp + 0xa0]
mov rdx, qword [rdi + 8]
mov rcx, rdi
call fcn.14000a770
mov rdx, qword [rbx + 8]
movabs rcx, 0x666666666666665
sub rcx, rdx
cmp rcx, 1
jb 0x14008c07b
lea rcx, [rdx + 1]
mov qword [rbx + 8], rcx
mov qword [rdi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
cmp qword [rbp + 0xb8], 8
jb 0x14008bcc4
mov rcx, qword [rbp + 0xa0]
call fcn.14004b088
mov qword [rbp + 0xb8], 7
mov qword [rbp + 0xb0], r13
mov word [rbp + 0xa0], r13w
mov r13d, 1
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.SHELL32.dll_ILFindLastID]
jmp 0x14008bdcd
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov r8d, 1
lea rdx, [rbp + 0x50]
call qword [rax + 0x60]
mov esi, eax
test eax, eax
jne 0x14008bdd1
mov edi, dword [rbp + 0x60]
mov ecx, edi
call fcn.14004af90
mov r15, rax
test rax, rax
je 0x14008bdd1
mov rax, qword [rsp + 0x70]
test byte [rax], 0x40
mov rax, qword [rsp + 0x48]
cmove eax, edi
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea r9, [rbp + 0x20]
mov r8d, edi
mov rdx, r15
call qword [rax + ILCombine]
lea r14d, [rsi + 1]
jmp 0x14008bdd1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rcx, rax
call fcn.14004af90
mov r15, rax
test rax, rax
je 0x14008bdd1
mov rax, qword [rsp + 0x70]
test byte [rax], 0x40
jne 0x14008bd8e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
je 0x14008bdd1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov r8, rax
mov rdx, rdi
mov rcx, r15
call fcn.14004b590
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r14d, 1
jmp 0x14008bdd1
mov ebx, dword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ole32.dll_ReleaseStgMedium]
test r14d, r14d
je 0x14008c04a
test r13d, r13d
jne 0x14008c04a
mov rax, qword [rbp - 0x48]
mov rdi, qword [rax + 0x40]
mov edx, 0x104
lea rcx, [rbp + 0x300]
lea rax, [rbp + 0x300]
sub rdi, rax
nop dword [rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14008be33
movzx eax, word [rdi + rcx]
test ax, ax
je 0x14008be33
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x14008be10
jmp 0x14008be38
test rdx, rdx
jne 0x14008be3c
sub rcx, 2
xor r14d, r14d
mov word [rcx], r14w
mov eax, ebx
imul rax, rax, 0x250
mov rcx, qword [rsp + 0x78]
lea rdx, [rax + rcx + 0x4c]
lea rcx, [rbp + 0x300]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x30], r14
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0x300]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14008bfd3
mov r9, qword [rbp - 0x50]
mov r8, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x24]
mov r8d, dword [rsp + 0x48]
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x104
lea rcx, [rbp + 0xf0]
lea rdi, [rbp + 0x300]
lea rax, [rbp + 0xf0]
sub rdi, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14008bf15
movzx eax, word [rdi + rcx]
test ax, ax
je 0x14008bf15
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x14008bef2
jmp 0x14008bf1a
test rdx, rdx
jne 0x14008bf1e
sub rcx, 2
mov word [rcx], r14w
lea rcx, [rbp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov qword [rbp + 0xe0], 7
mov qword [rbp + 0xd8], r14
mov word [rbp + 0xc8], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0xf0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0xc8]
call fcn.140009a30
nop
mov r13, qword [rbp - 0x68]
mov rdi, qword [r13]
lea r8, [rbp + 0xc8]
mov rdx, qword [rdi + 8]
mov rcx, rdi
call fcn.14000a770
mov rdx, qword [r13 + 8]
movabs rcx, 0x666666666666665
sub rcx, rdx
cmp rcx, 1
jb 0x14008c088
lea rcx, [rdx + 1]
mov qword [r13 + 8], rcx
mov qword [rdi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
cmp qword [rbp + 0xe0], 8
jb 0x14008bfd3
mov rcx, qword [rbp + 0xc8]
call fcn.14004b088
lea rcx, [0x140103908]
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov word [rbp + 0x28], ax
mov qword [rbp + 0x30], r14
mov dword [rbp + 0x38], 1
mov dword [rbp + 0x3c], 0xffffffff
mov dword [rbp + 0x40], 1
mov edx, 4
lea ecx, [rdx - 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [rax], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [rbp - 0x80], 1
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x78], rdi
mov rax, qword [r12]
xor r9d, r9d
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x28]
mov rcx, r12
call qword [rax + 0x38]
test r15, r15
je 0x14008c057
mov rcx, r15
call fcn.14004b048
inc ebx
mov dword [rsp + 0x40], ebx
mov rax, qword [rsp + 0x70]
add rax, 0x250
mov qword [rsp + 0x70], rax
mov rdi, qword [rsp + 0x78]
cmp ebx, dword [rdi]
jae 0x14008c095
jmp 0x14008b930
lea rcx, str.list_T__too_long
call fcn.14002ba2c
nop
lea rcx, str.list_T__too_long
call fcn.14002ba2c
nop
mov eax, esi
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.14004ae00
mov rbx, qword [rsp + 0x660]
add rsp, 0x620
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret