Function at 0x14008e4b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x6b8
mov rax, qword [0x14012a4f8]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rbx, r8
mov edi, edx
test rcx, rcx
jne 0x14008e4e0
mov edi, 0x10000
jmp 0x14008e7dc
cmp dword [rcx], 1
je 0x14008e4f9
mov dword [0x14012ce20], 0x80000
mov eax, 0x80000
jmp 0x14008e7e4
mov qword [rsp + 0x6b0], rsi
mov rsi, qword [rcx + 8]
cmp dword [rsi + 8], 0xffffffff
je 0x14008e513
mov rcx, qword [rsi]
call fcn.14008b080
mov rcx, qword [rsi]
mov dword [rsi + 8], 0xffffffff
cmp edi, dword [rcx + 8]
jl 0x14008e52c
mov edi, 0x10000
jmp 0x14008e7d4
cmp edi, dword [rcx + 0x14]
jge 0x14008e536
call fcn.14008a9b0
mov rax, qword [rsi]
cmp dword [rax + 0x14], edi
jge 0x14008e551
nop
mov rcx, qword [rsi]
call fcn.14008aa10
mov r11, qword [rsi]
cmp dword [r11 + 0x14], edi
jl 0x14008e540
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rsi
call fcn.14008b3f0
test byte [rsp + 0x25c], 0x10
je 0x14008e5ac
movzx eax, word [rbx]
cmp ax, 0x2f
je 0x14008e59b
cmp ax, 0x5c
je 0x14008e59b
test ax, ax
je 0x14008e585
cmp word [rbx + 2], 0x3a
je 0x14008e59b
lea rcx, [rsi + 0x250]
mov rdx, rbx
call fcn.14008baf0
xor edi, edi
jmp 0x14008e7d4
mov rdx, rbx
xor ecx, ecx
call fcn.14008baf0
xor edi, edi
jmp 0x14008e7d4
movzx eax, word [rbx]
mov qword [rsp + 0x6d8], rbp
mov r9, rbx
mov rcx, rbx
test ax, ax
je 0x14008e5df
cmp ax, 0x2f
je 0x14008e5ce
cmp ax, 0x5c
jne 0x14008e5d2
lea r9, [rcx + 2]
mov ax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14008e5c2
lea rdx, [rsp + 0x280]
mov rcx, rbx
sub rdx, rbx
nop dword [rax]
movzx eax, word [rcx]
add rcx, 2
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x14008e5f0
cmp r9, rbx
jne 0x14008e612
xor edi, edi
mov word [rsp + 0x280], di
jmp 0x14008e649
xor edi, edi
mov rax, r9
sub rax, rbx
sar rax, 1
mov word [rsp + rax*2 + 0x280], di
movzx eax, word [rsp + 0x280]
cmp ax, 0x2f
je 0x14008e688
cmp ax, 0x5c
je 0x14008e688
test ax, ax
je 0x14008e649
cmp word [rsp + 0x282], 0x3a
je 0x14008e688
mov qword [rsp + 0x20], r9
lea r8, [rsi + 0x250]
lea rdx, str._s_s_s
lea r9, [rsp + 0x280]
lea rcx, [rsp + 0x490]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x280]
lea rcx, [rsi + 0x250]
call fcn.14008baf0
jmp 0x14008e6b4
lea r8, [rsp + 0x280]
lea rdx, str._s_s
lea rcx, [rsp + 0x490]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x280]
xor ecx, ecx
call fcn.14008baf0
mov eax, dword [rsp + 0x25c]
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x490]
mov dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14008e6f8
mov edi, 0x200
jmp 0x14008e7cc
mov rdx, qword [rsi + 0x240]
mov rcx, qword [rsi]
call fcn.14008d850
cmp qword [rsi + 0x248], 0
jne 0x14008e730
mov ecx, 0x4000
call fcn.140097a1c
mov qword [rsi + 0x248], rax
nop word [rax + rax]
mov rdx, qword [rsi + 0x248]
mov rcx, qword [rsi]
lea r9, [rsp + 0x40]
mov r8d, 0x4000
call fcn.14008da80
mov ebx, eax
cmp eax, 0xffffff96
je 0x14008e7b6
test eax, eax
js 0x14008e785
test eax, eax
jle 0x14008e77a
mov rdx, qword [rsi + 0x248]
lea r9, [rsp + 0x44]
mov r8d, eax
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14008e78c
cmp byte [rsp + 0x40], 0
jne 0x14008e793
test ebx, ebx
jne 0x14008e730
mov edi, 0x5000000
jmp 0x14008e7bb
mov edi, 0x400
jmp 0x14008e7bb
lea r9, [rsp + 0x270]
lea r8, [rsp + 0x260]
lea rdx, [rsp + 0x268]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x14008e7bb
mov edi, 0x1000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi]
call fcn.14008b080
mov rbp, qword [rsp + 0x6d8]
mov rsi, qword [rsp + 0x6b0]
mov eax, edi
mov dword [0x14012ce20], edi
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1400ad2c0
add rsp, 0x6b8
pop rdi
pop rbx
ret