Function at 0x1400057a0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r12d, edx
mov rdi, rcx
mov eax, dword [0x14000f888]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
sete al
cmp dword [0x14000f884], 0xa
setl dl
cmp r12d, 0xffffffff
je 0x140005810
or dl, al
mov rax, qword [rdi + 0x40]
cmp qword [rax], 0
je 0x1400057f7
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x1400057f7
test dl, dl
jne 0x140005823
jmp 0x140005861
cmp qword [rdi + 0x80], 0
je 0x140005818
mov eax, dword [0x14000f8c0]
test dl, dl
jne 0x14000587f
jmp 0x14000591c
xor r12d, r12d
jmp 0x140005cf2
mov r12d, 0xffffffff
jmp 0x140005cf2
add ecx, 0xffffffff
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], r12b
cmp dword [0x14000f884], 0xa
jl 0x140005cf2
mov eax, dword [0x14000f888]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x140005cf2
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
add ecx, 0xffffffff
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], r12b
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
jmp 0x140005823
mov rcx, qword [rdi + 0x18]
lea rdx, [rdi + 0x70]
cmp qword [rcx], rdx
jne 0x140005902
lea edx, [rax - 1]
imul edx, eax
test dl, 1
je 0x1400058a0
cmp dword [0x14000f8bc], 9
jg 0x1400058dd
mov eax, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rcx], rdx
mov rcx, qword [rdi + 0x38]
mov qword [rcx], rdx
sub eax, edx
mov rcx, qword [rdi + 0x50]
mov dword [rcx], eax
mov eax, dword [0x14000f8c0]
cmp dword [0x14000f8bc], 0xa
jl 0x140005902
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x140005902
mov rcx, qword [rdi + 0x18]
mov eax, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rcx], rdx
mov rcx, qword [rdi + 0x38]
mov qword [rcx], rdx
sub eax, edx
mov rcx, qword [rdi + 0x50]
mov dword [rcx], eax
mov rcx, qword [rdi + 0x18]
jmp 0x1400058a0
cmp dword [0x14000f884], 0xa
jl 0x14000594e
mov ecx, dword [0x14000f888]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x14000594e
mov rcx, qword [rdi + 0x18]
lea rdx, [rdi + 0x70]
cmp qword [rcx], rdx
jne 0x14000587f
lea edx, [rax - 1]
imul edx, eax
test dl, 1
je 0x140005d09
cmp dword [0x14000f8bc], 9
jg 0x140005d4e
jmp 0x140005d09
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x140005b1a
lea rbp, [rsp + 0x80]
lea r13, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
lea rdx, [rdi + 0x74]
lea rsi, [rsp + 0x50]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x47]
nop word cs:[rax + rax]
nop
mov r15d, r12d
mov byte [rsp + 0x47], r12b
mov r10, qword [rcx]
mov r12, rsi
mov qword [rsp + 0x38], rsi
mov rbx, rbp
mov qword [rsp + 0x30], rbp
mov r14, rax
mov qword [rsp + 0x28], rax
mov rdi, r9
mov qword [rsp + 0x20], r9
mov rbp, rdx
mov r9, r13
call qword [r10 + 0x38]
cmp dword [0x14000f884], 0xa
jl 0x140005a38
mov ecx, dword [0x14000f888]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x140005a38
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x68]
mov rax, qword [rcx]
mov byte [rsp + 0x47], r15b
mov rsi, r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
mov rdx, rbp
lea r12, [rsp + 0x47]
mov r8, r12
mov r9, r13
call qword [rax + 0x38]
mov r9, rdi
mov rdx, rbp
mov rbp, rbx
mov rax, r14
mov r8, r12
mov r12d, r15d
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x68]
jmp 0x140005990
mov r12d, 0xffffffff
cmp eax, 3
jge 0x140005c04
cmp eax, 1
ja 0x140005cf2
mov rbx, qword [rsp + 0x50]
sub rbx, r14
je 0x140005afd
mov rax, qword [rsp + 0x48]
mov r9, qword [rax + 0x80]
lea rcx, [rsp + 0x60]
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp dword [0x14000f884], 0xa
jl 0x140005af4
mov ecx, dword [0x14000f888]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x140005af4
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea rsi, [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
nop dword [rax + rax]
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, rsi
mov r8, rbx
call r14
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, rsi
mov r8, rbx
call r14
cmp dword [0x14000f884], 0xa
jl 0x140005af4
mov ecx, dword [0x14000f888]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
jne 0x140005ab0
cmp rbx, rax
jne 0x140005cf2
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x47]
cmp qword [rsp + 0x58], rax
mov eax, 0xffffffff
jmp 0x140005ceb
mov eax, dword [0x14000f880]
mov ecx, dword [0x14000f87c]
movsx ebx, r12b
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
nop word cs:[rax + rax]
nop dword [rax + rax]
mov rsi, qword [rdi + 0x80]
cmp ecx, 0xa
jl 0x140005b60
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
jne 0x140005b86
nop word [rax + rax]
mov ecx, ebx
mov rdx, rsi
call r14
mov ebp, dword [0x14000f880]
mov edx, dword [0x14000f87c]
lea ecx, [rbp - 1]
imul ecx, ebp
and ecx, 1
cmp edx, 0xa
jl 0x140005b90
test ecx, ecx
je 0x140005b90
mov ecx, ebx
mov rdx, rsi
call r14
jmp 0x140005b60
cmp dword [0x14000f884], 0xa
jl 0x140005bf8
mov ebp, dword [0x14000f888]
lea esi, [rbp - 1]
imul esi, ebp
and esi, 1
je 0x140005bf8
mov rsi, qword [rdi + 0x80]
cmp edx, 0xa
jl 0x140005bc0
test ecx, ecx
jne 0x140005bee
nop word [rax + rax]
mov ecx, ebx
mov rdx, rsi
call r14
mov eax, dword [0x14000f880]
mov ecx, dword [0x14000f87c]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
cmp ecx, 0xa
jl 0x140005b40
test edx, edx
je 0x140005b40
mov ecx, ebx
mov rdx, rsi
call r14
jmp 0x140005bc0
cmp eax, 0xffffffff
cmove r12d, eax
jmp 0x140005cf2
jne 0x140005cf2
mov eax, dword [0x14000f880]
mov ecx, dword [0x14000f87c]
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdi, qword [rsp + 0x48]
nop word cs:[rax + rax]
nop dword [rax]
mov rsi, qword [rdi + 0x80]
movsx ebx, byte [rsp + 0x47]
cmp ecx, 0xa
jl 0x140005c50
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
jne 0x140005c76
nop dword [rax]
mov ecx, ebx
mov rdx, rsi
call r14
mov ebp, dword [0x14000f880]
mov edx, dword [0x14000f87c]
lea ecx, [rbp - 1]
imul ecx, ebp
and ecx, 1
cmp edx, 0xa
jl 0x140005c80
test ecx, ecx
je 0x140005c80
mov ecx, ebx
mov rdx, rsi
call r14
jmp 0x140005c50
cmp dword [0x14000f884], 0xa
jl 0x140005ce8
mov ebp, dword [0x14000f888]
lea ebx, [rbp - 1]
imul ebx, ebp
and ebx, 1
je 0x140005ce8
mov rsi, qword [rdi + 0x80]
movsx ebx, byte [rsp + 0x47]
cmp edx, 0xa
jl 0x140005cb0
test ecx, ecx
jne 0x140005cde
nop
mov ecx, ebx
mov rdx, rsi
call r14
mov eax, dword [0x14000f880]
mov ecx, dword [0x14000f87c]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
cmp ecx, 0xa
jl 0x140005c30
test edx, edx
je 0x140005c30
mov ecx, ebx
mov rdx, rsi
call r14
jmp 0x140005cb0
cmp eax, 0xffffffff
cmove r15d, eax
mov r12d, r15d
mov eax, r12d
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rcx], rdx
mov rcx, qword [rdi + 0x38]
mov qword [rcx], rdx
sub eax, edx
mov rcx, qword [rdi + 0x50]
mov dword [rcx], eax
mov eax, dword [0x14000f8c0]
cmp dword [0x14000f8bc], 0xa
jl 0x14000587f
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x14000587f
mov rcx, qword [rdi + 0x18]
mov eax, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rcx], rdx
mov rcx, qword [rdi + 0x38]
mov qword [rcx], rdx
sub eax, edx
mov rcx, qword [rdi + 0x50]
mov dword [rcx], eax
mov rcx, qword [rdi + 0x18]
jmp 0x140005d09