Function at 0x14005c650
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [0x14012dcd0]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov r13d, dword [rbp + 0x600]
mov r14d, r9d
mov rsi, r8
mov ebx, edx
mov rdi, rcx
cmp r13d, 3
je 0x14005c9bb
lea eax, [r13 - 1]
cmp eax, 1
jbe 0x14005c6b5
cmp r13d, 4
je 0x14005c9bb
mov eax, 0x10000
jmp 0x14005c8b3
cmp r13d, 4
je 0x14005c9bb
cmp dword [rcx + 8], 0xffffffff
je 0x14005c6cd
mov rcx, qword [rcx]
call fcn.14005f6f0
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x14005c6ab
cmp ebx, dword [rcx + 0x14]
jge 0x14005c6e6
call fcn.14005f7a0
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x14005c700
nop
mov rcx, qword [rdi]
call fcn.14005f800
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jl 0x14005c6f0
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, rdi
call fcn.14005bd70
mov eax, dword [rbp + 0x15c]
shr eax, 4
test al, 1
je 0x14005c764
cmp r13d, 1
je 0x14005c75d
movzx eax, word [rsi]
cmp ax, 0x2f
je 0x14005c753
cmp ax, 0x5c
je 0x14005c753
test ax, ax
je 0x14005c73d
cmp word [rsi + 2], 0x3a
je 0x14005c753
lea rcx, [rdi + 0x250]
mov rdx, rsi
call fcn.14005bb90
xor eax, eax
jmp 0x14005c8b3
xor ecx, ecx
mov rdx, rsi
call fcn.14005bb90
xor eax, eax
jmp 0x14005c8b3
xor r14d, r14d
mov qword [rsp + 0x6e8], r15
mov word [rbp + 0x390], r14w
cmp r13d, 1
je 0x14005c8a0
movzx eax, word [rsi]
mov r15, rsi
mov rcx, rsi
test ax, ax
je 0x14005c7ad
nop
cmp ax, 0x2f
je 0x14005c79c
cmp ax, 0x5c
jne 0x14005c7a0
lea r15, [rcx + 2]
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14005c790
mov r8d, 0x104
lea rcx, [rbp + 0x180]
mov rdx, rsi
call fcn.1400bcf60
cmp r15, rsi
jne 0x14005c7d1
mov word [rbp + 0x180], r14w
jmp 0x14005c814
mov rax, r15
sub rax, rsi
sar rax, 1
add rax, rax
cmp rax, 0x208
jae 0x14005ca6c
mov word [rbp + rax + 0x180], r14w
movzx eax, word [rbp + 0x180]
cmp ax, 0x2f
je 0x14005c843
cmp ax, 0x5c
je 0x14005c843
test ax, ax
je 0x14005c814
cmp word [rbp + 0x182], 0x3a
je 0x14005c843
lea r9, [rbp + 0x180]
mov qword [rsp + 0x20], r15
lea r8, [rdi + 0x250]
lea rdx, str._s_s_s
lea rcx, [rbp + 0x390]
call fcn.14005f4e0
lea rcx, [rdi + 0x250]
jmp 0x14005c862
mov r9, r15
lea r8, [rbp + 0x180]
lea rdx, str._s_s
lea rcx, [rbp + 0x390]
call fcn.14005f4e0
xor ecx, ecx
lea rdx, [rbp + 0x180]
call fcn.14005bb90
mov eax, dword [rbp + 0x15c]
lea rcx, [rbp + 0x390]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], eax
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 0x14005c8d9
mov eax, 0x200
mov r15, qword [rsp + 0x6e8]
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.1400af8c0
mov rbx, qword [rsp + 0x6f8]
add rsp, 0x6b0
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdi + 0x240]
mov rcx, qword [rdi]
call fcn.14005f890
cmp qword [rdi + 0x248], r14
jne 0x14005c910
mov ecx, 0x4000
call fcn.1400af910
mov qword [rdi + 0x248], rax
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdi + 0x248]
lea r9, [rsp + 0x40]
mov rcx, qword [rdi]
mov r8d, 0x4000
call fcn.14005fdd0
mov ebx, eax
cmp eax, 0xffffff96
je 0x14005c973
test eax, eax
js 0x14005c963
jle 0x14005c958
mov rdx, qword [rdi + 0x248]
lea r9, [rsp + 0x44]
mov r8d, eax
mov qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14005c96b
cmp byte [rsp + 0x40], r14b
jne 0x14005c979
test ebx, ebx
jne 0x14005c910
mov r14d, 0x5000000
jmp 0x14005c979
mov r14d, 0x400
jmp 0x14005c979
mov r14d, 0x1000
mov rcx, qword [rdi]
call fcn.14005f6f0
test r14d, r14d
jne 0x14005c9a4
lea r9, [rbp + 0x170]
mov rcx, rsi
lea r8, [rbp + 0x160]
lea rdx, [rbp + 0x168]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp r13d, 1
je 0x14005c9b3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
jmp 0x14005c8ab
mov eax, dword [rcx + 8]
cmp edx, eax
je 0x14005ca16
cmp eax, 0xffffffff
je 0x14005c9cf
mov rcx, qword [rcx]
call fcn.14005f6f0
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x14005c6ab
cmp ebx, dword [rcx + 0x14]
jge 0x14005c9ec
call fcn.14005f7a0
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x14005ca04
mov rcx, qword [rdi]
call fcn.14005f800
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jl 0x14005c9f4
mov rdx, qword [rdi + 0x240]
mov rcx, qword [rdi]
call fcn.14005f890
mov dword [rdi + 8], ebx
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rsi
call fcn.14005fdd0
mov ebx, eax
test eax, eax
jg 0x14005ca3e
mov rcx, qword [rdi]
call fcn.14005f6f0
mov dword [rdi + 8], 0xffffffff
cmp byte [rsp + 0x40], 0
jne 0x14005c75d
test ebx, ebx
jle 0x14005ca57
mov eax, 0x600
jmp 0x14005c8b3
cmp ebx, 0xffffff96
mov eax, 0x5000000
mov edx, 0x1000
cmove eax, edx
jmp 0x14005c8b3
call fcn.1400af23c
int3