Function at 0x1400bd010
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov esi, dword [rsp + 0x98]
mov r13d, r9d
mov r15, rdx
mov ebx, 4
test esi, esi
je 0x1400be31a
mov r12, qword [rsp + 0x90]
dec esi
mov r14, qword [r12]
mov r8d, dword [r14 + 0x10]
test r8d, r8d
je 0x1400bd097
sub r8d, 1
je 0x1400bd07a
sub r8d, 1
je 0x1400bd07a
sub r8d, 2
je 0x1400bd083
cmp r8d, 1
je 0x1400bd097
lea r14, [0x1400e0674]
jmp 0x1400bd09a
mov rcx, qword [r14]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001630
mov r14, rax
jmp 0x1400bd09a
mov r14, qword [r14]
mov r8, rbx
lea rdx, str.Read
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
xor edi, edi
mov edx, 2
test eax, eax
jne 0x1400bd0ec
cmp word [r14 + 8], di
lea rcx, [r14 + 8]
jne 0x1400bd0cb
lea ebp, [rdx - 1]
jmp 0x1400bd256
lea rdx, str.Line
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ebp, 5
mov ecx, 3
test eax, eax
cmove ebp, ecx
jmp 0x1400bd251
mov r8d, 5
lea rdx, str.Write
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1400bd139
cmp word [r14 + 0xa], di
lea rcx, [r14 + 0xa]
jne 0x1400bd11d
mov edx, 2
mov ebp, edx
jmp 0x1400bd256
lea rdx, str.Line
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ecx, edi
test eax, eax
setne cl
lea ebp, [rcx + 4]
jmp 0x1400bd251
lea rdx, str.RawRead
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400bd155
lea ebp, [rax + 6]
jmp 0x1400bd251
lea rdx, str.RawWrite
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400bd171
lea ebp, [rax + 6]
jmp 0x1400bd251
lea rdx, [0x1400fcd40]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400bd24c
lea rdx, str.Length
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400bd1a5
lea ebp, [rax + 9]
jmp 0x1400bd251
lea rdx, str.AtEOF
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400bd1c1
lea ebp, [rax + 0xa]
jmp 0x1400bd251
lea rdx, str.__Handle
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400bd1da
lea ebp, [rax + 0xb]
jmp 0x1400bd251
lea rdx, str.Encoding
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400bd1f3
lea ebp, [rax + 0xc]
jmp 0x1400bd251
lea rdx, str.Close
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400bd20c
lea ebp, [rax + 0xd]
jmp 0x1400bd251
lea rdx, str.Position
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400bd24c
lea rdx, str.Seek
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400bd24c
lea rdx, str.Tell
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400be31a
mov ebp, 8
mov edx, 2
test r13b, 2
jne 0x1400bd272
cmp ebp, 7
jb 0x1400bd822
and r13d, 1
cmp esi, r13d
jne 0x1400bd822
lea eax, [rbp - 1]
mov dword [r15 + 0x10], 1
cmp eax, 0xc
ja case.0x1400bd33b.69
cdqe
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0xbe33c]
add rax, rcx
jmp rax
movzx eax, word [r14]
mov ecx, 0xffdf
sub ax, 0x52
mov r13d, edi
test cx, ax
sete al
movzx ebp, al
xor rbp, 1
mov byte [rsp + 0x98], al
add rbp, 4
lea rbp, [r14 + rbp*2]
movzx r14d, word [rbp]
mov qword [rsp + 0x38], rbp
test r14d, 0xffffff80
jne 0x1400bd2eb
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
je 0x1400bd2eb
and r14d, 0xffffffdf
cmp r14w, 0x55
jne 0x1400bd2fb
add rbp, 2
mov qword [rsp + 0x38], rbp
movzx ebp, word [rbp]
test ebp, 0xffffff80
jne 0x1400bd31b
mov edx, 2
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
je 0x1400bd31b
and ebp, 0xffffffdf
add ebp, 0xffffffbd
cmp ebp, 0x10
ja case.0x1400bd33b.69
lea rcx, [0x140000000]
movsxd rax, ebp
mov edx, dword [rcx + rax*4 + 0xbe370]
add rdx, rcx
jmp rdx
mov rcx, qword [rsp + 0x38]
mov dx, gethostname
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
mov eax, 8
cmovne ebx, eax
jmp 0x1400bd37b
mov ebp, 2
mov ebx, ebp
jmp 0x1400bd380
mov ebx, 1
jmp 0x1400bd37b
mov ebx, 8
jmp 0x1400bd37b
mov ebx, 8
mov r13d, 1
mov ebp, 2
cmp byte [rsp + 0x98], dil
je 0x1400bd44c
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x30]
add rcx, 0x10
mov qword [rsp + 0x30], rdi
mov r8d, ebx
call fcn.1400bc8e0
test eax, eax
je case.0x1400bd33b.69
test r13d, r13d
je 0x1400bd3ee
cmp ebx, 4
jne 0x1400bd3d5
movss xmm0, dword [rsp + 0x30]
lea eax, [rbx - 3]
cvtps2pd xmm0, xmm0
mov dword [r15 + 0x10], ebp
movsd qword [r15], xmm0
jmp 0x1400be31c
movsd xmm0, qword [rsp + 0x30]
mov eax, 1
movsd qword [r15], xmm0
mov dword [r15 + 0x10], ebp
jmp 0x1400be31c
cmp r14w, 0x55
je 0x1400bd43a
sub ebx, 1
je 0x1400bd427
sub ebx, 1
je 0x1400bd414
cmp ebx, 2
jne 0x1400bd43a
movsxd rax, dword [rsp + 0x30]
mov qword [r15], rax
lea eax, [rbx - 1]
jmp 0x1400be31c
movsx rax, word [rsp + 0x30]
mov qword [r15], rax
mov eax, 1
jmp 0x1400be31c
movsx rax, byte [rsp + 0x30]
mov qword [r15], rax
mov eax, 1
jmp 0x1400be31c
mov rax, qword [rsp + 0x30]
mov qword [r15], rax
mov eax, 1
jmp 0x1400be31c
cmp esi, 1
jne case.0x1400bd33b.69
mov rcx, qword [r12 + 8]
test r13d, r13d
je 0x1400bd4d8
mov edx, dword [rcx + 0x10]
sub edx, esi
je 0x1400bd4ab
sub edx, esi
je 0x1400bd4a5
sub edx, 2
je 0x1400bd499
sub edx, esi
je 0x1400bd47c
cmp edx, esi
jne 0x1400bd48f
xorps xmm0, xmm0
jmp 0x1400bd4b3
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400bd48f
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rax]
jmp 0x1400bd4b3
mov rcx, qword [rcx]
call fcn.140028e90
jmp 0x1400bd4b3
mov rcx, qword [rcx]
xor edx, edx
call fcn.140029050
jmp 0x1400bd4b3
movsd xmm0, qword [rcx]
jmp 0x1400bd4b3
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rcx]
movsd qword [rsp + 0x30], xmm0
lea r14, [0x1400e0674]
cmp ebx, 4
jne 0x1400bd5cd
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x30], xmm0
jmp 0x1400bd5cd
cmp ebx, 8
jne 0x1400bd555
cmp r14w, 0x55
jne 0x1400bd555
mov edx, dword [rcx + 0x10]
lea eax, [rdx - 1]
cmp eax, 1
jbe 0x1400bd555
test edx, edx
je 0x1400bd541
sub edx, 1
je 0x1400bd507
sub edx, 1
je 0x1400bd507
sub edx, 2
je 0x1400bd51e
cmp edx, 1
je 0x1400bd541
lea r14, [0x1400e0674]
mov rax, r14
mov rcx, rax
call fcn.14004f950
jmp 0x1400bd5c8
mov rcx, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001630
mov rcx, rax
lea r14, [0x1400e0674]
call fcn.14004f950
jmp 0x1400bd5c8
mov rax, qword [rcx]
lea r14, [0x1400e0674]
mov rcx, rax
call fcn.14004f950
jmp 0x1400bd5c8
mov edx, dword [rcx + 0x10]
sub edx, 1
je 0x1400bd5be
sub edx, 1
je 0x1400bd5b7
sub edx, 2
je 0x1400bd58e
sub edx, 1
je 0x1400bd576
cmp edx, 1
jne 0x1400bd584
mov rax, rdi
jmp 0x1400bd5c1
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400bd584
mov rax, qword [rax]
jmp 0x1400bd5c1
mov rcx, qword [rcx]
call fcn.140025a40
jmp 0x1400bd5c1
mov rcx, qword [rcx]
cmp byte [rcx + 0x23], dil
jne 0x1400bd59b
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
jne 0x1400bd5be
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001630
mov rcx, rax
call fcn.140025a40
jmp 0x1400bd5c1
cvttsd2si rax, qword [rcx]
jmp 0x1400bd5c1
mov rax, qword [rcx]
lea r14, [0x1400e0674]
mov qword [rsp + 0x30], rax
mov r12, qword [rsp + 0x70]
lea rcx, [r12 + 0x10]
call fcn.1400bc220
test al, al
jne 0x1400bd5e4
mov ebx, edi
jmp 0x1400bd646
mov ecx, dword [r12 + 0x1c]
mov eax, 0x2000
sub eax, ecx
cmp ebx, eax
jae 0x1400bd60d
add rcx, qword [r12 + 0x48]
lea rdx, [rsp + 0x30]
mov r8d, ebx
call sub.VCRUNTIME140.dll_memcpy
add dword [r12 + 0x1c], ebx
jmp 0x1400bd642
test ecx, ecx
je 0x1400bd62b
mov rax, qword [r12 + 0x10]
mov r8d, ecx
mov rdx, qword [r12 + 0x48]
lea rcx, [r12 + 0x10]
call qword [rax + 0x20]
mov dword [r12 + 0x1c], edi
mov rax, qword [r12 + 0x10]
lea rdx, [rsp + 0x30]
mov r8d, ebx
lea rcx, [r12 + 0x10]
call qword [rax + 0x20]
mov ebx, eax
test ebx, ebx
jne 0x1400bd65a
mov rax, qword [0x140112060]
test byte [rax + 0x140], 1
jne 0x1400bde3d
mov eax, ebx
mov qword [r15], rax
mov eax, 1
jmp 0x1400be31c
cmp esi, 1
jg case.0x1400bd33b.69
test esi, esi
je 0x1400bd738
mov rbx, qword [r12 + 8]
mov ecx, dword [rbx + 0x10]
sub ecx, 1
je 0x1400bd72b
sub ecx, 1
je 0x1400bd71c
sub ecx, 2
je 0x1400bd6db
sub ecx, 1
je 0x1400bd6b0
cmp ecx, 1
jne 0x1400bd6c6
mov r12, qword [rsp + 0x70]
mov rbx, rdi
jmp 0x1400bd7ba
mov rax, qword [rbx + 8]
test rax, rax
je 0x1400bd6c6
mov rbx, qword [rax]
mov r12, qword [rsp + 0x70]
jmp 0x1400bd7ba
mov rcx, qword [rbx]
call fcn.140025a40
mov r12, qword [rsp + 0x70]
mov rbx, rax
jmp 0x1400bd7ba
mov rcx, qword [rbx]
cmp byte [rcx + 0x23], dil
jne 0x1400bd6e8
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400bd6fb
mov rbx, qword [rcx]
mov r12, qword [rsp + 0x70]
jmp 0x1400bd7ba
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001630
mov rcx, rax
call fcn.140025a40
mov r12, qword [rsp + 0x70]
mov rbx, rax
jmp 0x1400bd7ba
cvttsd2si rbx, qword [rbx]
mov r12, qword [rsp + 0x70]
jmp 0x1400bd7ba
mov rbx, qword [rbx]
mov r12, qword [rsp + 0x70]
jmp 0x1400bd7ba
mov r12, qword [rsp + 0x70]
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + gethostname]
mov rbp, rax
cmp qword [r12 + 0x40], rdi
jne 0x1400bd778
cmp dword [r12 + 0x1c], edi
je 0x1400bd778
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + 0x30]
mov rsi, rax
mov eax, dword [r12 + 0x1c]
add rsi, rax
cmp rsi, rbp
jg 0x1400bd77b
mov rsi, rbp
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + 0x30]
mov rdx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bd796
mov rbx, rax
jmp 0x1400bd7b6
mov rax, qword [r12 + 0x40]
mov ecx, dword [r12 + 0x1c]
test rax, rax
je 0x1400bd7af
sub rax, qword [r12 + 0x48]
sub rax, rcx
jmp 0x1400bd7b2
mov rax, rcx
lea rbx, [rax + rdx]
sub esi, ebx
mov ebx, esi
mov ecx, 0xffffffff
cmp ebx, ecx
je case.0x1400bd33b.69
mov esi, ebx
cmp rsi, 0xff
ja 0x1400bd7d8
mov rax, qword [r15 + 8]
jmp 0x1400bd7f7
lea rcx, [rsi*2 + 2]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r15 + 0x18], rax
test rax, rax
je case.0x1400bd33b.69
mov qword [r15 + 8], rsi
mov qword [r15], rax
lea rcx, [r12 + 0x10]
mov word [rax + rsi*2], di
xor r9d, r9d
mov r8d, ebx
mov rdx, qword [r15]
call fcn.1400bc4c0
mov ecx, eax
mov rax, qword [r15]
mov dword [r15 + 0x10], edi
mov word [rax + rcx*2], di
mov qword [r15 + 8], rcx
mov eax, 1
jmp 0x1400be31c
test esi, esi
jne case.0x1400bd33b.69
mov ecx, 0x20002
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r15 + 0x18], rax
test rax, rax
je case.0x1400bd33b.69
mov qword [r15 + 8], 0x10000
lea r9d, [rsi + 1]
mov qword [r15], rax
mov r8d, 0xffff
mov rcx, qword [rsp + 0x70]
add rcx, 0x10
mov word [rax + 0x20000], di
jmp 0x1400bd809
cmp esi, 1
jg case.0x1400bd33b.69
mov r14d, edi
mov ebx, edi
test esi, esi
je 0x1400bd926
mov rdx, qword [r15 + 8]
mov rcx, qword [r12 + 8]
call fcn.140080c30
mov rbx, qword [r12 + 8]
mov rsi, rax
cmp dword [rbx + 0x10], 4
jne 0x1400bd8fa
mov rbx, qword [rbx]
movzx edx, byte [rbx + 0x23]
test dl, dl
jne 0x1400bd8ba
mov rax, qword [rbx + 0x10]
movzx ecx, byte [rax + 0x21]
jmp 0x1400bd8be
movzx ecx, byte [rbx + 0x21]
test cl, 1
jne 0x1400bd8fa
test dl, dl
jne 0x1400bd8cb
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 1
jne 0x1400bd8eb
test byte [rbx + 0x21], 8
je 0x1400bd8df
mov rcx, rbx
call fcn.1400014d0
add rbx, 0x10
mov rbx, qword [rbx]
shr rbx, 1
jmp 0x1400bd90a
lea rbx, [0x14011b1e8]
mov rbx, qword [rbx]
shr rbx, 1
jmp 0x1400bd90a
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], di
jne 0x1400bd901
mov r12, qword [rsp + 0x70]
mov r8d, ebx
add r12, 0x10
mov rdx, rsi
mov rcx, r12
call fcn.1400bca80
mov r14d, eax
jmp 0x1400bd92f
mov r12, qword [rsp + 0x70]
add r12, 0x10
cmp ebp, 4
jne 0x1400bd957
test r14d, r14d
jne 0x1400bd93d
test ebx, ebx
jne 0x1400bd960
mov r8d, 1
lea rdx, [0x1400fe554]
mov rcx, r12
inc ebx
call fcn.1400bca80
add r14d, eax
test r14d, r14d
jne 0x1400bd974
test ebx, ebx
je 0x1400bd974
mov rax, qword [0x140112060]
test byte [rax + 0x140], 1
jne case.0x1400bd33b.69
mov eax, r14d
mov qword [r15], rax
mov eax, 1
jmp 0x1400be31c
cmp esi, 2
jne case.0x1400bd33b.69
movzx eax, word [r14 + 6]
mov ecx, 0xffdf
mov rsi, qword [r12 + 0x10]
sub ax, 0x52
mov rbx, qword [r12 + 8]
test cx, ax
sete bpl
mov ecx, dword [rsi + 0x10]
sub ecx, 1
je 0x1400bda20
sub ecx, 1
je 0x1400bda19
sub ecx, 2
je 0x1400bd9e8
sub ecx, 1
je 0x1400bd9cd
cmp ecx, 1
jne 0x1400bd9db
mov rsi, rdi
jmp 0x1400bda23
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400bd9db
mov rsi, qword [rax]
jmp 0x1400bda23
mov rcx, qword [rsi]
call fcn.140025a40
mov rsi, rax
jmp 0x1400bda23
mov rcx, qword [rsi]
cmp byte [rcx + 0x23], dil
jne 0x1400bd9f5
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400bda00
mov rsi, qword [rcx]
jmp 0x1400bda23
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001630
mov rcx, rax
call fcn.140025a40
mov rsi, rax
jmp 0x1400bda23
cvttsd2si rsi, qword [rsi]
jmp 0x1400bda23
mov rsi, qword [rsi]
mov ecx, dword [rbx + 0x10]
cmp ecx, 4
jne 0x1400bdb53
mov rcx, qword [rbx]
cmp byte [rcx + 0x23], dil
jne 0x1400bda3e
mov rax, qword [rcx + 0x10]
jmp 0x1400bda41
mov rax, rcx
cmp byte [rax + 0x23], 2
mov edx, dword [0x140119898]
je 0x1400bda51
mov rdx, qword [rax + 0x18]
mov eax, esi
cmp rax, rdx
jbe 0x1400bda9d
test bpl, bpl
je 0x1400bda7c
mov r8d, eax
mov byte [rsp + 0x20], dil
shr r8, 1
and eax, 1
add r8, rax
xor r9d, r9d
xor edx, edx
call fcn.1400c4200
test eax, eax
jne 0x1400bda9d
mov rax, qword [0x140112060]
test byte [rax + 0x140], 1
jne case.0x1400bd33b.69
mov qword [r15], rdi
mov eax, 1
jmp 0x1400be31c
mov rbx, qword [rbx]
cmp byte [rbx + 0x23], dil
jne 0x1400bdaaa
mov rbx, qword [rbx + 0x10]
test byte [rbx + 0x21], 8
je 0x1400bdab8
mov rcx, rbx
call fcn.1400014d0
movzx eax, byte [rbx + 0x23]
cmp al, 1
jne 0x1400bdad7
test byte [rbx + 0x21], 4
je 0x1400bdace
mov rdx, rbx
call fcn.14004e7e0
mov rdx, qword [rbx + 8]
jmp 0x1400bdbc6
cmp al, 2
jne 0x1400bdb4a
mov rdx, qword [0x140119888]
test rdx, rdx
jne 0x1400bdbc6
lea ecx, [rdx + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x1400bdb1d
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
lea r14, [0x1400e0674]
test eax, eax
lea rcx, [0x1400e0668]
mov rdx, r14
cmovne rdx, rcx
jmp 0x1400bdbcd
xor edx, edx
lea rcx, [0x140119870]
call fcn.140006330
mov ecx, 0xffffffff
lea r14, [0x1400e0674]
cmp rax, rcx
mov rdx, r14
cmovne rdx, qword [0x140119880]
jmp 0x1400bdbcd
lea rdx, [0x140117b68]
jmp 0x1400bdbc6
sub ecx, 1
je 0x1400bdbc3
sub ecx, 1
je 0x1400bdbbc
sub ecx, 2
je 0x1400bdb8b
sub ecx, 1
je 0x1400bdb7d
cmp ecx, 1
je 0x1400bdbee
mov rcx, qword [rbx]
call fcn.140025a40
mov rdx, rax
jmp 0x1400bdbc6
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1400bdb70
mov rdx, qword [rdx]
jmp 0x1400bdbc6
mov rcx, qword [rbx]
cmp byte [rcx + 0x23], dil
jne 0x1400bdb98
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400bdba3
mov rdx, qword [rcx]
jmp 0x1400bdbc6
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001630
mov rcx, rax
call fcn.140025a40
mov rdx, rax
jmp 0x1400bdbc6
cvttsd2si rdx, qword [rbx]
jmp 0x1400bdbc6
mov rdx, qword [rbx]
lea r14, [0x1400e0674]
cmp rdx, 0x10000
jb 0x1400bdbf5
mov rcx, qword [rsp + 0x70]
mov r8d, esi
add rcx, 0x10
test bpl, bpl
je 0x1400bdbf9
call fcn.1400bc8e0
jmp 0x1400bdbfe
lea r14, [0x1400e0674]
mov ecx, edi
jmp 0x1400bdc04
call fcn.1400bccd0
mov ecx, eax
test eax, eax
jne 0x1400bdc1c
test esi, esi
je 0x1400bdc1c
mov rax, qword [0x140112060]
test byte [rax + 0x140], 1
jne 0x1400bde3d
mov eax, ecx
mov qword [r15], rax
mov eax, 1
jmp 0x1400be31c
test esi, esi
jne 0x1400bdc94
mov r12, qword [rsp + 0x70]
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + 0x30]
mov rdx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bdc58
mov rbx, rax
mov qword [r15], rax
lea eax, [rsi + 1]
jmp 0x1400be31c
mov rax, qword [r12 + 0x40]
mov ecx, dword [r12 + 0x1c]
test rax, rax
je 0x1400bdc80
sub rax, qword [r12 + 0x48]
sub rax, rcx
lea rbx, [rdx + rax]
mov eax, 1
mov qword [r15], rbx
jmp 0x1400be31c
mov rax, rcx
lea rbx, [rdx + rcx]
mov qword [r15], rbx
mov eax, 1
jmp 0x1400be31c
cmp esi, 2
jg case.0x1400bd33b.69
mov rdx, qword [r12 + 8]
mov ecx, dword [rdx + 0x10]
sub ecx, 1
je 0x1400bdd17
sub ecx, 1
je 0x1400bdd10
sub ecx, 2
je 0x1400bdcdf
sub ecx, 1
je 0x1400bdcc3
cmp ecx, 1
jne 0x1400bdcd2
mov rbp, rdi
jmp 0x1400bdd1a
mov rbp, qword [rdx + 8]
test rbp, rbp
je 0x1400bdcd2
mov rbp, qword [rbp]
jmp 0x1400bdd1a
mov rcx, qword [rdx]
call fcn.140025a40
mov rbp, rax
jmp 0x1400bdd1a
mov rcx, qword [rdx]
cmp byte [rcx + 0x23], dil
jne 0x1400bdcec
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400bdcf7
mov rbp, qword [rcx]
jmp 0x1400bdd1a
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001630
mov rcx, rax
call fcn.140025a40
mov rbp, rax
jmp 0x1400bdd1a
cvttsd2si rbp, qword [rdx]
jmp 0x1400bdd1a
mov rbp, qword [rdx]
cmp esi, 2
jne 0x1400bdda1
mov rsi, qword [r12 + 0x10]
mov ecx, dword [rsi + 0x10]
sub ecx, 1
je 0x1400bdd9c
sub ecx, 1
je 0x1400bdd95
sub ecx, 2
je 0x1400bdd64
sub ecx, 1
je 0x1400bdd49
cmp ecx, 1
jne 0x1400bdd57
mov rsi, rdi
jmp 0x1400bddae
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400bdd57
mov rsi, qword [rax]
jmp 0x1400bddae
mov rcx, qword [rsi]
call fcn.140025a40
mov rsi, rax
jmp 0x1400bddae
mov rcx, qword [rsi]
cmp byte [rcx + 0x23], dil
jne 0x1400bdd71
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400bdd7c
mov rsi, qword [rcx]
jmp 0x1400bddae
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001630
mov rcx, rax
call fcn.140025a40
mov rsi, rax
jmp 0x1400bddae
cvttsd2si rsi, qword [rsi]
jmp 0x1400bddae
mov rsi, qword [rsi]
jmp 0x1400bddae
test rbp, rbp
mov esi, edi
mov ecx, 2
cmovs esi, ecx
mov r12, qword [rsp + 0x70]
mov rdx, qword [r12 + 0x40]
mov r8d, dword [r12 + 0x1c]
test rdx, rdx
je 0x1400bdde5
sub rdx, qword [r12 + 0x48]
lea rcx, [r12 + 0x10]
mov r9, qword [r12 + 0x10]
sub rdx, r8
mov r8d, 1
call qword [r9 + 0x28]
mov qword [r12 + 0x40], rdi
jmp 0x1400bddfc
test r8d, r8d
je 0x1400bde01
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
mov rdx, qword [r12 + 0x48]
call qword [rax + 0x20]
mov dword [r12 + 0x1c], edi
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
mov r8d, esi
mov word [r12 + 0x3c], di
mov rdx, rbp
call qword [rax + 0x28]
test al, al
jne 0x1400be075
mov rax, qword [0x140112060]
test byte [rax + 0x140], 1
je 0x1400be07a
lea r14, [0x1400e0674]
mov rax, qword [0x140112060]
mov dword [r15 + 0x10], edi
test byte [rax + 0x140], 1
je 0x1400bd822
mov rcx, qword [0x1401192c0]
lea r8, str.FileObject
mov r9, r14
lea rdx, [0x1400f5d5c]
call fcn.14004d3c0
mov eax, 1
jmp 0x1400be31c
test esi, esi
jne 0x1400bded1
mov r12, qword [rsp + 0x70]
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + gethostname]
cmp qword [r12 + 0x40], 0
mov rdi, rax
jne 0x1400bdec1
cmp dword [r12 + 0x1c], esi
je 0x1400bdec1
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + 0x30]
mov rcx, rax
mov eax, dword [r12 + 0x1c]
add rcx, rax
cmp rcx, rdi
jg 0x1400bdec4
mov rcx, rdi
mov qword [r15], rcx
mov eax, 1
jmp 0x1400be31c
cmp esi, 1
jne case.0x1400bd33b.69
mov rsi, qword [r12 + 8]
mov ecx, dword [rsi + 0x10]
sub ecx, 1
je 0x1400bdf53
sub ecx, 1
je 0x1400bdf4c
sub ecx, 2
je 0x1400bdf1b
sub ecx, 1
je 0x1400bdf00
cmp ecx, 1
jne 0x1400bdf0e
mov rsi, rdi
jmp 0x1400bdf56
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400bdf0e
mov rsi, qword [rax]
jmp 0x1400bdf56
mov rcx, qword [rsi]
call fcn.140025a40
mov rsi, rax
jmp 0x1400bdf56
mov rcx, qword [rsi]
cmp byte [rcx + 0x23], dil
jne 0x1400bdf28
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400bdf33
mov rsi, qword [rcx]
jmp 0x1400bdf56
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001630
mov rcx, rax
call fcn.140025a40
mov rsi, rax
jmp 0x1400bdf56
cvttsd2si rsi, qword [rsi]
jmp 0x1400bdf56
mov rsi, qword [rsi]
mov r12, qword [rsp + 0x70]
mov rdx, qword [r12 + 0x40]
mov r8d, dword [r12 + 0x1c]
test rdx, rdx
je 0x1400bdf8d
sub rdx, qword [r12 + 0x48]
lea rcx, [r12 + 0x10]
mov r9, qword [r12 + 0x10]
sub rdx, r8
mov r8d, 1
call qword [r9 + 0x28]
mov qword [r12 + 0x40], rdi
jmp 0x1400bdfa4
test r8d, r8d
je 0x1400bdfa9
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
mov rdx, qword [r12 + 0x48]
call qword [rax + 0x20]
mov dword [r12 + 0x1c], edi
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
mov word [r12 + 0x3c], di
call qword [rax + 0x30]
xor r8d, r8d
lea rcx, [r12 + 0x10]
mov rbp, rax
mov rdx, rsi
mov rax, qword [r12 + 0x10]
call qword [rax + 0x28]
test al, al
je 0x1400be019
mov rcx, qword [r12 + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400be019
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
cmp rsi, rbp
cmovl rbp, rsi
xor r8d, r8d
mov rdx, rbp
call qword [rax + 0x28]
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + gethostname]
mov qword [r15], rax
cmp rax, 0xffffffffffffffff
jne 0x1400bd822
lea r14, [0x1400e0674]
mov qword [r15], r14
jmp 0x1400bde3d
test esi, esi
jne 0x1400bd822
mov r12, qword [rsp + 0x70]
mov rcx, qword [r12 + 0x40]
test rcx, rcx
je 0x1400be04e
mov eax, dword [r12 + 0x1c]
add rax, qword [r12 + 0x48]
cmp rcx, rax
jb 0x1400be07a
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + 0x30]
mov rsi, rax
test rax, rax
js 0x1400be075
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + gethostname]
cmp rsi, rax
jl 0x1400be07a
mov edi, 1
mov qword [r15], rdi
mov eax, 1
jmp 0x1400be31c
test esi, esi
jne 0x1400bd822
mov r12, qword [rsp + 0x70]
mov rdx, qword [r12 + 0x40]
mov r8d, dword [r12 + 0x1c]
test rdx, rdx
je 0x1400be0c4
sub rdx, qword [r12 + 0x48]
lea rcx, [r12 + 0x10]
mov r9, qword [r12 + 0x10]
sub rdx, r8
lea r8d, [rsi + 1]
call qword [r9 + 0x28]
mov qword [r12 + 0x40], rdi
jmp 0x1400be0db
test r8d, r8d
je 0x1400be0e0
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
mov rdx, qword [r12 + 0x48]
call qword [rax + 0x20]
mov dword [r12 + 0x1c], edi
mov rax, qword [r12 + 0x50]
mov word [r12 + 0x3c], di
mov qword [r15], rax
mov eax, 1
jmp 0x1400be31c
test esi, esi
jle 0x1400be254
mov r10, qword [r12 + 8]
mov edx, dword [r10 + 0x10]
mov ecx, edx
sub ecx, 1
je 0x1400be186
sub ecx, 1
je 0x1400be186
sub ecx, 2
je 0x1400be17a
cmp ecx, 1
je 0x1400be155
mov rcx, r10
mov edx, dword [rcx + 0x10]
test edx, edx
je 0x1400be211
sub edx, 1
je 0x1400be149
sub edx, 1
je 0x1400be149
sub edx, 2
je 0x1400be1fd
cmp edx, 1
je 0x1400be211
lea r14, [0x1400e0674]
jmp 0x1400be214
cmp qword [r10 + 8], rdi
je 0x1400be160
mov rcx, r10
jmp 0x1400be18f
mov rcx, qword [r10]
mov r9d, 1
mov edx, r9d
mov dword [rsp + 0x20], edi
xor r8d, r8d
call fcn.1400bf130
jmp 0x1400be184
mov rcx, qword [r10]
xor edx, edx
call fcn.140028f30
mov edx, eax
mov rcx, qword [r12 + 8]
test edx, edx
je 0x1400be122
mov edx, dword [rcx + 0x10]
sub edx, 1
je 0x1400be1db
sub edx, 1
je 0x1400be1f6
sub edx, 2
je 0x1400be1c8
sub edx, 1
je 0x1400be1b0
cmp edx, 1
jne 0x1400be1be
mov rax, rdi
jmp 0x1400be21c
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400be1be
mov rax, qword [rax]
jmp 0x1400be21c
mov rcx, qword [rcx]
call fcn.140025a40
jmp 0x1400be21c
mov rcx, qword [rcx]
cmp byte [rcx + 0x23], dil
jne 0x1400be1d5
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400be1e0
mov rax, qword [rcx]
jmp 0x1400be21c
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001630
mov rcx, rax
call fcn.140025a40
jmp 0x1400be21c
cvttsd2si rax, qword [rcx]
jmp 0x1400be21c
mov rcx, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001630
mov r14, rax
jmp 0x1400be214
mov r14, qword [rcx]
mov rcx, r14
call fcn.14002a3b0
mov rbx, qword [rsp + 0x70]
mov ecx, 0xffffffff
cmp eax, ecx
je 0x1400be259
and eax, 0x7fffffff
cmove eax, dword [0x140119a48]
cmp dword [rbx + 0x24], eax
je 0x1400be259
lea rdx, [rbx + 0x28]
mov dword [rbx + 0x24], eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1400be259
mov byte [rbx + 0x2e], dil
jmp 0x1400be259
mov rbx, qword [rsp + 0x70]
mov ecx, dword [rbx + 0x24]
cmp ecx, 0x4b0
je 0x1400be2ac
cmp ecx, 0xfde9
je 0x1400be297
mov rbx, qword [r15 + 8]
mov r8d, 0xa
lea rdx, [rbx + 4]
mov dword [rbx], 0x500043
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
mov eax, 1
mov dword [r15 + 0x10], edi
mov qword [r15], rbx
jmp 0x1400be31c
lea rbx, str.UTF_8
mov dword [r15 + 0x10], edi
mov qword [r15], rbx
mov eax, 1
jmp 0x1400be31c
lea rbx, str.UTF_16
mov dword [r15 + 0x10], edi
mov qword [r15], rbx
mov eax, 1
jmp 0x1400be31c
test esi, esi
jne 0x1400be305
mov r12, qword [rsp + 0x70]
mov r8d, dword [r12 + 0x1c]
test r8d, r8d
je 0x1400be2f2
cmp qword [r12 + 0x40], rdi
jne 0x1400be2f2
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
mov rdx, qword [r12 + 0x48]
call qword [rax + 0x20]
mov dword [r12 + 0x1c], edi
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
mov word [r12 + 0x3c], di
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea r14, [0x1400e0674]
mov dword [r15 + 0x10], edi
mov qword [r15], r14
mov eax, 1
jmp 0x1400be31c
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret