Function at 0x18000bd70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov rbx, rcx
xor eax, eax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
xor r15d, r15d
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x41], r15
lea rdx, [rbp - 0x51]
call fcn.18000b260
test al, al
jne 0x18000bddd
xor bl, bl
mov rdi, qword [rbp - 0x51]
jmp 0x18000c0d4
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
movdqa xmmword [rbp - 9], xmm0
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r15
mov dword [rbp + 0x1f], 0xffffffff
add rbx, 0x38
mov rax, qword [rbx + 8]
cmp qword [rbx], rax
je 0x18000be3b
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.18000df20
lea rdx, [rbx + 0x18]
lea rcx, [rbp - 0x11]
call fcn.18000df20
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 7]
call fcn.18000df20
mov eax, dword [rbx + 0x48]
mov dword [rbp + 0x1f], eax
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x29]
call fcn.18000a670
mov rdi, qword [rbp - 0x51]
test al, al
jne 0x18000be57
xor bl, bl
jmp 0x18000c0ca
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], r15
mov qword [rbp - 0x59], r15
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x29]
call fcn.180009a00
mov rax, qword [rbp - 0x61]
cmp qword [rbp - 0x69], rax
je 0x18000c082
mov rcx, rsi
call fcn.180014700
test al, al
je 0x18000c082
mov dword [rbp - 0x71], r15d
mov rbx, qword [rbp - 0x61]
mov rdx, qword [rbp - 0x69]
sub rbx, rdx
mov rax, qword [rsi]
test rax, rax
je 0x18000c082
test rdx, rdx
je 0x18000c082
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18000c082
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x71]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000c082
mov ecx, dword [rbp - 0x71]
cmp ebx, ecx
jne 0x18000c082
mov eax, dword [rbp - 0x61]
sub eax, dword [rbp - 0x69]
cmp ecx, eax
jne 0x18000c082
mov rbx, qword [rbp - 0x49]
mov eax, ebx
sub eax, edi
mov dword [rbp - 0x39], eax
mov rax, qword [rsi]
test rax, rax
je 0x18000c082
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18000c082
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x71]
mov r8d, 4
lea rdx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000c082
cmp dword [rbp - 0x71], 4
jne 0x18000c082
cmp rdi, rbx
je 0x18000bfaf
mov r14, rbx
sub r14, rdi
mov rax, qword [rsi]
test rax, rax
je 0x18000c082
test rdi, rdi
je 0x18000c082
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18000c082
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x71]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000c082
mov eax, dword [rbp - 0x71]
cmp r14d, eax
jne 0x18000c082
sub ebx, edi
cmp eax, ebx
jne 0x18000c082
mov rcx, qword [rsi]
test rcx, rcx
je 0x18000c07e
cmp qword [rcx], 0xffffffffffffffff
je 0x18000c07e
mov qword [rbp - 0x31], r15
mov r9d, 1
lea r8, [rbp - 0x2d]
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x31], eax
cmp eax, 0xffffffff
jne 0x18000bff4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18000c07e
cmp qword [rsi], 0
je 0x18000c07e
mov qword [rsp + 0x38], r15
lea r9, [rsp + 0x38]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rsi
call fcn.180014680
test al, al
je 0x18000c07e
mov qword [rsp + 0x30], r15
cmp qword [rsi], 0
je 0x18000c07e
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rbx, qword [rbp - 0x31]
mov rdx, rbx
mov rcx, rsi
call fcn.180014680
test al, al
je 0x18000c07e
cmp qword [rsp + 0x30], rbx
jne 0x18000c05e
mov rax, qword [rsi]
test rax, rax
je 0x18000c05e
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18000c05e
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov qword [rsp + 0x30], r15
cmp qword [rsi], 0
je 0x18000c07e
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.180014680
mov bl, 1
jmp 0x18000c084
xor bl, bl
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x18000c0ca
mov rdx, qword [rbp - 0x59]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c0b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c141
call fcn.180037bf4
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r15
lea rcx, [rbp - 0x29]
call fcn.18000c5a0
nop
test rdi, rdi
je 0x18000c115
mov rdx, qword [rbp - 0x41]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x18000c101
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c13b
mov rcx, rdi
call fcn.180037bf4
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x51], xmm0
mov qword [rbp - 0x41], r15
movzx eax, bl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180037bd0
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180042f24
nop
call fcn.180042f24
nop
int3