Function at 0x140029d80
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 [0x140098720]
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.140029240
test al, al
jne 0x140029ded
xor bl, bl
mov rdi, qword [rbp - 0x51]
jmp 0x14002a0e4
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 0x140029e4b
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.14002bd80
lea rdx, [rbx + 0x18]
lea rcx, [rbp - 0x11]
call fcn.14002bd80
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 7]
call fcn.14002bd80
mov eax, dword [rbx + 0x48]
mov dword [rbp + 0x1f], eax
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x29]
call fcn.140028850
mov rdi, qword [rbp - 0x51]
test al, al
jne 0x140029e67
xor bl, bl
jmp 0x14002a0da
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.140027be0
mov rax, qword [rbp - 0x61]
cmp qword [rbp - 0x69], rax
je 0x14002a092
mov rcx, rsi
call fcn.140007b10
test al, al
je 0x14002a092
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 0x14002a092
test rdx, rdx
je 0x14002a092
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x14002a092
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x71]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002a092
mov ecx, dword [rbp - 0x71]
cmp ebx, ecx
jne 0x14002a092
mov eax, dword [rbp - 0x61]
sub eax, dword [rbp - 0x69]
cmp ecx, eax
jne 0x14002a092
mov rbx, qword [rbp - 0x49]
mov eax, ebx
sub eax, edi
mov dword [rbp - 0x39], eax
mov rax, qword [rsi]
test rax, rax
je 0x14002a092
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x14002a092
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 0x14002a092
cmp dword [rbp - 0x71], 4
jne 0x14002a092
cmp rdi, rbx
je 0x140029fbf
mov r14, rbx
sub r14, rdi
mov rax, qword [rsi]
test rax, rax
je 0x14002a092
test rdi, rdi
je 0x14002a092
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x14002a092
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 0x14002a092
mov eax, dword [rbp - 0x71]
cmp r14d, eax
jne 0x14002a092
sub ebx, edi
cmp eax, ebx
jne 0x14002a092
mov rcx, qword [rsi]
test rcx, rcx
je 0x14002a08e
cmp qword [rcx], 0xffffffffffffffff
je 0x14002a08e
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 0x14002a004
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002a08e
cmp qword [rsi], 0
je 0x14002a08e
mov qword [rsp + 0x38], r15
lea r9, [rsp + 0x38]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rsi
call fcn.140007a90
test al, al
je 0x14002a08e
mov qword [rsp + 0x30], r15
cmp qword [rsi], 0
je 0x14002a08e
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rbx, qword [rbp - 0x31]
mov rdx, rbx
mov rcx, rsi
call fcn.140007a90
test al, al
je 0x14002a08e
cmp qword [rsp + 0x30], rbx
jne 0x14002a06e
mov rax, qword [rsi]
test rax, rax
je 0x14002a06e
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x14002a06e
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov qword [rsp + 0x30], r15
cmp qword [rsi], 0
je 0x14002a08e
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140007a90
mov bl, 1
jmp 0x14002a094
xor bl, bl
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x14002a0da
mov rdx, qword [rbp - 0x59]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002a0c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a151
call fcn.140046df0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r15
lea rcx, [rbp - 0x29]
call fcn.14002a470
nop
test rdi, rdi
je 0x14002a125
mov rdx, qword [rbp - 0x41]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14002a111
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a14b
mov rcx, rdi
call fcn.140046df0
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.140046d90
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14004b0f4
nop
call fcn.14004b0f4
nop
int3