Function at 0x1400bcdd0
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 0x1400be066
mov r12, qword [rsp + 0x90]
dec esi
mov r14, qword [r12]
mov r8d, dword [r14 + 0x10]
test r8d, r8d
je 0x1400bce57
sub r8d, 1
je 0x1400bce3a
sub r8d, 1
je 0x1400bce3a
sub r8d, 2
je 0x1400bce43
cmp r8d, 1
je 0x1400bce57
lea r14, [0x1400e0684]
jmp 0x1400bce5a
mov rcx, qword [r14]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001670
mov r14, rax
jmp 0x1400bce5a
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 0x1400bceac
cmp word [r14 + 8], di
lea rcx, [r14 + 8]
jne 0x1400bce8b
lea ebp, [rdx - 1]
jmp 0x1400bd016
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 0x1400bd011
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 0x1400bcef9
cmp word [r14 + 0xa], di
lea rcx, [r14 + 0xa]
jne 0x1400bcedd
mov edx, 2
mov ebp, edx
jmp 0x1400bd016
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 0x1400bd011
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 0x1400bcf15
lea ebp, [rax + 6]
jmp 0x1400bd011
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 0x1400bcf31
lea ebp, [rax + 6]
jmp 0x1400bd011
lea rdx, [0x1400fcd50]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400bd00c
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 0x1400bcf65
lea ebp, [rax + 9]
jmp 0x1400bd011
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 0x1400bcf81
lea ebp, [rax + 0xa]
jmp 0x1400bd011
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 0x1400bcf9a
lea ebp, [rax + 0xb]
jmp 0x1400bd011
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 0x1400bcfb3
lea ebp, [rax + 0xc]
jmp 0x1400bd011
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 0x1400bcfcc
lea ebp, [rax + 0xd]
jmp 0x1400bd011
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 0x1400bd00c
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 0x1400bd00c
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 0x1400be066
mov ebp, 8
mov edx, 2
test r13b, 2
jne 0x1400bd032
cmp ebp, 7
jb 0x1400bd5c4
and r13d, 1
cmp esi, r13d
jne 0x1400bd5c4
lea eax, [rbp - 1]
mov dword [r15 + 0x10], 1
cmp eax, 0xc
ja case.0x1400bd0fb.69
cdqe
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0xbe088]
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 0x1400bd0ab
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
je 0x1400bd0ab
and r14d, 0xffffffdf
cmp r14w, 0x55
jne 0x1400bd0bb
add rbp, 2
mov qword [rsp + 0x38], rbp
movzx ebp, word [rbp]
test ebp, 0xffffff80
jne 0x1400bd0db
mov edx, 2
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
je 0x1400bd0db
and ebp, 0xffffffdf
add ebp, 0xffffffbd
cmp ebp, 0x10
ja case.0x1400bd0fb.69
lea rcx, [0x140000000]
movsxd rax, ebp
mov edx, dword [rcx + rax*4 + 0xbe0bc]
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 0x1400bd13b
mov ebp, 2
mov ebx, ebp
jmp 0x1400bd140
mov ebx, 1
jmp 0x1400bd13b
mov ebx, 8
jmp 0x1400bd13b
mov ebx, 8
mov r13d, 1
mov ebp, 2
cmp byte [rsp + 0x98], dil
je 0x1400bd20c
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x30]
add rcx, 0x10
mov qword [rsp + 0x30], rdi
mov r8d, ebx
call fcn.1400bc690
test eax, eax
je case.0x1400bd0fb.69
test r13d, r13d
je 0x1400bd1ae
cmp ebx, 4
jne 0x1400bd195
movss xmm0, dword [rsp + 0x30]
lea eax, [rbx - 3]
cvtps2pd xmm0, xmm0
mov dword [r15 + 0x10], ebp
movsd qword [r15], xmm0
jmp 0x1400be068
movsd xmm0, qword [rsp + 0x30]
mov eax, 1
movsd qword [r15], xmm0
mov dword [r15 + 0x10], ebp
jmp 0x1400be068
cmp r14w, 0x55
je 0x1400bd1fa
sub ebx, 1
je 0x1400bd1e7
sub ebx, 1
je 0x1400bd1d4
cmp ebx, 2
jne 0x1400bd1fa
movsxd rax, dword [rsp + 0x30]
mov qword [r15], rax
lea eax, [rbx - 1]
jmp 0x1400be068
movsx rax, word [rsp + 0x30]
mov qword [r15], rax
mov eax, 1
jmp 0x1400be068
movsx rax, byte [rsp + 0x30]
mov qword [r15], rax
mov eax, 1
jmp 0x1400be068
mov rax, qword [rsp + 0x30]
mov qword [r15], rax
mov eax, 1
jmp 0x1400be068
cmp esi, 1
jne case.0x1400bd0fb.69
mov rcx, qword [r12 + 8]
test r13d, r13d
je 0x1400bd298
mov edx, dword [rcx + 0x10]
sub edx, esi
je 0x1400bd26b
sub edx, esi
je 0x1400bd265
sub edx, 2
je 0x1400bd259
sub edx, esi
je 0x1400bd23c
cmp edx, esi
jne 0x1400bd24f
xorps xmm0, xmm0
jmp 0x1400bd273
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400bd24f
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rax]
jmp 0x1400bd273
mov rcx, qword [rcx]
call fcn.140028fa0
jmp 0x1400bd273
mov rcx, qword [rcx]
xor edx, edx
call fcn.140029160
jmp 0x1400bd273
movsd xmm0, qword [rcx]
jmp 0x1400bd273
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rcx]
movsd qword [rsp + 0x30], xmm0
lea r14, [0x1400e0684]
cmp ebx, 4
jne 0x1400bd38d
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x30], xmm0
jmp 0x1400bd38d
cmp ebx, 8
jne 0x1400bd315
cmp r14w, 0x55
jne 0x1400bd315
mov edx, dword [rcx + 0x10]
lea eax, [rdx - 1]
cmp eax, 1
jbe 0x1400bd315
test edx, edx
je 0x1400bd301
sub edx, 1
je 0x1400bd2c7
sub edx, 1
je 0x1400bd2c7
sub edx, 2
je 0x1400bd2de
cmp edx, 1
je 0x1400bd301
lea r14, [0x1400e0684]
mov rax, r14
mov rcx, rax
call fcn.14004fa30
jmp 0x1400bd388
mov rcx, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001670
mov rcx, rax
lea r14, [0x1400e0684]
call fcn.14004fa30
jmp 0x1400bd388
mov rax, qword [rcx]
lea r14, [0x1400e0684]
mov rcx, rax
call fcn.14004fa30
jmp 0x1400bd388
mov edx, dword [rcx + 0x10]
sub edx, 1
je 0x1400bd37e
sub edx, 1
je 0x1400bd377
sub edx, 2
je 0x1400bd34e
sub edx, 1
je 0x1400bd336
cmp edx, 1
jne 0x1400bd344
mov rax, rdi
jmp 0x1400bd381
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400bd344
mov rax, qword [rax]
jmp 0x1400bd381
mov rcx, qword [rcx]
call fcn.140025b20
jmp 0x1400bd381
mov rcx, qword [rcx]
cmp byte [rcx + 0x23], dil
jne 0x1400bd35b
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
jne 0x1400bd37e
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001670
mov rcx, rax
call fcn.140025b20
jmp 0x1400bd381
cvttsd2si rax, qword [rcx]
jmp 0x1400bd381
mov rax, qword [rcx]
lea r14, [0x1400e0684]
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0x70]
add rsi, 0x10
mov rcx, rsi
call fcn.1400bbfc0
test al, al
jne 0x1400bd3a6
mov ebx, edi
jmp 0x1400bd3f8
mov ecx, dword [rsi + 0xc]
mov eax, 0x2000
sub eax, ecx
cmp ebx, eax
jae 0x1400bd3ca
add rcx, qword [rsi + 0x38]
lea rdx, [rsp + 0x30]
mov r8d, ebx
call sub.VCRUNTIME140.dll_memcpy
add dword [rsi + 0xc], ebx
jmp 0x1400bd3f4
test ecx, ecx
je 0x1400bd3e1
mov rax, qword [rsi]
mov r8d, ecx
mov rdx, qword [rsi + 0x38]
mov rcx, rsi
call qword [rax + 0x20]
mov dword [rsi + 0xc], edi
mov rax, qword [rsi]
lea rdx, [rsp + 0x30]
mov r8d, ebx
mov rcx, rsi
call qword [rax + 0x20]
mov ebx, eax
test ebx, ebx
jne 0x1400bd40c
mov rax, qword [0x140112060]
test byte [rax + 0x140], 1
jne 0x1400bdbc0
mov eax, ebx
mov qword [r15], rax
mov eax, 1
jmp 0x1400be068
cmp esi, 1
jg case.0x1400bd0fb.69
test esi, esi
je 0x1400bd4e7
mov rbx, qword [r12 + 8]
mov ecx, dword [rbx + 0x10]
sub ecx, 1
je 0x1400bd4dd
sub ecx, 1
je 0x1400bd4ce
sub ecx, 2
je 0x1400bd48d
sub ecx, 1
je 0x1400bd462
cmp ecx, 1
jne 0x1400bd478
mov r14, qword [rsp + 0x70]
mov rbx, rdi
jmp 0x1400bd55d
mov rax, qword [rbx + 8]
test rax, rax
je 0x1400bd478
mov rbx, qword [rax]
mov r14, qword [rsp + 0x70]
jmp 0x1400bd55d
mov rcx, qword [rbx]
call fcn.140025b20
mov r14, qword [rsp + 0x70]
mov rbx, rax
jmp 0x1400bd55d
mov rcx, qword [rbx]
cmp byte [rcx + 0x23], dil
jne 0x1400bd49a
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400bd4ad
mov rbx, qword [rcx]
mov r14, qword [rsp + 0x70]
jmp 0x1400bd55d
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001670
mov rcx, rax
call fcn.140025b20
mov r14, qword [rsp + 0x70]
mov rbx, rax
jmp 0x1400bd55d
cvttsd2si rbx, qword [rbx]
mov r14, qword [rsp + 0x70]
jmp 0x1400bd55d
mov rbx, qword [rbx]
mov r14, qword [rsp + 0x70]
jmp 0x1400bd55d
mov r14, qword [rsp + 0x70]
mov rax, qword [r14 + 0x10]
lea rcx, [r14 + 0x10]
call qword [rax + gethostname]
mov rbp, rax
cmp qword [r14 + 0x40], rdi
jne 0x1400bd520
cmp dword [r14 + 0x1c], edi
je 0x1400bd520
mov rax, qword [r14 + 0x10]
lea rcx, [r14 + 0x10]
call qword [rax + 0x30]
mov rsi, rax
mov eax, dword [r14 + 0x1c]
add rsi, rax
cmp rsi, rbp
jg 0x1400bd523
mov rsi, rbp
mov rax, qword [r14 + 0x10]
lea rcx, [r14 + 0x10]
call qword [rax + 0x30]
mov rdx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bd53c
mov rbx, rax
jmp 0x1400bd559
mov rax, qword [r14 + 0x40]
mov ecx, dword [r14 + 0x1c]
test rax, rax
je 0x1400bd552
sub rax, qword [r14 + 0x48]
sub rax, rcx
jmp 0x1400bd555
mov rax, rcx
lea rbx, [rax + rdx]
sub esi, ebx
mov ebx, esi
mov ecx, 0xffffffff
cmp ebx, ecx
je case.0x1400bd0fb.69
mov esi, ebx
cmp rsi, 0xff
ja 0x1400bd57b
mov rax, qword [r15 + 8]
jmp 0x1400bd59a
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.0x1400bd0fb.69
mov qword [r15 + 8], rsi
mov qword [r15], rax
lea rcx, [r14 + 0x10]
mov word [rax + rsi*2], di
xor r9d, r9d
mov r8d, ebx
mov rdx, qword [r15]
call fcn.1400bc260
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 0x1400be068
test esi, esi
jne case.0x1400bd0fb.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.0x1400bd0fb.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 0x1400bd5ab
cmp esi, 1
jg case.0x1400bd0fb.69
mov r14d, edi
mov ebx, edi
test esi, esi
je 0x1400bd6c8
mov rdx, qword [r15 + 8]
mov rcx, qword [r12 + 8]
call fcn.140080d20
mov rbx, qword [r12 + 8]
mov rsi, rax
cmp dword [rbx + 0x10], 4
jne 0x1400bd69c
mov rbx, qword [rbx]
movzx edx, byte [rbx + 0x23]
test dl, dl
jne 0x1400bd65c
mov rax, qword [rbx + 0x10]
movzx ecx, byte [rax + 0x21]
jmp 0x1400bd660
movzx ecx, byte [rbx + 0x21]
test cl, 1
jne 0x1400bd69c
test dl, dl
jne 0x1400bd66d
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 1
jne 0x1400bd68d
test byte [rbx + 0x21], 8
je 0x1400bd681
mov rcx, rbx
call fcn.140001510
add rbx, 0x10
mov rbx, qword [rbx]
shr rbx, 1
jmp 0x1400bd6ac
lea rbx, [0x14011b1e8]
mov rbx, qword [rbx]
shr rbx, 1
jmp 0x1400bd6ac
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], di
jne 0x1400bd6a3
mov r12, qword [rsp + 0x70]
mov r8d, ebx
add r12, 0x10
mov rdx, rsi
mov rcx, r12
call fcn.1400bc840
mov r14d, eax
jmp 0x1400bd6d1
mov r12, qword [rsp + 0x70]
add r12, 0x10
cmp ebp, 4
jne 0x1400bd6f9
test r14d, r14d
jne 0x1400bd6df
test ebx, ebx
jne 0x1400bd702
mov r8d, 1
lea rdx, [0x1400fe564]
mov rcx, r12
inc ebx
call fcn.1400bc840
add r14d, eax
test r14d, r14d
jne 0x1400bd716
test ebx, ebx
je 0x1400bd716
mov rax, qword [0x140112060]
test byte [rax + 0x140], 1
jne case.0x1400bd0fb.69
mov eax, r14d
mov qword [r15], rax
mov eax, 1
jmp 0x1400be068
cmp esi, 2
jne case.0x1400bd0fb.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 0x1400bd7c2
sub ecx, 1
je 0x1400bd7bb
sub ecx, 2
je 0x1400bd78a
sub ecx, 1
je 0x1400bd76f
cmp ecx, 1
jne 0x1400bd77d
mov rsi, rdi
jmp 0x1400bd7c5
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400bd77d
mov rsi, qword [rax]
jmp 0x1400bd7c5
mov rcx, qword [rsi]
call fcn.140025b20
mov rsi, rax
jmp 0x1400bd7c5
mov rcx, qword [rsi]
cmp byte [rcx + 0x23], dil
jne 0x1400bd797
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400bd7a2
mov rsi, qword [rcx]
jmp 0x1400bd7c5
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001670
mov rcx, rax
call fcn.140025b20
mov rsi, rax
jmp 0x1400bd7c5
cvttsd2si rsi, qword [rsi]
jmp 0x1400bd7c5
mov rsi, qword [rsi]
mov ecx, dword [rbx + 0x10]
cmp ecx, 4
jne 0x1400bd8f5
mov rcx, qword [rbx]
cmp byte [rcx + 0x23], dil
jne 0x1400bd7e0
mov rax, qword [rcx + 0x10]
jmp 0x1400bd7e3
mov rax, rcx
cmp byte [rax + 0x23], 2
mov edx, dword [0x140119898]
je 0x1400bd7f3
mov rdx, qword [rax + 0x18]
mov eax, esi
cmp rax, rdx
jbe 0x1400bd83f
test bpl, bpl
je 0x1400bd81e
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.1400c3f40
test eax, eax
jne 0x1400bd83f
mov rax, qword [0x140112060]
test byte [rax + 0x140], 1
jne case.0x1400bd0fb.69
mov qword [r15], rdi
mov eax, 1
jmp 0x1400be068
mov rbx, qword [rbx]
cmp byte [rbx + 0x23], dil
jne 0x1400bd84c
mov rbx, qword [rbx + 0x10]
test byte [rbx + 0x21], 8
je 0x1400bd85a
mov rcx, rbx
call fcn.140001510
movzx eax, byte [rbx + 0x23]
cmp al, 1
jne 0x1400bd879
test byte [rbx + 0x21], 4
je 0x1400bd870
mov rdx, rbx
call fcn.14004e8c0
mov rdx, qword [rbx + 8]
jmp 0x1400bd964
cmp al, 2
jne 0x1400bd8ec
mov rdx, qword [0x140119888]
test rdx, rdx
jne 0x1400bd964
lea ecx, [rdx + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x1400bd8bf
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
lea r14, [0x1400e0684]
test eax, eax
lea rcx, [0x1400e0678]
mov rdx, r14
cmovne rdx, rcx
jmp 0x1400bd96b
xor edx, edx
lea rcx, [0x140119870]
call fcn.140006390
mov ecx, 0xffffffff
lea r14, [0x1400e0684]
cmp rax, rcx
mov rdx, r14
cmovne rdx, qword [0x140119880]
jmp 0x1400bd96b
lea rdx, [0x140117b68]
jmp 0x1400bd964
sub ecx, 1
je 0x1400bd961
sub ecx, 1
je 0x1400bd95a
sub ecx, 2
je 0x1400bd929
sub ecx, 1
je 0x1400bd91b
cmp ecx, 1
je 0x1400bd98c
mov rcx, qword [rbx]
call fcn.140025b20
mov rdx, rax
jmp 0x1400bd964
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1400bd90e
mov rdx, qword [rdx]
jmp 0x1400bd964
mov rcx, qword [rbx]
cmp byte [rcx + 0x23], dil
jne 0x1400bd936
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400bd941
mov rdx, qword [rcx]
jmp 0x1400bd964
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001670
mov rcx, rax
call fcn.140025b20
mov rdx, rax
jmp 0x1400bd964
cvttsd2si rdx, qword [rbx]
jmp 0x1400bd964
mov rdx, qword [rbx]
lea r14, [0x1400e0684]
cmp rdx, 0x10000
jb 0x1400bd993
mov rcx, qword [rsp + 0x70]
mov r8d, esi
add rcx, 0x10
test bpl, bpl
je 0x1400bd997
call fcn.1400bc690
jmp 0x1400bd99c
lea r14, [0x1400e0684]
mov ecx, edi
jmp 0x1400bd9a2
call fcn.1400bca90
mov ecx, eax
test eax, eax
jne 0x1400bd9ba
test esi, esi
je 0x1400bd9ba
mov rax, qword [0x140112060]
test byte [rax + 0x140], 1
jne 0x1400bdbc0
mov eax, ecx
mov qword [r15], rax
mov eax, 1
jmp 0x1400be068
test esi, esi
jne 0x1400bda2c
mov rbx, qword [rsp + 0x70]
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
call qword [rax + 0x30]
mov rdx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bd9f4
mov rbx, rax
mov qword [r15], rax
lea eax, [rsi + 1]
jmp 0x1400be068
mov rax, qword [rbx + 0x40]
mov ecx, dword [rbx + 0x1c]
test rax, rax
je 0x1400bda18
sub rax, qword [rbx + 0x48]
sub rax, rcx
lea rbx, [rdx + rax]
mov eax, 1
mov qword [r15], rbx
jmp 0x1400be068
mov rax, rcx
lea rbx, [rdx + rcx]
mov qword [r15], rbx
mov eax, 1
jmp 0x1400be068
cmp esi, 2
jg case.0x1400bd0fb.69
mov rdx, qword [r12 + 8]
mov ecx, dword [rdx + 0x10]
sub ecx, 1
je 0x1400bdaaf
sub ecx, 1
je 0x1400bdaa8
sub ecx, 2
je 0x1400bda77
sub ecx, 1
je 0x1400bda5b
cmp ecx, 1
jne 0x1400bda6a
mov rbp, rdi
jmp 0x1400bdab2
mov rbp, qword [rdx + 8]
test rbp, rbp
je 0x1400bda6a
mov rbp, qword [rbp]
jmp 0x1400bdab2
mov rcx, qword [rdx]
call fcn.140025b20
mov rbp, rax
jmp 0x1400bdab2
mov rcx, qword [rdx]
cmp byte [rcx + 0x23], dil
jne 0x1400bda84
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400bda8f
mov rbp, qword [rcx]
jmp 0x1400bdab2
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001670
mov rcx, rax
call fcn.140025b20
mov rbp, rax
jmp 0x1400bdab2
cvttsd2si rbp, qword [rdx]
jmp 0x1400bdab2
mov rbp, qword [rdx]
cmp esi, 2
jne 0x1400bdb35
mov rsi, qword [r12 + 0x10]
mov ecx, dword [rsi + 0x10]
sub ecx, 1
je 0x1400bdb30
sub ecx, 1
je 0x1400bdb29
sub ecx, 2
je 0x1400bdaf8
sub ecx, 1
je 0x1400bdadd
cmp ecx, 1
jne 0x1400bdaeb
mov rsi, rdi
jmp 0x1400bdb42
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400bdaeb
mov rsi, qword [rax]
jmp 0x1400bdb42
mov rcx, qword [rsi]
call fcn.140025b20
mov rsi, rax
jmp 0x1400bdb42
mov rcx, qword [rsi]
cmp byte [rcx + 0x23], dil
jne 0x1400bdb05
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400bdb10
mov rsi, qword [rcx]
jmp 0x1400bdb42
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001670
mov rcx, rax
call fcn.140025b20
mov rsi, rax
jmp 0x1400bdb42
cvttsd2si rsi, qword [rsi]
jmp 0x1400bdb42
mov rsi, qword [rsi]
jmp 0x1400bdb42
test rbp, rbp
mov esi, edi
mov ecx, 2
cmovs esi, ecx
mov rbx, qword [rsp + 0x70]
add rbx, 0x10
mov rdx, qword [rbx + 0x30]
mov r8d, dword [rbx + 0xc]
test rdx, rdx
je 0x1400bdb75
sub rdx, qword [rbx + 0x38]
mov rcx, rbx
mov r9, qword [rbx]
sub rdx, r8
mov r8d, 1
call qword [r9 + 0x28]
mov qword [rbx + 0x30], rdi
jmp 0x1400bdb87
test r8d, r8d
je 0x1400bdb8a
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [rbx + 0x38]
call qword [rax + 0x20]
mov dword [rbx + 0xc], edi
mov rax, qword [rbx]
mov r8d, esi
mov rdx, rbp
mov word [rbx + 0x2c], di
mov rcx, rbx
call qword [rax + 0x28]
test al, al
jne 0x1400bddc9
mov rax, qword [0x140112060]
test byte [rax + 0x140], 1
je 0x1400bddce
lea r14, [0x1400e0684]
mov rax, qword [0x140112060]
mov dword [r15 + 0x10], edi
test byte [rax + 0x140], 1
je 0x1400bd5c4
mov rcx, qword [0x1401192c0]
lea r8, str.FileObject
mov r9, r14
lea rdx, [0x1400f5d6c]
call fcn.14004d4a0
mov eax, 1
jmp 0x1400be068
test esi, esi
jne 0x1400bdc4b
mov rbx, qword [rsp + 0x70]
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
call qword [rax + gethostname]
cmp qword [rbx + 0x40], 0
mov rdi, rax
jne 0x1400bdc3b
cmp dword [rbx + 0x1c], esi
je 0x1400bdc3b
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
call qword [rax + 0x30]
mov rcx, rax
mov eax, dword [rbx + 0x1c]
add rcx, rax
cmp rcx, rdi
jg 0x1400bdc3e
mov rcx, rdi
mov qword [r15], rcx
mov eax, 1
jmp 0x1400be068
cmp esi, 1
jne case.0x1400bd0fb.69
mov rsi, qword [r12 + 8]
mov rbx, qword [rsp + 0x70]
add rbx, 0x10
mov ecx, dword [rsi + 0x10]
sub ecx, 1
je 0x1400bdcd6
sub ecx, 1
je 0x1400bdccf
sub ecx, 2
je 0x1400bdc9e
sub ecx, 1
je 0x1400bdc83
cmp ecx, 1
jne 0x1400bdc91
mov rsi, rdi
jmp 0x1400bdcd9
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400bdc91
mov rsi, qword [rax]
jmp 0x1400bdcd9
mov rcx, qword [rsi]
call fcn.140025b20
mov rsi, rax
jmp 0x1400bdcd9
mov rcx, qword [rsi]
cmp byte [rcx + 0x23], dil
jne 0x1400bdcab
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400bdcb6
mov rsi, qword [rcx]
jmp 0x1400bdcd9
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001670
mov rcx, rax
call fcn.140025b20
mov rsi, rax
jmp 0x1400bdcd9
cvttsd2si rsi, qword [rsi]
jmp 0x1400bdcd9
mov rsi, qword [rsi]
mov rdx, qword [rbx + 0x30]
mov r8d, dword [rbx + 0xc]
test rdx, rdx
je 0x1400bdd03
sub rdx, qword [rbx + 0x38]
mov rcx, rbx
mov r9, qword [rbx]
sub rdx, r8
mov r8d, 1
call qword [r9 + 0x28]
mov qword [rbx + 0x30], rdi
jmp 0x1400bdd15
test r8d, r8d
je 0x1400bdd18
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [rbx + 0x38]
call qword [rax + 0x20]
mov dword [rbx + 0xc], edi
mov rax, qword [rbx]
mov rcx, rbx
mov word [rbx + 0x2c], di
call qword [rax + 0x30]
xor r8d, r8d
mov rdx, rsi
mov rbp, rax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0x28]
test al, al
je 0x1400bdd75
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400bdd75
mov rax, qword [rbx]
cmp rsi, rbp
mov rcx, rbx
cmovl rbp, rsi
xor r8d, r8d
mov rdx, rbp
call qword [rax + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
mov qword [r15], rax
cmp rax, 0xffffffffffffffff
jne 0x1400bd5c4
lea r14, [0x1400e0684]
mov qword [r15], r14
jmp 0x1400bdbc0
test esi, esi
jne 0x1400bd5c4
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x1400bdda6
mov eax, dword [rbx + 0x1c]
add rax, qword [rbx + 0x48]
cmp rcx, rax
jb 0x1400bddce
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
call qword [rax + 0x30]
mov rsi, rax
test rax, rax
js 0x1400bddc9
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
call qword [rax + gethostname]
cmp rsi, rax
jl 0x1400bddce
mov edi, 1
mov qword [r15], rdi
mov eax, 1
jmp 0x1400be068
test esi, esi
jne 0x1400bd5c4
mov rbx, qword [rsp + 0x70]
mov rdx, qword [rbx + 0x40]
mov r8d, dword [rbx + 0x1c]
test rdx, rdx
je 0x1400bde26
sub rdx, qword [rbx + 0x48]
lea rcx, [rbx + 0x10]
mov r9, qword [rbx + 0x10]
sub rdx, r8
lea r8d, [rsi + 1]
call qword [r9 + 0x28]
mov rax, qword [rbx + 0x50]
mov qword [rbx + 0x40], rdi
mov dword [rbx + 0x1c], edi
mov word [rbx + 0x3c], di
mov qword [r15], rax
lea eax, [rsi + 1]
jmp 0x1400be068
test r8d, r8d
je 0x1400bde3d
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
mov rdx, qword [rbx + 0x48]
call qword [rax + 0x20]
mov dword [rbx + 0x1c], edi
mov rax, qword [rbx + 0x50]
mov word [rbx + 0x3c], di
mov qword [r15], rax
mov eax, 1
jmp 0x1400be068
test esi, esi
jle 0x1400bdfae
mov r10, qword [r12 + 8]
mov edx, dword [r10 + 0x10]
mov ecx, edx
sub ecx, 1
je 0x1400bdee0
sub ecx, 1
je 0x1400bdee0
sub ecx, 2
je 0x1400bded4
cmp ecx, 1
je 0x1400bdeaf
mov rcx, r10
mov edx, dword [rcx + 0x10]
test edx, edx
je 0x1400bdf6b
sub edx, 1
je 0x1400bdea3
sub edx, 1
je 0x1400bdea3
sub edx, 2
je 0x1400bdf57
cmp edx, 1
je 0x1400bdf6b
lea r14, [0x1400e0684]
jmp 0x1400bdf6e
cmp qword [r10 + 8], rdi
je 0x1400bdeba
mov rcx, r10
jmp 0x1400bdee9
mov rcx, qword [r10]
mov r9d, 1
mov edx, r9d
mov dword [rsp + 0x20], edi
xor r8d, r8d
call fcn.1400bee70
jmp 0x1400bdede
mov rcx, qword [r10]
xor edx, edx
call fcn.140029040
mov edx, eax
mov rcx, qword [r12 + 8]
test edx, edx
je 0x1400bde7c
mov edx, dword [rcx + 0x10]
sub edx, 1
je 0x1400bdf35
sub edx, 1
je 0x1400bdf50
sub edx, 2
je 0x1400bdf22
sub edx, 1
je 0x1400bdf0a
cmp edx, 1
jne 0x1400bdf18
mov rax, rdi
jmp 0x1400bdf76
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400bdf18
mov rax, qword [rax]
jmp 0x1400bdf76
mov rcx, qword [rcx]
call fcn.140025b20
jmp 0x1400bdf76
mov rcx, qword [rcx]
cmp byte [rcx + 0x23], dil
jne 0x1400bdf2f
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400bdf3a
mov rax, qword [rcx]
jmp 0x1400bdf76
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001670
mov rcx, rax
call fcn.140025b20
jmp 0x1400bdf76
cvttsd2si rax, qword [rcx]
jmp 0x1400bdf76
mov rcx, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001670
mov r14, rax
jmp 0x1400bdf6e
mov r14, qword [rcx]
mov rcx, r14
call fcn.14002a4c0
mov rbx, qword [rsp + 0x70]
mov ecx, 0xffffffff
cmp eax, ecx
je 0x1400bdfb3
and eax, 0x7fffffff
cmove eax, dword [0x140119a48]
cmp dword [rbx + 0x24], eax
je 0x1400bdfb3
lea rdx, [rbx + 0x28]
mov dword [rbx + 0x24], eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1400bdfb3
mov byte [rbx + 0x2e], dil
jmp 0x1400bdfb3
mov rbx, qword [rsp + 0x70]
mov ecx, dword [rbx + 0x24]
cmp ecx, 0x4b0
je 0x1400be003
cmp ecx, 0xfde9
je 0x1400bdfee
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 0x1400be068
lea rbx, str.UTF_8
mov dword [r15 + 0x10], edi
mov qword [r15], rbx
mov eax, 1
jmp 0x1400be068
lea rbx, str.UTF_16
mov dword [r15 + 0x10], edi
mov qword [r15], rbx
mov eax, 1
jmp 0x1400be068
test esi, esi
jne 0x1400be051
mov rbx, qword [rsp + 0x70]
mov r8d, dword [rbx + 0x1c]
test r8d, r8d
je 0x1400be042
cmp qword [rbx + 0x40], rdi
jne 0x1400be042
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
mov rdx, qword [rbx + 0x48]
call qword [rax + 0x20]
mov dword [rbx + 0x1c], edi
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
mov word [rbx + 0x3c], di
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea r14, [0x1400e0684]
mov dword [r15 + 0x10], edi
mov qword [r15], r14
mov eax, 1
jmp 0x1400be068
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