Function at 0x1400061d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov esi, dword [rsp + 0xc0]
mov rdi, r8
mov rcx, rdi
mov r8d, esi
mov edx, r9d
mov r15d, r9d
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r14, rax
test rax, rax
je 0x1400064d6
mov rcx, rdi
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rbp, rax
test rax, rax
je 0x1400064d6
mov rdx, r14
mov rcx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
xor r12d, r12d
mov dword [rsp + 0x38], r12d
mov r9d, r15d
mov dword [rsp + 0x30], r12d
xor r8d, r8d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], esi
mov rbx, rax
call qword [sym.imp.GDI32.dll_BitBlt]
mov ecx, 0x428
call fcn.140017ca4
mov rdi, rax
xorps xmm0, xmm0
xor eax, eax
mov rdx, rbx
mov rcx, rbp
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x28
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x30], r12d
mov r9d, esi
mov qword [rsp + 0x28], rdi
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], r12
mov rcx, rbp
call qword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x1400064d6
mov ecx, dword [rdi + 0x14]
call fcn.140017ca4
mov dword [rsp + 0x30], r12d
mov r9d, esi
mov qword [rsp + 0x28], rdi
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
mov rcx, rbp
mov r15, rax
call qword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x1400064d6
mov qword [rsp + 0x30], r12
lea rcx, str.BIN_ERROR_LOG.bmp
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400064d6
mov eax, 0x4d42
mov dword [rsp + 0x5e], r12d
lea r9, [rsp + 0x50]
mov word [rsp + 0x58], ax
lea r8d, [r12 + 0xe]
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400064d6
cmp dword [rsp + 0x50], 0xe
jb 0x1400064d6
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], r12
lea r8d, [r12 + 0x28]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400064d6
cmp dword [rsp + 0x50], 0x28
jb 0x1400064d6
cmp dword [rdi + 0x10], 3
jne 0x1400063b0
lea eax, [r12 + 3]
jmp 0x1400063c6
movzx ecx, word [rdi + 0xe]
cmp cx, 8
ja 0x1400063c3
mov eax, 1
shl eax, cl
jmp 0x1400063c6
mov eax, r12d
mov esi, dword [rdi + 0x20]
test esi, esi
jne 0x1400063d3
mov esi, eax
test eax, eax
je 0x14000640e
lea r8d, [rsi*4]
mov qword [rsp + 0x20], r12
lea rdx, [rdi + 0x28]
mov rcx, rbx
lea r9, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400064d6
mov eax, dword [rsp + 0x50]
movsxd rcx, esi
shl rcx, 2
cmp rax, rcx
jb 0x1400064d6
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x62], eax
mov rdx, r15
mov r8d, dword [rdi + 0x14]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400064d6
mov eax, dword [rdi + 0x14]
cmp dword [rsp + 0x50], eax
jb 0x1400064d6
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x5a], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], r12
mov r8d, 0xe
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400064d6
cmp dword [rsp + 0x50], 0xe
jb 0x1400064d6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call fcn.140017a20
mov rcx, rdi
call fcn.140017a20
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteObject]
mov al, 1
jmp 0x1400064d8
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140017a00
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret