Function at 0x1401bf890
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x230], rbx
mov rax, qword [0x1403c2c80]
xor rax, rsp
mov qword [rbp + 0xd8], rax
mov r14, rdx
mov qword [rsp + 0x30], rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, [0x140323a58]
add rcx, 0x90
call fcn.140008ba0
mov rcx, qword [rbx + 0x28]
movsxd rax, dword [rbx + 0x38]
sub rcx, rax
lea rdx, [0x1402e98fc]
call qword [sym.imp.MSVCR100.dll_fopen]
mov rsi, rax
test rax, rax
jne 0x1401bf9f4
mov qword [rbp + 0x78], shutdown
xor r15d, r15d
mov qword [rbp + 0x70], r15
mov byte [rbp + 0x60], r15b
lea r8d, [rax + 0x15]
lea rdx, str.Could_not_open_file__
lea rcx, [rbp + 0x60]
call fcn.140008ba0
nop
mov r8, qword [rbx + 0x28]
movsxd rax, dword [rbx + 0x38]
sub r8, rax
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xb0]
call fcn.14000d330
nop
lea r8, [0x1402d0ba4]
mov rdx, rax
lea rcx, [rbp + 0x88]
call fcn.14000d330
nop
mov rdx, rax
lea rcx, [rbx + 0x90]
call fcn.14000c8d0
nop
cmp qword [rbp + 0xa0], 0x10
jb 0x1401bf993
mov rcx, qword [rbp + 0x88]
call fcn.140290ed8
mov qword [rbp + 0xa0], shutdown
mov qword [rbp + 0x98], r15
mov byte [rbp + 0x88], 0
cmp qword [rbp + 0xc8], 0x10
jb 0x1401bf9c2
mov rcx, qword [rbp + 0xb0]
call fcn.140290ed8
mov qword [rbp + 0xc8], shutdown
mov qword [rbp + 0xc0], r15
mov byte [rbp + 0xb0], 0
cmp qword [rbp + 0x78], 0x10
jb 0x1401bff9e
mov rcx, qword [rbp + 0x60]
call fcn.140290ed8
jmp 0x1401bff9e
mov qword [rsp + 0x48], rax
mov edx, dword [r14 + 0x30]
sub edx, dword [r14 + 0x2c]
inc edx
mov dword [rbx + 0x58], edx
mov ecx, dword [rbx + 0x80]
xor r15d, r15d
dec ecx
je 0x1401bfa5e
cmp ecx, 2
je 0x1401bfa35
lea r8d, [r15 + 0x15]
lea rdx, str.Unknown_bitmap_format
lea rcx, [rbx + 0x90]
call fcn.140008ba0
nop
jmp 0x1401bff95
mov eax, 0x18
mov word [rbx + 0x5e], ax
mov eax, dword [r14 + 0x38]
sub eax, dword [r14 + 0x34]
inc eax
mov dword [rbx + 0x54], eax
imul eax, edx
lea eax, [rax + rax*2]
mov dword [rbx + 0x70], r15d
mov dword [rbx + 0x4a], 0x36
jmp 0x1401bfa85
mov eax, 8
mov word [rbx + 0x5e], ax
mov eax, dword [r14 + 0x38]
sub eax, dword [r14 + 0x34]
inc eax
mov dword [rbx + 0x54], eax
imul eax, edx
mov dword [rbx + 0x70], Ordinal_262
mov dword [rbx + 0x4a], 0x436
mov dword [rbx + 0x64], eax
add eax, dword [rbx + 0x4a]
mov dword [rbx + 0x42], eax
mov qword [rbx + 0x68], r15
mov dword [rbx + 0x74], r15d
mov r8, rsi
movzx edx, word [rbx + 0x40]
mov rcx, rbx
call fcn.1401bf520
mov r8, rsi
mov edx, dword [rbx + 0x42]
mov rcx, rbx
call fcn.1401bf560
mov r8, rsi
movzx edx, word [rbx + 0x46]
mov rcx, rbx
call fcn.1401bf520
mov r8, rsi
movzx edx, word [rbx + 0x48]
mov rcx, rbx
call fcn.1401bf520
mov r8, rsi
mov edx, dword [rbx + 0x4a]
mov rcx, rbx
call fcn.1401bf560
mov r8, rsi
mov edx, dword [rbx + 0x50]
mov rcx, rbx
call fcn.1401bf560
mov r8, rsi
mov edx, dword [rbx + 0x54]
mov rcx, rbx
call fcn.1401bf5c0
mov r8, rsi
mov edx, dword [rbx + 0x58]
mov rcx, rbx
call fcn.1401bf5c0
mov r8, rsi
movzx edx, word [rbx + 0x5c]
mov rcx, rbx
call fcn.1401bf520
mov r8, rsi
movzx edx, word [rbx + 0x5e]
mov rcx, rbx
call fcn.1401bf520
mov r8, rsi
mov edx, dword [rbx + 0x60]
mov rcx, rbx
call fcn.1401bf560
mov r8, rsi
mov edx, dword [rbx + 0x64]
mov rcx, rbx
call fcn.1401bf560
mov r8, rsi
mov edx, dword [rbx + 0x68]
mov rcx, rbx
call fcn.1401bf5c0
mov r8, rsi
mov edx, dword [rbx + 0x6c]
mov rcx, rbx
call fcn.1401bf5c0
mov r8, rsi
mov edx, dword [rbx + 0x70]
mov rcx, rbx
call fcn.1401bf560
mov r8, rsi
mov edx, dword [rbx + 0x74]
mov rcx, rbx
call fcn.1401bf560
mov r12d, 4
cmp dword [rbx + 0x80], 1
jne 0x1401bfc57
cmp qword [rbx + 0x78], r15
je 0x1401bfbd1
mov edi, r15d
cmp dword [rbx + 0x70], r15d
jbe 0x1401bfc57
nop word [rax + rax]
movsxd rcx, edi
mov rax, qword [rbx + 0x78]
mov r8, rsi
mov edx, dword [rax + rcx*4]
mov rcx, rbx
call fcn.1401bf620
inc edi
cmp edi, dword [rbx + 0x70]
jb 0x1401bfbb0
jmp 0x1401bfc57
mov ecx, dword [rbx + 0x70]
mov rax, r12
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.mfc100.dll_Ordinal_265
mov qword [rbx + 0x78], rax
test rax, rax
jne 0x1401bfc13
lea r8d, [rax + 0x1d]
lea rdx, str.NO_bitmap_coulour_information
lea rcx, [rbx + 0x90]
call fcn.140008ba0
nop
jmp 0x1401bff95
mov edi, r15d
cmp dword [rbx + 0x70], r15d
jbe 0x1401bfc57
mov byte [rsp + 0x23], dil
mov byte [rsp + 0x20], dil
mov byte [rsp + 0x21], dil
mov byte [rsp + 0x22], dil
movsxd rdx, edi
mov rcx, qword [rbx + 0x78]
mov eax, dword [rsp + 0x20]
mov dword [rcx + rdx*4], eax
mov rax, qword [rbx + 0x78]
mov r8, rsi
mov edx, dword [rax + rdx*4]
mov rcx, rbx
call fcn.1401bf620
inc edi
cmp edi, dword [rbx + 0x70]
jb 0x1401bfc21
mov eax, dword [rbx + 0x80]
mov ecx, dword [rbx + 0x54]
cmp eax, 1
mov r13d, ecx
je 0x1401bfc6c
lea r13d, [rcx + rcx*2]
and r13d, 0x80000003
mov dword [rsp + 0x20], r13d
jge 0x1401bfc89
dec r13d
or r13d, 0xfffffffc
inc r13d
mov dword [rsp + 0x20], r13d
test r13d, r13d
je 0x1401bfc99
sub r12d, r13d
mov r13d, r12d
mov dword [rsp + 0x20], r12d
cmp eax, 3
jne 0x1401bfed7
lea rax, [rbx + 0x84]
cmp dword [rax], 1
jne 0x1401bfda4
lea eax, [r13 + rcx*2]
add ecx, eax
movsxd rdx, ecx
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x70], r15
lea rcx, [rbp + 0x60]
call fcn.140029830
mov rcx, qword [rbp + 0x68]
mov rax, qword [rbp + 0x60]
sub rcx, rax
mov qword [rsp + 0x28], rcx
mov r8, rcx
xor edx, edx
mov rcx, rax
call sub.MSVCR100.dll_memset
mov rcx, qword [r14 + 0x60]
movsxd rax, dword [r14 + 0x70]
shl rax, 3
sub rcx, rax
mov qword [rsp + 0x38], rcx
mov edi, r15d
mov r12, r15
cmp dword [rbx + 0x58], r15d
jle 0x1401bfd8f
mov r13, qword [rsp + 0x28]
nop word [rax + rax]
movsxd rax, dword [r14 + 0x2c]
add rax, r12
movsxd r8, dword [r14 + 0x34]
add r8, qword [rcx + rax*8]
mov r10, qword [rbp + 0x60]
mov rcx, r10
mov r9d, r15d
cmp dword [rbx + 0x54], r15d
jle 0x1401bfd67
nop
movzx edx, byte [r8]
mov byte [rcx], dl
movzx edx, byte [r8]
mov byte [rcx + 1], dl
lea rax, [rcx + 2]
add rcx, 3
movzx edx, byte [r8]
mov byte [rax], dl
inc r9d
inc r8
cmp r9d, dword [rbx + 0x54]
jl 0x1401bfd40
mov r9, rsi
mov r8, r13
mov edx, 1
mov rcx, r10
call qword [sym.imp.MSVCR100.dll_fwrite]
inc edi
inc r12
cmp edi, dword [rbx + 0x58]
mov rcx, qword [rsp + 0x38]
jl 0x1401bfd20
mov r13d, dword [rsp + 0x20]
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x1401bfd9d
call fcn.140290ed8
lea rax, [rbx + 0x84]
cmp dword [rax], 2
jne 0x1401bfed7
mov dword [rsp + 0x20], r15d
mov r8, rax
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1401cd250
movsxd r11, dword [rbp - 0x40]
shl r11, 3
mov rax, qword [rbp - 0x50]
sub rax, r11
mov edi, r15d
mov r12, r15
cmp dword [rbx + 0x58], r15d
jle 0x1401bfe31
mov r14, rax
movsxd rax, dword [rsp + 0x7c]
add rax, r12
movsxd rcx, dword [rbp - 0x7c]
add rcx, qword [r14 + rax*8]
mov eax, dword [rbx + 0x54]
lea edx, [rax + rax*2]
movsxd r8, edx
mov r9, rsi
mov edx, 1
call qword [sym.imp.MSVCR100.dll_fwrite]
test r13d, r13d
je 0x1401bfe22
movsxd r8, r13d
mov r9, rsi
mov edx, 1
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll_fwrite]
inc edi
inc r12
cmp edi, dword [rbx + 0x58]
jl 0x1401bfde0
mov r14, qword [rsp + 0x30]
lea rax, vtable.DL_Image_unsigned_char_.0
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rdi, vtable.DL_Subject.0
mov qword [rbp + 0x28], rdi
cmp byte [rbp + 0x30], 0
je 0x1401bfe6b
call fcn.14019a3c0
mov r8, qword [rax]
lea rdx, [rbp + 0x28]
mov rcx, rax
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rbp - 0x18]
call fcn.14006c630
nop
lea rax, vtable.DL_ImageBase_unsigned_char_.0
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, vtable.DL_Array2D_unsigned_char_.0
mov qword [rsp + 0x68], rax
lea rax, vtable.DL_Block_unsigned_char_.0
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
call fcn.140074ba0
nop
lea rcx, [rsp + 0x68]
call fcn.140075d50
nop
mov qword [rsp + 0x50], rdi
cmp byte [rsp + 0x58], 0
je 0x1401bfed7
call fcn.14019a3c0
mov r8, qword [rax]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp dword [rbx + 0x80], 1
jne 0x1401bff95
mov r8, qword [r14 + 0x60]
movsxd rax, dword [r14 + 0x70]
shl rax, 3
sub r8, rax
mov qword [rsp + 0x30], r8
mov ecx, r15d
mov dword [rsp + 0x20], ecx
mov rdx, r15
mov qword [rsp + 0x28], rdx
cmp dword [rbx + 0x58], ecx
jle 0x1401bff95
movsxd rax, dword [r14 + 0x2c]
add rax, rdx
movsxd rdi, dword [r14 + 0x34]
add rdi, qword [r8 + rax*8]
mov r12d, r15d
cmp dword [rbx + 0x54], r15d
jle 0x1401bff51
nop dword [rax + rax]
movzx ecx, byte [rdi]
mov rdx, rsi
call qword [sym.imp.MSVCR100.dll_putc]
inc r12d
inc rdi
cmp r12d, dword [rbx + 0x54]
jl 0x1401bff30
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
test r13d, r13d
jle 0x1401bff79
mov edi, r13d
nop dword [rax]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.MSVCR100.dll_putc]
dec rdi
jne 0x1401bff60
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
inc ecx
mov dword [rsp + 0x20], ecx
inc rdx
mov qword [rsp + 0x28], rdx
cmp ecx, dword [rbx + 0x58]
mov r8, qword [rsp + 0x30]
jl 0x1401bff10
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll_fclose]
mov rcx, qword [rbp + 0xd8]
xor rcx, rsp
call fcn.1402912a0
mov rbx, qword [rsp + 0x230]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret