Function at 0x14008deb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x6b0
mov rax, qword [0x14012a4f8]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov r12d, dword [rsp + 0x6f0]
mov ebp, r9d
mov rsi, r8
mov ebx, edx
mov rdi, rcx
cmp r12d, 3
je 0x14008e1c7
cmp r12d, 2
je 0x14008df0a
cmp r12d, 1
je 0x14008df0a
mov eax, 0x10000
jmp 0x14008e271
cmp dword [rcx + 8], 0xffffffff
je 0x14008df18
mov rcx, qword [rcx]
call fcn.14008b080
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x14008df00
cmp ebx, dword [rcx + 0x14]
jge 0x14008df31
call fcn.14008a9b0
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x14008df51
nop dword [rax]
mov rcx, qword [rdi]
call fcn.14008aa10
mov r11, qword [rdi]
cmp dword [r11 + 0x14], ebx
jl 0x14008df40
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, rdi
call fcn.14008b3f0
test byte [rsp + 0x25c], 0x10
je 0x14008dfb2
cmp r12d, 1
je 0x14008dfab
movzx eax, word [rsi]
cmp ax, 0x2f
je 0x14008dfa1
cmp ax, 0x5c
je 0x14008dfa1
test ax, ax
je 0x14008df8b
cmp word [rsi + 2], 0x3a
je 0x14008dfa1
lea rcx, [rdi + 0x250]
mov rdx, rsi
call fcn.14008baf0
xor eax, eax
jmp 0x14008e271
xor ecx, ecx
mov rdx, rsi
call fcn.14008baf0
xor eax, eax
jmp 0x14008e271
xor ebp, ebp
cmp r12d, 1
je 0x14008e0e7
movzx eax, word [rsi]
mov r9, rsi
mov rcx, rsi
test ax, ax
je 0x14008dfed
nop dword [rax]
cmp ax, 0x2f
je 0x14008dfdc
cmp ax, 0x5c
jne 0x14008dfe0
lea r9, [rcx + 2]
mov ax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14008dfd0
lea rdx, [rsp + 0x280]
mov rcx, rsi
sub rdx, rsi
nop dword [rax + rax]
movzx eax, word [rcx]
add rcx, 2
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x14008e000
cmp r9, rsi
jne 0x14008e020
mov word [rsp + 0x280], bp
jmp 0x14008e055
mov rax, r9
sub rax, rsi
sar rax, 1
mov word [rsp + rax*2 + 0x280], bp
movzx eax, word [rsp + 0x280]
cmp ax, 0x2f
je 0x14008e087
cmp ax, 0x5c
je 0x14008e087
test ax, ax
je 0x14008e055
cmp word [rsp + 0x282], 0x3a
je 0x14008e087
mov qword [rsp + 0x20], r9
lea r8, [rdi + 0x250]
lea rdx, str._s_s_s
lea r9, [rsp + 0x280]
lea rcx, [rsp + 0x490]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rdi + 0x250]
jmp 0x14008e0a6
lea r8, [rsp + 0x280]
lea rdx, str._s_s
lea rcx, [rsp + 0x490]
call qword [sym.imp.USER32.dll_wsprintfW]
xor ecx, ecx
lea rdx, [rsp + 0x280]
call fcn.14008baf0
mov eax, dword [rsp + 0x25c]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x490]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rsi, 0xffffffffffffffff
jne 0x14008e0f7
mov eax, 0x200
jmp 0x14008e271
mov rdx, qword [rdi + 0x240]
mov rcx, qword [rdi]
call fcn.14008d850
cmp qword [rdi + 0x248], rbp
jne 0x14008e120
mov ecx, 0x4000
call fcn.140097a1c
mov qword [rdi + 0x248], rax
mov rdx, qword [rdi + 0x248]
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, 0x4000
call fcn.14008da80
mov ebx, eax
cmp eax, 0xffffff96
je 0x14008e1a4
test eax, eax
js 0x14008e173
jle 0x14008e168
mov rdx, qword [rdi + 0x248]
lea r9, [rsp + 0x44]
mov r8d, eax
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14008e17a
cmp byte [rsp + 0x40], bpl
jne 0x14008e181
test ebx, ebx
jne 0x14008e120
mov ebp, 0x5000000
jmp 0x14008e1a9
mov ebp, 0x400
jmp 0x14008e1a9
lea r9, [rsp + 0x270]
lea r8, [rsp + 0x260]
lea rdx, [rsp + 0x268]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x14008e1a9
mov ebp, 0x1000
cmp r12d, 1
je 0x14008e1b8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.14008b080
mov eax, ebp
jmp 0x14008e271
mov eax, dword [rcx + 8]
cmp edx, eax
je 0x14008e223
cmp eax, 0xffffffff
je 0x14008e1db
mov rcx, qword [rcx]
call fcn.14008b080
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x14008df00
cmp ebx, dword [rcx + 0x14]
jge 0x14008e1f8
call fcn.14008a9b0
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x14008e211
mov rcx, qword [rdi]
call fcn.14008aa10
mov r11, qword [rdi]
cmp dword [r11 + 0x14], ebx
jl 0x14008e200
mov rdx, qword [rdi + 0x240]
mov rcx, qword [rdi]
call fcn.14008d850
mov dword [rdi + 8], ebx
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rsi
call fcn.14008da80
mov ebx, eax
test eax, eax
jg 0x14008e24b
mov rcx, qword [rdi]
call fcn.14008b080
mov dword [rdi + 8], 0xffffffff
cmp byte [rsp + 0x40], 0
jne 0x14008dfab
test ebx, ebx
jle 0x14008e261
mov eax, 0x600
jmp 0x14008e271
mov eax, 0x5000000
mov edx, 0x1000
cmp ebx, 0xffffff96
cmove eax, edx
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1400ad2c0
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret