Function at 0x140002b80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r13d, r8d
mov r12, rdx
mov rdi, rcx
call fcn.140002420
mov r14, rax
test rax, rax
je 0x140002f75
mov r10, qword [rax]
lea r9, [rbp + 0x50]
mov qword [rsp + 0x438], rbx
lea rax, [rsp + 0x64]
xor ebx, ebx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x3e8], rsi
lea rdx, [rsp + 0x78]
mov r8d, r13d
mov dword [rsp + 0x20], ebx
mov rcx, r14
mov qword [rsp + 0x3e0], r15
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x64], ebx
call qword [r10 + 0x90]
mov rax, qword [r14]
lea r8, [rsp + 0x64]
mov rdx, qword [rsp + 0x78]
mov rcx, r14
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x28]
lea r9, [rsp + 0x60]
lea r8d, [rbx + 4]
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax]
mov rax, qword [r14]
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x28], rcx
lea r9, [rbp + 0x50]
mov rcx, r14
mov dword [rsp + 0x20], 0x20
mov r8d, r13d
lea rdx, [rsp + 0x78]
call qword [rax + 0x90]
xor r8d, r8d
mov r15d, eax
mov esi, r8d
cmp dword [rsp + 0x64], r8d
jbe 0x140002f41
nop
mov ecx, esi
lea rbx, [rbp + 0x50]
mov qword [rbp - 0x70], r8
lea r9, [rsp + 0x60]
mov qword [rbp - 0x60], r8
mov qword [rbp - 0x58], r8
lea rbx, [rbx + rcx*4]
mov dword [rsp + 0x6c], r8d
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
mov qword [rsp + 0x20], r8
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [r14]
lea rcx, [rbp - 0x7c]
mov edx, dword [rbx]
lea r9, [rbp + 0xd0]
mov qword [rsp + 0x50], rcx
lea r8, [rbp - 0x48]
lea rcx, [rbp - 0x50]
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x4c]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov rcx, r14
mov dword [rsp + 0x20], 0xff
call qword [rax + 0xf0]
mov eax, dword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov rcx, qword [rdi + 0x28]
lea rdx, [rsp + 0x68]
add eax, eax
mov qword [rsp + 0x20], 0
mov r8d, 4
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov rcx, qword [rdi + 0x28]
lea rdx, [rbp + 0xd0]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x28]
lea r9, [rsp + 0x60]
mov r8d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x28]
lea r9, [rsp + 0x60]
mov r8d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rbp - 0x7c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [r12]
lea r8, [rbp - 0x70]
mov edx, dword [rbx]
mov rcx, r12
call qword [rax + 0x48]
test eax, eax
jne 0x140002e95
mov rcx, qword [rbp - 0x70]
lea rdx, [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
jne 0x140002df2
mov rcx, qword [rsp + 0x70]
lea rdx, [rbp - 0x60]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
lea rdx, [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
jne 0x140002e95
mov rcx, qword [rsp + 0x70]
lea rdx, [rbp - 0x58]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x70]
lea r8, [rbp - 0x68]
lea rdx, [0x14001f880]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
jne 0x140002e8a
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x80
call fcn.140006ff0
mov rcx, qword [rbp - 0x68]
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x78]
mov edx, 8
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, dword [rbp - 0x78]
xor eax, eax
mov dword [rsp + 0x6c], eax
test edx, edx
je 0x140002e8a
lea rcx, [rbp - 0x30]
cmp qword [rcx], 0
je 0x140002e7c
inc eax
add rcx, 0x10
sub rdx, 1
jne 0x140002e74
mov dword [rsp + 0x6c], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 0x28]
lea r9, [rsp + 0x60]
xor ebx, ebx
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x20], rbx
lea r8d, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x28]
lea r9, [rsp + 0x60]
lea r8d, [rbx + 8]
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x28]
lea r9, [rsp + 0x60]
lea r8d, [rbx + 4]
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r8d, r8d
cmp dword [rsp + 0x6c], ebx
jbe 0x140002f35
nop word [rax + rax]
mov rcx, qword [rdi + 0x28]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x60]
mov eax, ebx
mov r8d, 0x10
shl rax, 4
add rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc ebx
mov r8d, 0
cmp ebx, dword [rsp + 0x6c]
jb 0x140002f00
inc esi
cmp esi, dword [rsp + 0x64]
jb 0x140002c80
test r15d, r15d
je 0x140002c40
mov rdx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x3e0]
mov rsi, qword [rsp + 0x3e8]
mov rbx, qword [rsp + 0x438]
test rdx, rdx
je 0x140002f75
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140005550
add rsp, 0x3f0
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret