Function at 0x14008e7c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
mov eax, 0x43b0
call fcn.140240e90
sub rsp, rax
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0x43a0], rax
mov r13d, dword [rsp + 0x4400]
mov r15d, r9d
mov r14, r8
mov ebp, edx
mov rdi, rcx
lea eax, [r13 - 1]
cmp eax, 2
ja 0x14008ec6f
mov eax, dword [rcx + 8]
cmp r13d, 3
jne 0x14008e910
cmp edx, eax
je 0x14008e8d1
cmp eax, 0xffffffff
je 0x14008e833
mov rcx, qword [rcx]
call fcn.140091500
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebp, dword [rcx + 8]
jge 0x14008ec6f
cmp dword [rcx + 0x14], ebp
jle 0x14008e856
call fcn.1400915a0
mov rcx, qword [rdi]
cmp dword [rcx + 0x14], ebp
jge 0x14008e8c9
mov rbx, rcx
xor esi, esi
nop dword [rax]
mov rcx, rbx
test rbx, rbx
je 0x14008e8c1
cmp dword [rbx + 0x1c], esi
je 0x14008e8c1
mov edx, dword [rbx + 0x14]
inc edx
cmp edx, dword [rbx + 8]
je 0x14008e8c1
mov ecx, dword [rbx + 0x54]
lea r8, [rbx + 0x7c]
add ecx, dword [rbx + 0x50]
xor r9d, r9d
mov eax, dword [rbx + 0x4c]
mov dword [rsp + 0x40], esi
add eax, 0x2e
add ecx, eax
mov qword [rsp + 0x38], rsi
add dword [rbx + 0x18], ecx
mov rcx, rbx
mov dword [rbx + 0x14], edx
lea rdx, [rbx + 0x2c]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
call fcn.140092250
mov ecx, esi
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rcx, qword [rdi]
mov rbx, rcx
cmp dword [rcx + 0x14], ebp
jl 0x14008e860
call fcn.1400918f0
mov dword [rdi + 8], ebp
mov rcx, qword [rdi]
mov r8d, r15d
mov rdx, r14
call fcn.140091d90
mov ebx, eax
test eax, eax
jle 0x14008e8ef
mov eax, 0x600
jmp 0x14008ec74
mov rcx, qword [rdi]
call fcn.140091500
mov dword [rdi + 8], 0xffffffff
test ebx, ebx
je 0x14008ea5b
mov eax, 0x5000000
jmp 0x14008ec74
cmp eax, 0xffffffff
je 0x14008e91d
mov rcx, qword [rcx]
call fcn.140091500
mov rbx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebp, dword [rbx + 8]
jge 0x14008ec6f
xor esi, esi
cmp dword [rbx + 0x14], ebp
jle 0x14008e97e
test rbx, rbx
je 0x14008e97b
mov eax, dword [rbx + 0x28]
lea r8, [rbx + 0x7c]
mov dword [rsp + 0x40], esi
lea rdx, [rbx + 0x2c]
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov dword [rsp + 0x30], esi
mov rcx, rbx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov dword [rbx + 0x18], eax
mov dword [rbx + 0x14], esi
call fcn.140092250
mov ecx, esi
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rbx, qword [rdi]
cmp dword [rbx + 0x14], ebp
jge 0x14008e9e9
mov rax, rbx
test rbx, rbx
je 0x14008e9e1
cmp dword [rbx + 0x1c], esi
je 0x14008e9e1
mov edx, dword [rbx + 0x14]
inc edx
cmp edx, dword [rbx + 8]
je 0x14008e9e1
mov ecx, dword [rbx + 0x54]
lea r8, [rbx + 0x7c]
add ecx, dword [rbx + 0x50]
xor r9d, r9d
mov eax, dword [rbx + 0x4c]
mov dword [rsp + 0x40], esi
add eax, 0x2e
add ecx, eax
mov qword [rsp + 0x38], rsi
add dword [rbx + 0x18], ecx
mov rcx, rbx
mov dword [rbx + 0x14], edx
lea rdx, [rbx + 0x2c]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
call fcn.140092250
test eax, eax
mov ecx, esi
sete cl
mov dword [rbx + 0x1c], ecx
mov rax, qword [rdi]
mov rbx, rax
cmp dword [rax + 0x14], ebp
jl 0x14008e980
lea r8, [rsp + 0x60]
mov edx, ebp
mov rcx, rdi
call fcn.14008e060
test byte [rsp + 0x168], 0x10
je 0x14008ea62
cmp r13d, 1
je 0x14008ea5b
xor edx, edx
lea rcx, [rsp + 0x190]
mov r8d, 0x206
call fcn.140243780
lea rax, [rsp + 0x190]
mov dword [rsp + 0x28], 0x103
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x64]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rdi + 0x13c]
lea rdx, [rsp + 0x190]
call fcn.14008dda0
xor eax, eax
jmp 0x14008ec74
cmp r13d, 1
je 0x14008eba2
movzx eax, word [r14]
mov rdx, r14
mov rcx, r14
test ax, ax
je 0x14008eb73
nop
cmp ax, 0x2f
je 0x14008ea8c
cmp ax, 0x5c
jne 0x14008ea90
lea rdx, [rcx + 2]
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14008ea80
cmp rdx, r14
je 0x14008eb73
lea r8, [rsp + 0x190]
mov rcx, r14
sub r8, r14
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rcx + r8], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14008eac0
sub rdx, r14
sar rdx, 1
lea rdx, [rdx*2 - 2]
cmp rdx, 0x208
jae 0x14008eca0
mov word [rsp + rdx + 0x190], si
movzx eax, word [rsp + 0x190]
cmp ax, 0x2f
je 0x14008eb18
cmp ax, 0x5c
je 0x14008eb18
cmp word [rsp + 0x192], 0x3a
je 0x14008eb18
xor bpl, bpl
jmp 0x14008eb1b
mov bpl, 1
lea rdx, [0x140291a68]
lea rcx, [rsp + 0x190]
call fcn.140241fb0
lea rdx, [0x140282538]
mov rbx, rax
lea rcx, [rsp + 0x190]
call fcn.140241fb0
test rax, rax
movzx ecx, bpl
mov eax, 1
setne dl
test rbx, rbx
cmovne ecx, eax
or dl, cl
jne 0x14008eb73
lea rcx, [rdi + 0x13c]
lea rdx, [rsp + 0x190]
call fcn.14008dda0
mov eax, dword [rsp + 0x168]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov rcx, r14
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp r14, 0xffffffffffffffff
jne 0x14008ebb2
mov eax, 0x200
jmp 0x14008ec74
mov rcx, qword [rdi]
call fcn.1400918f0
mov rcx, qword [rdi]
lea rdx, [rsp + 0x3a0]
mov r8d, 0x4000
xor bl, bl
call fcn.140091d90
test eax, eax
js 0x14008ec14
je 0x14008ec16
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov r8d, eax
lea rdx, [rsp + 0x3a0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14008ec14
mov rcx, qword [rdi]
lea rdx, [rsp + 0x3a0]
mov r8d, 0x4000
call fcn.140091d90
test eax, eax
jns 0x14008ebd6
mov bl, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x14008ec49
test bl, bl
jne 0x14008ec49
lea r9, [rsp + 0x17c]
mov rcx, r14
lea r8, [rsp + 0x16c]
lea rdx, [rsp + 0x174]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp r13d, 1
je 0x14008ec58
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.140091500
test bl, bl
je 0x14008ea5b
mov eax, 0x400
jmp 0x14008ec74
mov eax, 0x10000
mov rcx, qword [rsp + 0x43a0]
xor rcx, rsp
call fcn.140240e30
lea r11, [rsp + 0x43b0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
call fcn.140241130
int3