Function at 0x140004345
Capabilities:
Clear file content

Disassembly:
jmp 0x140385630
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x14056a550]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [rcx + 0xa0]
test rbx, rbx
jne 0x140385660
mov rbx, qword [rsi + 0x80]
mov rax, qword [rsi + 0x88]
test rax, rax
jne 0x140385670
mov rax, qword [rsi + 0x78]
mov rdi, rbx
sub rdi, rax
movsx eax, byte [rsi + 0x27c]
lea ecx, [rax - 2]
cmp ecx, 6
ja case.0x140385697.3
lea rdx, [0x140386828]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov edx, 4
jmp 0x140385766
cmp byte [rsi + 0x27e], 1
je case.0x140385697.3
test byte [rsi + 0x295], 0x40
jne case.0x140385697.3
mov rcx, qword [rsi + 0x108]
test rcx, rcx
je 0x1403856d9
cmp byte [rcx + 0x32], 0
je 0x1403856d9
cmp word [rsi + 0x27a], 0
je 0x140385718
mov edx, 1
jmp 0x140385766
cmp byte [rsi + 0x27e], 1
je case.0x140385697.3
test byte [rsi + 0x295], 0x40
jne case.0x140385697.3
mov rcx, qword [rsi + 0x108]
test rcx, rcx
je 0x140385711
cmp byte [rcx + 0x32], 0
je 0x140385711
cmp word [rsi + 0x27a], 0
je 0x140385757
mov edx, 2
jmp 0x140385766
cmp dword [rsi + 0x238], 1
je case.0x140385697.3
cmp dword [0x1407108a8], 0
je 0x1403856d9
movzx r8d, byte [rsi + 0x298]
shr r8b, 7
mov rcx, qword [rsi + 0x248]
cmp rcx, 0xfffffffffffffffa
sete r9b
xor edx, edx
test r8b, r9b
jne 0x140385766
dec rcx
cmp rcx, 2
jae 0x1403856d9
jmp 0x140385766
cmp dword [rsi + 0x238], 1
jne 0x1403864b6
xor edx, edx
lea rcx, [rdx + rdi]
cmp rcx, qword [rsi + 0x1b0]
jbe 0x1403857f7
cmp al, 1
je 0x1403857f7
mov r8d, 0x200
mov rcx, rsi
call fcn.1400021a8
test eax, eax
je 0x1403857f0
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x14038585d
test byte [rax + 0x74], 2
jne 0x14038588d
mov eax, dword [rsi + 0x294]
mov r8d, dword [rsi + 0x29c]
and eax, 7
shr r8d, 0x11
and r8d, 8
or r8d, eax
mov dword [rsp + 0x20], 0x42
mov rcx, rsi
mov edx, 0xffffffff
mov r9d, 0x42
call fcn.14000475f
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140003706
mov eax, esi
jmp 0x14038678d
movzx eax, byte [rsi + 0x27c]
lea r14, [rsi + 0x88]
movsx eax, al
cmp eax, 8
ja case.0x140385818.3
lea rcx, [0x140386844]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
lea edx, [rdi - 4]
mov eax, edx
shr eax, 8
mov ecx, edx
shr ecx, 0x10
mov r8d, edx
shr r8d, 0x18
mov r9, qword [rsi + 0x88]
mov r10d, dword [rsi + 0x294]
test r9, r9
je 0x140385a67
test r10d, 0x2000
jne 0x140385a86
mov byte [r9], dl
mov r9, r14
jmp 0x140385a7b
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140003706
mov ecx, 1
mov edx, 0x42
mov r8d, 0x42
mov r9, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140002b35
movabs rcx, 0x4200000042
mov qword [rax + 0x68], rcx
mov rax, qword [rsi + 0xd8]
mov edi, 0x42
test rax, rax
je 0x14038677e
mov qword [rax + 8], 0
mov qword [rsi + 0xd8], 0
jmp 0x14038677e
mov r8, qword [rsi + 0x1c8]
sub r8, rdi
jbe 0x1403858e5
mov rcx, rbx
mov dl, 0x20
call fcn.1400020b8
mov rdi, qword [rsi + 0x1c8]
mov eax, dword [rsi + 0x290]
not eax
test eax, 0x8400004
jne case.0x140385818.0
cmp byte [rsi + 0x27e], 1
je case.0x140385818.0
test byte [rsi + 0x295], 0x40
jne case.0x140385818.0
mov rax, qword [rsi + 0x108]
test rax, rax
je 0x140385932
cmp byte [rax + 0x32], 0
je 0x140385932
cmp word [rsi + 0x27a], 0
je 0x140386799
mov rax, qword [r14]
test rax, rax
je 0x14038649f
mov byte [rdi + rax - 2], 0xd
mov rax, qword [r14]
mov byte [rdi + rax - 1], 0xa
jmp case.0x140385818.0
lea r8, str.for_put.c
mov ecx, 8
mov edx, 2
mov r9d, 0x4f2
call fcn.140004539
jmp case.0x140385818.0
cmp byte [rsi + 0x27e], 1
je case.0x140385818.0
test byte [rsi + 0x295], 0x40
jne case.0x140385818.0
mov rax, qword [rsi + 0x108]
test rax, rax
je 0x1403859ab
cmp byte [rax + 0x32], 0
je 0x1403859ab
cmp word [rsi + 0x27a], 0
je 0x1403865cd
mov rax, qword [r14]
test rax, rax
jne 0x1403859b7
mov rax, qword [rsi + 0x78]
mov byte [rax + rdi], 0xa
inc rdi
jmp case.0x140385818.0
cmp byte [rsi + 0x27e], 1
je case.0x140385818.0
test byte [rsi + 0x295], 0x40
jne case.0x140385818.0
mov rax, qword [rsi + 0x108]
test rax, rax
je 0x1403859fd
cmp byte [rax + 0x32], 0
je 0x1403859fd
cmp word [rsi + 0x27a], 0
je 0x140386619
mov rax, qword [r14]
test rax, rax
jne 0x140385a09
mov rax, qword [rsi + 0x78]
mov byte [rax + rdi], 0xd
inc rdi
jmp case.0x140385818.0
cmp byte [rsi + 0x27e], 1
je case.0x140385818.0
test byte [rsi + 0x295], 0x40
jne case.0x140385818.0
mov rax, qword [rsi + 0x108]
test rax, rax
je 0x140385a4f
cmp byte [rax + 0x32], 0
je 0x140385a4f
cmp word [rsi + 0x27a], 0
je 0x140386665
mov rax, qword [r14]
test rax, rax
je 0x140386336
mov byte [rax + rdi], 0xd
mov rax, qword [r14]
jmp 0x140386342
lea r9, [rsi + 0x78]
mov r11, qword [rsi + 0x78]
test r10d, 0x2000
jne 0x140385a8e
mov byte [r11], dl
mov r10d, eax
mov r11d, ecx
mov ebx, r8d
jmp 0x140385a99
mov byte [r9], r8b
mov r9, r14
jmp 0x140385a91
mov byte [r11], r8b
mov r10d, ecx
mov r11d, eax
mov ebx, edx
mov r15, qword [r9]
mov byte [r15 + 1], r10b
mov r10, qword [r9]
mov byte [r10 + 2], r11b
mov r9, qword [r9]
mov byte [r9 + 3], bl
test dword [rsi + 0x294], 0x2000
movzx edx, dl
movzx r8d, r8b
mov r9d, r8d
cmove r9d, edx
movzx eax, al
movzx ecx, cl
mov r10d, ecx
cmove r10d, eax
cmove eax, ecx
cmove edx, r8d
mov rcx, qword [rsi + 0x80]
mov byte [rcx], r9b
mov rcx, qword [rsi + 0x80]
mov byte [rcx + 1], r10b
mov rcx, qword [rsi + 0x80]
mov byte [rcx + 2], al
mov rax, qword [rsi + 0x80]
mov byte [rax + 3], dl
add rdi, 4
mov rcx, qword [r14]
mov rbx, rcx
test rcx, rcx
jne 0x140385b16
mov rbx, qword [rsi + 0x78]
movsx eax, byte [rsi + 0x27e]
cmp eax, 1
je 0x140385bc7
cmp eax, 2
jne 0x140385c30
mov rax, qword [rsi + 0x108]
test rax, rax
je 0x140385c98
cmp byte [rax + 0x30], 0
jne 0x140385b4b
cmp byte [rax + 0x31], 0
je 0x140385bbb
cmp byte [rax + 0x34], 0
je 0x140385b8a
cmp dword [rsi + 0x238], 1
je 0x140385bbb
cmp dword [0x1407108a8], 0
je 0x140385b8a
movzx edx, byte [rsi + 0x298]
shr dl, 7
mov rcx, qword [rsi + 0x248]
cmp rcx, 0xfffffffffffffffa
sete r8b
test dl, r8b
jne 0x140385bbb
dec rcx
cmp rcx, 2
jb 0x140385bbb
mov byte [rsp + 0x37], 0xa
lea rdx, [rsp + 0x37]
mov r8d, 1
mov rcx, rsi
call fcn.1400053c6
cmp eax, 0xffffffff
je 0x140386758
mov rax, qword [rsi + 0x108]
test rax, rax
je 0x140385c98
mov byte [rax + 0x30], 0
mov rcx, rax
jmp 0x140385c9a
cmp rdi, 5
mov eax, 6
cmovne rax, rdi
test rcx, rcx
jne 0x140385bdd
mov rcx, qword [rsi + 0x78]
lea rdi, [rax - 4]
lea rbx, [rcx + 5]
movsx edx, byte [rcx + 5]
cmp edx, 0x31
ja case.0x140385c00.1
lea r8, [0x140386868]
movsxd rdx, dword [r8 + rdx*4]
add rdx, r8
jmp rdx
test byte [rsi + 0x290], 2
jne 0x140385e84
mov rdx, qword [rsi + 0x108]
test rdx, rdx
je 0x140385c1f
mov byte [rdx + 0x30], 0
add rcx, 6
add rax, 0xfffffffffffffffa
mov byte [rdx + 0x31], 1
jmp 0x140385d89
mov rax, qword [rsi + 0x108]
test rax, rax
je 0x140385c50
cmp byte [rax + 0x32], 0
je 0x140385c50
cmp word [rsi + 0x27a], 0
je 0x140385e36
cmp dword [rsi + 0x238], 1
je 0x140385c8a
cmp dword [0x1407108a8], 0
je 0x140386710
test byte [rsi + 0x298], 0x80
mov rcx, qword [rsi + 0x248]
je 0x140385c7c
cmp rcx, 0xfffffffffffffffa
je 0x140385c8a
add rcx, 0xfffffffffffffffd
cmp rcx, 0xfffffffffffffffe
jb 0x140386710
test rax, rax
jne 0x14038655e
jmp 0x140386710
xor ecx, ecx
mov edx, dword [rsi + 0x290]
not edx
test edx, 0x8400004
je 0x14038626b
movzx edx, byte [rsi + 0x27c]
add dl, 0xfb
cmp dl, 4
jb 0x14038626b
test byte [rsi + 0x295], 0x40
jne 0x14038626b
test rcx, rcx
je 0x140386209
cmp byte [rcx + 0x32], 0
jne 0x140386213
jmp 0x14038624e
mov r8d, dword [rsi + 0x290]
test r8b, 2
jne 0x140385eb8
mov rdx, qword [rsi + 0x108]
test rdx, rdx
je 0x140386541
cmp byte [rdx + 0x30], 0
jne 0x140385d17
cmp byte [rdx + 0x31], 0
je 0x140386541
mov byte [rbx], 0xa
jmp 0x140386549
test byte [rsi + 0x290], 2
jne 0x140385efc
mov rdx, qword [rsi + 0x108]
test rdx, rdx
je 0x14038604f
cmp byte [rdx + 0x30], 0
jne 0x140385d4c
cmp byte [rdx + 0x31], 0
je 0x14038604f
mov byte [rbx], 0xa
add rax, 0xfffffffffffffffb
mov rdx, qword [rsi + 0x108]
jmp 0x14038605a
mov r8d, dword [rsi + 0x290]
test r8b, 2
jne 0x140385f46
mov byte [rcx + rax], 0xd
add rax, 0xfffffffffffffffb
add rcx, 6
mov rdx, qword [rsi + 0x108]
mov word [rdx + 0x30], 1
mov qword [rdx + 0x20], rsi
mov byte [rdx + 0x34], 0
mov rbx, rcx
mov rdi, rax
jmp 0x140386710
lea rdx, [rcx + 4]
mov r8d, dword [rsi + 0x290]
test r8b, 2
jne 0x140385fa0
mov r9, qword [rsi + 0x108]
test r9, r9
je 0x1403863e6
cmp byte [r9 + 0x30], 0
jne 0x140385dd3
cmp byte [r9 + 0x31], 0
je 0x1403863e6
test r8b, 4
jne 0x14038631f
mov byte [rdx], 0xa
jmp 0x1403863f7
mov edx, dword [rsi + 0x290]
test dl, 2
jne 0x140385fe6
mov r8, qword [rsi + 0x108]
test r8, r8
je 0x140386420
cmp byte [r8 + 0x30], 0
jne 0x140385e16
cmp byte [r8 + 0x31], 0
je 0x140386420
test dl, 4
je 0x140386425
lea rbx, [rcx + 1]
mov dword [rcx + 1], 0x200d0c0a
mov byte [rcx + 5], 0xd
mov rdi, rax
jmp 0x140386549
cmp dword [rsi + 0x238], 1
je 0x14038670c
cmp dword [0x1407108a8], 0
je 0x140385c50
movzx edx, byte [rsi + 0x298]
shr dl, 7
mov rcx, qword [rsi + 0x248]
cmp rcx, 0xfffffffffffffffa
sete r8b
test dl, r8b
jne 0x14038670c
dec rcx
cmp rcx, 1
ja 0x140385c50
jmp 0x14038670c
cmp dword [rsi + 0x238], 1
jne 0x140386077
mov rdx, qword [rsi + 0x108]
test rdx, rdx
je 0x140386350
cmp byte [rdx + 0x32], 0
mov byte [rdx + 0x30], 0
je 0x140385c1f
mov byte [rdx + 0x31], 0
jmp 0x1403863bb
cmp dword [rsi + 0x238], 1
jne 0x1403860ba
mov rdx, qword [rsi + 0x108]
test rdx, rdx
je 0x14038635f
cmp byte [rdx + 0x32], 0
je 0x1403864fb
test r8b, 4
je 0x140386441
cmp byte [rdx + 0x34], 0
je 0x140386441
add rax, 0xfffffffffffffffb
jmp 0x140386464
cmp dword [rsi + 0x238], 1
jne 0x1403860fd
mov rdx, qword [rsi + 0x108]
test rdx, rdx
je 0x14038637d
cmp byte [rdx + 0x32], 0
je 0x14038651b
cmp byte [rdx + 0x30], 0
jne 0x140385f33
cmp byte [rdx + 0x31], 0
je 0x14038638b
mov byte [rbx], 0xa
add rax, 0xfffffffffffffffb
mov rdx, qword [rsi + 0x108]
jmp 0x140386396
cmp dword [rsi + 0x238], 1
jne 0x140386140
mov rdx, qword [rsi + 0x108]
test rdx, rdx
je 0x1403863ad
cmp byte [rdx + 0x32], 0
je 0x140386535
test r8b, 4
je 0x140385f80
mov r8, 0xfffffffffffffffb
cmp byte [rdx + 0x34], 0
jne 0x140385f8e
add rcx, 6
mov r8, 0xfffffffffffffffa
mov rbx, rcx
add rax, r8
mov word [rdx + 0x30], 0
mov byte [rdx + 0x34], 1
jmp 0x140385d94
cmp dword [rsi + 0x238], 1
jne 0x140386183
mov r9, qword [rsi + 0x108]
test r9, r9
je 0x1403863cc
cmp byte [r9 + 0x32], 0
je 0x140386567
test r8b, 4
je 0x140386475
cmp byte [r9 + 0x34], 0
je 0x140386475
add rax, 0xfffffffffffffffb
jmp 0x1403866f7
cmp dword [rsi + 0x238], 1
jne 0x1403861c6
mov r8, qword [rsi + 0x108]
test r8, r8
je 0x140386403
cmp byte [r8 + 0x32], 0
je 0x1403865aa
test dl, 4
je 0x140386025
mov r9, 0xfffffffffffffffb
cmp byte [r8 + 0x34], 0
jne 0x1403866c7
cmp byte [r8 + 0x30], 0
jne 0x140386037
cmp byte [r8 + 0x31], 0
je 0x14038640d
test dl, 4
jne 0x1403866b1
mov byte [rbx], 0xc
mov r9, 0xfffffffffffffffb
jmp 0x1403866c7
add rcx, 6
add rax, 0xfffffffffffffffa
mov rbx, rcx
mov rdi, rax
test rdx, rdx
je 0x140386066
mov byte [rdx + 0x30], 0
mov byte [rdx + 0x31], 1
mov qword [rdx + 0x20], rsi
mov byte [rdx + 0x34], 0
jmp 0x140386710
cmp dword [0x1407108a8], 0
je 0x140385c0f
movzx r8d, byte [rsi + 0x298]
shr r8b, 7
mov rdx, qword [rsi + 0x248]
cmp rdx, 0xfffffffffffffffa
sete r9b
test r8b, r9b
jne 0x140385e91
dec rdx
cmp rdx, 1
ja 0x140385c0f
jmp 0x140385e91
cmp dword [0x1407108a8], 0
je 0x140385cf7
movzx r9d, byte [rsi + 0x298]
shr r9b, 7
mov rdx, qword [rsi + 0x248]
cmp rdx, 0xfffffffffffffffa
sete r10b
test r9b, r10b
jne 0x140385ec5
dec rdx
cmp rdx, 1
ja 0x140385cf7
jmp 0x140385ec5
cmp dword [0x1407108a8], 0
je 0x140385d2c
movzx r8d, byte [rsi + 0x298]
shr r8b, 7
mov rdx, qword [rsi + 0x248]
cmp rdx, 0xfffffffffffffffa
sete r9b
test r8b, r9b
jne 0x140385f09
dec rdx
cmp rdx, 1
ja 0x140385d2c
jmp 0x140385f09
cmp dword [0x1407108a8], 0
je 0x140385d70
movzx r9d, byte [rsi + 0x298]
shr r9b, 7
mov rdx, qword [rsi + 0x248]
cmp rdx, 0xfffffffffffffffa
sete r10b
test r9b, r10b
jne 0x140385f53
dec rdx
cmp rdx, 1
ja 0x140385d70
jmp 0x140385f53
cmp dword [0x1407108a8], 0
je 0x140385db1
movzx r10d, byte [rsi + 0x298]
shr r10b, 7
mov r9, qword [rsi + 0x248]
cmp r9, 0xfffffffffffffffa
sete r11b
test r10b, r11b
jne 0x140385fad
dec r9
cmp r9, 1
ja 0x140385db1
jmp 0x140385fad
cmp dword [0x1407108a8], 0
je 0x140385df4
movzx r9d, byte [rsi + 0x298]
shr r9b, 7
mov r8, qword [rsi + 0x248]
cmp r8, 0xfffffffffffffffa
sete r10b
test r9b, r10b
jne 0x140385ff3
dec r8
cmp r8, 1
ja 0x140385df4
jmp 0x140385ff3
cmp word [rsi + 0x27a], 0
je 0x14038624e
cmp dword [rsi + 0x238], 1
je 0x14038626b
cmp dword [0x1407108a8], 0
je 0x14038624e
movzx r8d, byte [rsi + 0x298]
shr r8b, 7
mov rdx, qword [rsi + 0x248]
cmp rdx, 0xfffffffffffffffa
sete r9b
test r8b, r9b
jne 0x14038626b
dec rdx
cmp rdx, 2
jb 0x14038626b
mov rax, qword [r14]
test rax, rax
jne 0x14038625a
mov rax, qword [rsi + 0x78]
mov byte [rax + rdi], 0xa
inc rdi
mov rax, qword [rsi + 0x108]
mov rcx, rax
and byte [rsi + 0x295], 0xbf
test rcx, rcx
je 0x140386287
cmp byte [rcx + 0x32], 0
je 0x140386287
cmp word [rsi + 0x27a], 0
je 0x1403862d3
cmp dword [rsi + 0x238], 1
je 0x1403862c1
cmp dword [0x1407108a8], 0
je 0x140386710
test byte [rsi + 0x298], 0x80
mov rax, qword [rsi + 0x248]
je 0x1403862b3
cmp rax, 0xfffffffffffffffa
je 0x1403862c1
add rax, 0xfffffffffffffffd
cmp rax, 0xfffffffffffffffe
jb 0x140386710
test rcx, rcx
je 0x140386710
mov byte [rcx + 0x34], 0
jmp 0x140386710
cmp dword [rsi + 0x238], 1
je 0x14038670c
cmp dword [0x1407108a8], 0
je 0x140386287
movzx r8d, byte [rsi + 0x298]
shr r8b, 7
mov rdx, qword [rsi + 0x248]
cmp rdx, 0xfffffffffffffffa
sete r9b
test r8b, r9b
jne 0x14038670c
dec rdx
cmp rdx, 1
ja 0x140386287
jmp 0x14038670c
lea rdx, [rcx + 3]
mov word [rcx + 3], 0xd0a
mov byte [rcx + 5], 0xa
lea rdi, [rax - 2]
jmp 0x140386589
mov rax, qword [rsi + 0x78]
mov byte [rax + rdi], 0xd
mov rax, qword [rsi + 0x78]
mov byte [rdi + rax + 1], 0xa
add rdi, 2
jmp case.0x140385818.0
cmp word [rsi + 0x27a], 0
jne 0x1403863bb
jmp 0x140385c1f
cmp word [rsi + 0x27a], 0
je 0x140386541
add rcx, 6
add rax, 0xfffffffffffffffa
mov rbx, rcx
jmp 0x14038645f
cmp word [rsi + 0x27a], 0
je 0x140386801
add rcx, 6
add rax, 0xfffffffffffffffa
mov rbx, rcx
mov rdi, rax
test rdx, rdx
je 0x1403863a4
mov word [rdx + 0x30], 0
mov byte [rdx + 0x34], 1
jmp 0x140386710
cmp word [rsi + 0x27a], 0
je 0x140386541
add rcx, 6
add rax, 0xfffffffffffffffa
mov byte [rdx + 0x34], 1
jmp 0x140385d91
cmp word [rsi + 0x27a], 0
je 0x1403863e6
add rcx, 6
add rax, 0xfffffffffffffffa
mov rbx, rcx
jmp 0x1403866f7
test r8b, 4
jne 0x1403863f4
mov byte [rbx], 0xa
jmp 0x140386586
mov byte [rdx], 0xd
mov byte [rbx], 0xa
lea rdi, [rax - 3]
jmp 0x140386589
cmp word [rsi + 0x27a], 0
je 0x140386420
add rcx, 6
mov r9, 0xfffffffffffffffa
mov rbx, rcx
jmp 0x1403866c7
test dl, 4
jne 0x14038642d
mov byte [rbx], 0xc
jmp 0x140386549
lea rbx, [rcx + 2]
mov dword [rcx + 2], 0xd200d0c
lea rdi, [rax - 1]
jmp 0x140386549
cmp byte [rdx + 0x30], 0
jne 0x140386451
cmp byte [rdx + 0x31], 0
je 0x14038636d
mov byte [rbx], 0xa
add rax, 0xfffffffffffffffb
mov rdx, qword [rsi + 0x108]
test rdx, rdx
je 0x14038646c
mov byte [rdx + 0x30], 0
mov byte [rdx + 0x31], 0
mov byte [rdx + 0x34], 1
jmp 0x140385d94
cmp byte [r9 + 0x30], 0
jne 0x140386487
cmp byte [r9 + 0x31], 0
je 0x1403863d6
test r8b, 4
jne 0x1403866e5
mov byte [rdx], 0xa
mov byte [rbx], 0xa
mov rbx, rdx
jmp 0x1403866fa
mov rax, qword [rsi + 0x78]
mov byte [rdi + rax - 2], 0xd
mov rax, qword [rsi + 0x78]
mov byte [rdi + rax - 1], 0xa
jmp case.0x140385818.0
cmp dword [0x1407108a8], 0
je 0x140385711
movzx r8d, byte [rsi + 0x298]
shr r8b, 7
mov rcx, qword [rsi + 0x248]
cmp rcx, 0xfffffffffffffffa
sete r9b
xor edx, edx
test r8b, r9b
jne 0x140385766
dec rcx
cmp rcx, 2
jae 0x140385711
jmp 0x140385766
cmp byte [rdx + 0x34], 0
je 0x140385d07
lea rdx, [rcx + 6]
lea r9, [rax - 5]
test r8b, 4
cmove rbx, rdx
cmove rdi, r9
jmp 0x140386549
cmp byte [rdx + 0x34], 0
je 0x1403867e5
add rcx, 6
add rax, 0xfffffffffffffffa
mov rbx, rcx
jmp 0x140386811
test r8b, 4
je 0x140386541
cmp byte [rdx + 0x34], 0
jne 0x140386549
lea rbx, [rcx + 6]
lea rdi, [rax - 5]
mov byte [rcx + rax], 0xd
mov rax, qword [rsi + 0x108]
mov word [rax + 0x30], 1
mov qword [rax + 0x20], rsi
mov byte [rax + 0x34], 0
jmp 0x140386710
cmp byte [r9 + 0x34], 0
je 0x140385dc1
lea rdx, [rcx + 6]
test r8b, 4
cmove rbx, rdx
lea rdx, [rax - 5]
cmove rdi, rdx
mov rdx, rbx
mov byte [rcx + rax], 0xd
mov rax, qword [rsi + 0x108]
mov word [rax + 0x30], 1
mov qword [rax + 0x20], rsi
mov byte [rax + 0x34], 0
mov rbx, rdx
jmp 0x140386710
cmp byte [r8 + 0x34], 0
je 0x140385e04
lea r8, [rcx + 6]
lea r9, [rax - 5]
test dl, 4
cmove rbx, r8
cmove rdi, r9
jmp 0x140386549
cmp dword [rsi + 0x238], 1
je case.0x140385818.0
cmp dword [0x1407108a8], 0
je 0x1403859ab
movzx ecx, byte [rsi + 0x298]
shr cl, 7
mov rax, qword [rsi + 0x248]
cmp rax, 0xfffffffffffffffa
sete dl
test cl, dl
jne case.0x140385818.0
dec rax
cmp rax, 2
jae 0x1403859ab
jmp case.0x140385818.0
cmp dword [rsi + 0x238], 1
je case.0x140385818.0
cmp dword [0x1407108a8], 0
je 0x1403859fd
movzx ecx, byte [rsi + 0x298]
shr cl, 7
mov rax, qword [rsi + 0x248]
cmp rax, 0xfffffffffffffffa
sete dl
test cl, dl
jne case.0x140385818.0
dec rax
cmp rax, 2
jae 0x1403859fd
jmp case.0x140385818.0
cmp dword [rsi + 0x238], 1
je case.0x140385818.0
cmp dword [0x1407108a8], 0
je 0x140385a4f
movzx ecx, byte [rsi + 0x298]
shr cl, 7
mov rax, qword [rsi + 0x248]
cmp rax, 0xfffffffffffffffa
sete dl
test cl, dl
jne case.0x140385818.0
dec rax
cmp rax, 2
jae 0x140385a4f
jmp case.0x140385818.0
lea rbx, [rcx + 1]
mov dword [rcx + 1], 0x200d0c0a
mov byte [rcx + 5], 0xd
mov r9, 0xffffffffffffffff
mov rcx, qword [rsi + 0x108]
test rcx, rcx
je 0x1403866d9
mov word [rcx + 0x30], 0
add rax, r9
mov byte [rcx + 0x34], 1
jmp 0x140385d94
lea rbx, [rcx + 3]
mov word [rcx + 3], 0xd0a
mov byte [rcx + 5], 0xa
add rax, 0xfffffffffffffffd
mov rdi, rax
mov rax, qword [rsi + 0x108]
test rax, rax
je 0x14038670c
mov word [rax + 0x30], 0
mov byte [rax + 0x34], 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.1400053c6
mov ecx, dword [rsi + 0x294]
mov edx, ecx
and edx, 0xffffffbf
mov dword [rsi + 0x294], edx
cmp eax, 0xffffffff
je 0x140386758
xor edi, edi
test ecx, 0x800
je 0x14038677e
mov rcx, qword [rsi + 0x1a0]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140386766
and byte [rsi + 0x295], 0xf7
jmp 0x14038677e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x1a8], eax
jmp 0x140386779
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x1a8], eax
and byte [rsi + 0x295], 0xf7
mov edi, 0x26
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140003706
mov eax, edi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
cmp dword [rsi + 0x238], 1
je case.0x140385818.0
cmp dword [0x1407108a8], 0
je 0x140385932
movzx ecx, byte [rsi + 0x298]
shr cl, 7
mov rax, qword [rsi + 0x248]
cmp rax, 0xfffffffffffffffa
sete dl
test cl, dl
jne case.0x140385818.0
dec rax
cmp rax, 2
jae 0x140385932
jmp case.0x140385818.0
cmp byte [rdx + 0x30], 0
jne 0x1403867f1
cmp byte [rdx + 0x31], 0
je 0x140386801
mov byte [rbx], 0xa
add rax, 0xfffffffffffffffb
mov rdx, qword [rsi + 0x108]
jmp 0x14038680c
add rcx, 6
add rax, 0xfffffffffffffffa
mov rbx, rcx
test rdx, rdx
je 0x140386815
mov byte [rdx + 0x30], 0
mov byte [rdx + 0x31], 1
mov qword [rdx + 0x20], rsi
mov byte [rdx + 0x34], 0
jmp 0x140385d94