Function at 0x1400bd8b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xae8
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rsp + 0xac0], rax
mov rax, qword [rsp + 0xb50]
mov r12, qword [rsp + 0xb40]
mov r13, qword [rsp + 0xb48]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb58]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb60]
mov rbx, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xb68]
mov edx, 2
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xb70]
mov ecx, 0x19000
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb88]
mov r15, r9
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xb90]
mov rdi, r8
mov qword [rsp + 0x68], rax
call fcn.1400f97a4
mov rsi, rax
test rax, rax
je 0x1400bd980
mov r8d, 0x19000
mov rdx, rax
mov rcx, rbx
call fcn.1400bd690
test eax, eax
jne 0x1400bd987
mov rcx, rsi
call fcn.1400f97e8
xor eax, eax
jmp 0x1400bddde
xor eax, eax
mov qword [rsp + 0xae0], rbp
mov qword [rsp + 0xad8], r14
lea ebp, [rax + 1]
mov r14d, eax
movzx eax, word [rsi]
mov ecx, 0xfeff
cmp ax, cx
jne 0x1400bd9b7
mov ebp, 2
lea r14d, [rbp - 1]
jmp 0x1400bd9dc
mov ecx, 0xfffe
cmp ax, cx
jne 0x1400bd9cc
mov ebp, 2
lea r14d, [rbp + 1]
jmp 0x1400bd9dc
mov ecx, 0xbbef
cmp ax, cx
jne 0x1400bd9dc
mov r14d, 2
lea r8, str.utf_8
lea rdx, str.iso_8859_1
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
lea rdx, str.TITLE
mov r9d, r14d
mov r8, rdi
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
lea rdx, str.BGCOLOR
mov r9d, r14d
mov r8, r15
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
lea rdx, str.PREV_LINK
mov r9d, r14d
mov r8, r12
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
lea rdx, str.IMAGE_NAME
mov r9d, r14d
mov r8, r13
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
mov r8, qword [rsp + 0x38]
lea rdx, str.NEXT_LINK
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
mov r8, qword [rsp + 0x58]
lea rdx, str.SELF_LINK
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
mov r8, qword [rsp + 0x48]
lea rdx, str.IMAGE
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
mov ecx, ebp
or rdi, 0xffffffffffffffff
dec ecx
je 0x1400bdaf9
dec ecx
jne 0x1400bdc37
lea rdx, [0x14018e220]
mov rcx, rsi
call fcn.1400f9d68
test rax, rax
jne 0x1400bdb39
lea rdx, str.IMAGE_BASENAME
mov rcx, rsi
call fcn.1400f9d68
test rax, rax
jne 0x1400bdb39
lea rdx, str.IMAGE_EXT
mov rcx, rsi
call fcn.1400f9d68
jmp 0x1400bdb30
lea rdx, [0x14018e1e8]
mov rcx, rsi
call fcn.1401003e4
test rax, rax
jne 0x1400bdb39
lea rdx, [0x14018e1f8]
mov rcx, rsi
call fcn.1401003e4
test rax, rax
jne 0x1400bdb39
lea rdx, [0x14018e210]
mov rcx, rsi
call fcn.1401003e4
test rax, rax
je 0x1400bdc37
mov rbx, qword [rsp + 0x68]
lea rdx, [rsp + 0x280]
mov r8d, 3
mov rcx, rbx
call fcn.1400ed200
xor r12d, r12d
lea rcx, [rsp + 0x280]
mov r8d, r12d
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r8w
jne 0x1400bdb65
test eax, eax
jle 0x1400bdbaf
lea rdx, [rsp + 0x280]
mov r9d, 0x2f
cmp word [rdx], 0x5c
jne 0x1400bdb8b
mov word [rdx], r9w
inc r8d
lea rcx, [rsp + 0x280]
mov rax, rdi
add rdx, 2
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1400bdba0
cmp r8d, eax
jl 0x1400bdb81
lea rdx, [rsp + 0x6a0]
mov r8d, 4
mov rcx, rbx
call fcn.1400ed200
lea rdx, [rsp + 0x8b0]
mov r8d, 8
mov rcx, rbx
call fcn.1400ed200
lea r8, [rsp + 0x280]
lea rdx, str.IMAGE_PATH
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
lea r8, [rsp + 0x6a0]
lea rdx, str.IMAGE_BASENAME
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
lea r8, [rsp + 0x8b0]
lea rdx, str.IMAGE_EXT
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
jmp 0x1400bdc3a
xor r12d, r12d
mov rcx, r12
lea r15, [0x140000000]
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rcx + r15 + 0x18e298]
lea rcx, [rcx + 2]
mov word [rsp + rcx + 0x48e], ax
test ax, ax
jne 0x1400bdc50
mov r8d, dword [rsp + 0xb78]
lea rdx, str.width__d_
lea rcx, [rsp + 0x70]
call fcn.1400f98c8
cmp dword [rsp + 0xb78], 0xffffffff
jne 0x1400bdc93
mov word [rsp + 0x70], r12w
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x490]
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
mov rcx, r12
movzx eax, word [rcx + r15 + 0x18e2c0]
lea rcx, [rcx + 2]
mov word [rsp + rcx + 0x48e], ax
test ax, ax
jne 0x1400bdcb2
mov r8d, dword [rsp + 0xb80]
lea rdx, str.height__d_
lea rcx, [rsp + 0x70]
call fcn.1400f98c8
cmp dword [rsp + 0xb80], 0xffffffff
jne 0x1400bdcf5
mov word [rsp + 0x70], r12w
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x490]
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
mov r8, qword [rsp + 0x60]
lea rdx, str.BACK_LINK
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
mov r8, qword [rsp + 0x50]
lea rdx, str.IMAGE_TEXT
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
mov r8, qword [rsp + 0x30]
lea rdx, str.TXT_ALIGN
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.1400bd490
mov rcx, qword [rsp + 0x40]
lea rdx, [0x140183390]
call fcn.1400fafe4
mov r14, qword [rsp + 0xad8]
mov rbx, rax
test rax, rax
jne 0x1400bdd8f
mov rcx, rsi
call fcn.1400f97e8
xor eax, eax
jmp 0x1400bddd6
cmp ebp, 1
jne 0x1400bdda4
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1400bdd94
mov edx, 1
jmp 0x1400bddb3
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x1400bdda4
mov edx, 2
mov r9, rax
mov r8, rdi
mov rcx, rsi
call fcn.1400faf54
mov rcx, rbx
call fcn.1400fa904
mov rcx, rsi
call fcn.1400f97e8
mov eax, 1
mov rbp, qword [rsp + 0xae0]
mov rcx, qword [rsp + 0xac0]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0xae8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret