Function at 0x1400cc150
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 0x1400cd3f8
mov r12, qword [rsp + 0x90]
dec esi
mov r14, qword [r12]
mov r8d, dword [r14 + 0x10]
test r8d, r8d
je 0x1400cc1d7
sub r8d, 1
je 0x1400cc1ba
sub r8d, 1
je 0x1400cc1ba
sub r8d, 2
je 0x1400cc1c3
cmp r8d, 1
je 0x1400cc1d7
lea r14, [0x1400ef7d4]
jmp 0x1400cc1da
mov rcx, qword [r14]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001740
mov r14, rax
jmp 0x1400cc1da
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 0x1400cc22c
cmp word [r14 + 8], di
lea rcx, [r14 + 8]
jne 0x1400cc20b
lea ebp, [rdx - 1]
jmp 0x1400cc396
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 0x1400cc391
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 0x1400cc279
cmp word [r14 + 0xa], di
lea rcx, [r14 + 0xa]
jne 0x1400cc25d
mov edx, 2
mov ebp, edx
jmp 0x1400cc396
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 0x1400cc391
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 0x1400cc295
lea ebp, [rax + 6]
jmp 0x1400cc391
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 0x1400cc2b1
lea ebp, [rax + 6]
jmp 0x1400cc391
lea rdx, [0x1401079c0]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400cc38c
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 0x1400cc2e5
lea ebp, [rax + 9]
jmp 0x1400cc391
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 0x1400cc301
lea ebp, [rax + 0xa]
jmp 0x1400cc391
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 0x1400cc31a
lea ebp, [rax + 0xb]
jmp 0x1400cc391
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 0x1400cc333
lea ebp, [rax + 0xc]
jmp 0x1400cc391
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 0x1400cc34c
lea ebp, [rax + 0xd]
jmp 0x1400cc391
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 0x1400cc38c
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 0x1400cc38c
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 0x1400cd3f8
mov ebp, 8
mov edx, 2
test r13b, 2
jne 0x1400cc3b2
cmp ebp, 7
jb 0x1400cc907
and r13d, 1
cmp esi, r13d
jne 0x1400cc907
lea eax, [rbp - 1]
mov dword [r15 + 0x10], 1
cmp eax, 0xc
ja case.0x1400cc47b.69
cdqe
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0xcd418]
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 0x1400cc42b
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
je 0x1400cc42b
and r14d, 0xffffffdf
cmp r14w, 0x55
jne 0x1400cc43b
add rbp, 2
mov qword [rsp + 0x38], rbp
movzx ebp, word [rbp]
test ebp, 0xffffff80
jne 0x1400cc45b
mov edx, 2
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
je 0x1400cc45b
and ebp, 0xffffffdf
add ebp, 0xffffffbd
cmp ebp, 0x10
ja case.0x1400cc47b.69
lea rcx, [0x140000000]
movsxd rax, ebp
mov edx, dword [rcx + rax*4 + 0xcd44c]
add rdx, rcx
jmp rdx
mov rcx, qword [rsp + 0x38]
mov dx, getservbyport
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
mov eax, 8
cmovne ebx, eax
jmp 0x1400cc4bb
mov ebp, 2
mov ebx, ebp
jmp 0x1400cc4c0
mov ebx, 1
jmp 0x1400cc4bb
mov ebx, 8
jmp 0x1400cc4bb
mov ebx, 8
mov r13d, 1
mov ebp, 2
cmp byte [rsp + 0x98], dil
je 0x1400cc58c
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x30]
add rcx, 0x10
mov qword [rsp + 0x30], rdi
mov r8d, ebx
call fcn.1400cb9c0
test eax, eax
je case.0x1400cc47b.69
test r13d, r13d
je 0x1400cc52e
cmp ebx, 4
jne 0x1400cc515
movss xmm0, dword [rsp + 0x30]
lea eax, [rbx - 3]
cvtps2pd xmm0, xmm0
mov dword [r15 + 0x10], ebp
movsd qword [r15], xmm0
jmp 0x1400cd3fa
movsd xmm0, qword [rsp + 0x30]
mov eax, 1
movsd qword [r15], xmm0
mov dword [r15 + 0x10], ebp
jmp 0x1400cd3fa
cmp r14w, 0x55
je 0x1400cc57a
sub ebx, 1
je 0x1400cc567
sub ebx, 1
je 0x1400cc554
cmp ebx, 2
jne 0x1400cc57a
movsxd rax, dword [rsp + 0x30]
mov qword [r15], rax
lea eax, [rbx - 1]
jmp 0x1400cd3fa
movsx rax, word [rsp + 0x30]
mov qword [r15], rax
mov eax, 1
jmp 0x1400cd3fa
movsx rax, byte [rsp + 0x30]
mov qword [r15], rax
mov eax, 1
jmp 0x1400cd3fa
mov rax, qword [rsp + 0x30]
mov qword [r15], rax
mov eax, 1
jmp 0x1400cd3fa
cmp esi, 1
jne case.0x1400cc47b.69
mov rcx, qword [r12 + 8]
test r13d, r13d
je 0x1400cc618
mov edx, dword [rcx + 0x10]
sub edx, esi
je 0x1400cc5eb
sub edx, esi
je 0x1400cc5e5
sub edx, 2
je 0x1400cc5d9
sub edx, esi
je 0x1400cc5bc
cmp edx, esi
jne 0x1400cc5cf
xorps xmm0, xmm0
jmp 0x1400cc5f3
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400cc5cf
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rax]
jmp 0x1400cc5f3
mov rcx, qword [rcx]
call fcn.140031da0
jmp 0x1400cc5f3
mov rcx, qword [rcx]
xor edx, edx
call fcn.140031ee0
jmp 0x1400cc5f3
movsd xmm0, qword [rcx]
jmp 0x1400cc5f3
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rcx]
movsd qword [rsp + 0x30], xmm0
lea r14, [0x1400ef7d4]
cmp ebx, 4
jne 0x1400cc70d
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x30], xmm0
jmp 0x1400cc70d
cmp ebx, 8
jne 0x1400cc695
cmp r14w, 0x55
jne 0x1400cc695
mov edx, dword [rcx + 0x10]
lea eax, [rdx - 1]
cmp eax, 1
jbe 0x1400cc695
test edx, edx
je 0x1400cc681
sub edx, 1
je 0x1400cc647
sub edx, 1
je 0x1400cc647
sub edx, 2
je 0x1400cc65e
cmp edx, 1
je 0x1400cc681
lea r14, [0x1400ef7d4]
mov rax, r14
mov rcx, rax
call fcn.140061c00
jmp 0x1400cc708
mov rcx, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001740
mov rcx, rax
lea r14, [0x1400ef7d4]
call fcn.140061c00
jmp 0x1400cc708
mov rax, qword [rcx]
lea r14, [0x1400ef7d4]
mov rcx, rax
call fcn.140061c00
jmp 0x1400cc708
mov edx, dword [rcx + 0x10]
sub edx, 1
je 0x1400cc6fe
sub edx, 1
je 0x1400cc6f7
sub edx, 2
je 0x1400cc6ce
sub edx, 1
je 0x1400cc6b6
cmp edx, 1
jne 0x1400cc6c4
mov rax, rdi
jmp 0x1400cc701
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400cc6c4
mov rax, qword [rax]
jmp 0x1400cc701
mov rcx, qword [rcx]
call fcn.140005bc0
jmp 0x1400cc701
mov rcx, qword [rcx]
cmp byte [rcx + 0x23], dil
jne 0x1400cc6db
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
jne 0x1400cc6fe
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001740
mov rcx, rax
call fcn.140005bc0
jmp 0x1400cc701
cvttsd2si rax, qword [rcx]
jmp 0x1400cc701
mov rax, qword [rcx]
lea r14, [0x1400ef7d4]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x30]
add rcx, 0x10
mov r8d, ebx
call fcn.1400cbde0
mov ecx, eax
test eax, eax
jne 0x1400ccfa2
mov rax, qword [0x140124200]
test byte [rax + 0x140], 1
jne 0x1400ccf1b
mov qword [r15], rcx
mov eax, 1
jmp 0x1400cd3fa
cmp esi, 1
jg case.0x1400cc47b.69
test esi, esi
je 0x1400cc81d
mov rbx, qword [r12 + 8]
mov ecx, dword [rbx + 0x10]
sub ecx, 1
je 0x1400cc810
sub ecx, 1
je 0x1400cc801
sub ecx, 2
je 0x1400cc7c0
sub ecx, 1
je 0x1400cc795
cmp ecx, 1
jne 0x1400cc7ab
mov r12, qword [rsp + 0x70]
mov rbx, rdi
jmp 0x1400cc89f
mov rax, qword [rbx + 8]
test rax, rax
je 0x1400cc7ab
mov rbx, qword [rax]
mov r12, qword [rsp + 0x70]
jmp 0x1400cc89f
mov rcx, qword [rbx]
call fcn.140005bc0
mov r12, qword [rsp + 0x70]
mov rbx, rax
jmp 0x1400cc89f
mov rcx, qword [rbx]
cmp byte [rcx + 0x23], dil
jne 0x1400cc7cd
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400cc7e0
mov rbx, qword [rcx]
mov r12, qword [rsp + 0x70]
jmp 0x1400cc89f
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001740
mov rcx, rax
call fcn.140005bc0
mov r12, qword [rsp + 0x70]
mov rbx, rax
jmp 0x1400cc89f
cvttsd2si rbx, qword [rbx]
mov r12, qword [rsp + 0x70]
jmp 0x1400cc89f
mov rbx, qword [rbx]
mov r12, qword [rsp + 0x70]
jmp 0x1400cc89f
mov r12, qword [rsp + 0x70]
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + reloc.WSOCK32.dll_getservbyport]
mov rbp, rax
cmp qword [r12 + 0x40], rdi
jne 0x1400cc85d
cmp dword [r12 + 0x1c], edi
je 0x1400cc85d
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 0x1400cc860
mov rsi, rbp
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + 0x30]
mov rdx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cc87b
mov rbx, rax
jmp 0x1400cc89b
mov rax, qword [r12 + 0x40]
mov ecx, dword [r12 + 0x1c]
test rax, rax
je 0x1400cc894
sub rax, qword [r12 + 0x48]
sub rax, rcx
jmp 0x1400cc897
mov rax, rcx
lea rbx, [rax + rdx]
sub esi, ebx
mov ebx, esi
mov ecx, 0xffffffff
cmp ebx, ecx
je case.0x1400cc47b.69
mov esi, ebx
cmp rsi, 0xff
ja 0x1400cc8bd
mov rax, qword [r15 + 8]
jmp 0x1400cc8dc
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.0x1400cc47b.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.1400cb5a0
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 0x1400cd3fa
test esi, esi
jne case.0x1400cc47b.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.0x1400cc47b.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 0x1400cc8ee
cmp esi, 1
jg case.0x1400cc47b.69
mov r14d, edi
mov ebx, edi
test esi, esi
je 0x1400cca0b
mov rdx, qword [r15 + 8]
mov rcx, qword [r12 + 8]
call fcn.140091b40
mov rbx, qword [r12 + 8]
mov rsi, rax
cmp dword [rbx + 0x10], 4
jne 0x1400cc9df
mov rbx, qword [rbx]
movzx edx, byte [rbx + 0x23]
test dl, dl
jne 0x1400cc99f
mov rax, qword [rbx + 0x10]
movzx ecx, byte [rax + 0x21]
jmp 0x1400cc9a3
movzx ecx, byte [rbx + 0x21]
test cl, 1
jne 0x1400cc9df
test dl, dl
jne 0x1400cc9b0
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 1
jne 0x1400cc9d0
test byte [rbx + 0x21], 8
je 0x1400cc9c4
mov rcx, rbx
call fcn.1400015e0
add rbx, 0x10
mov rbx, qword [rbx]
shr rbx, 1
jmp 0x1400cc9ef
lea rbx, [0x14012d5d0]
mov rbx, qword [rbx]
shr rbx, 1
jmp 0x1400cc9ef
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], di
jne 0x1400cc9e6
mov r12, qword [rsp + 0x70]
mov r8d, ebx
add r12, 0x10
mov rdx, rsi
mov rcx, r12
call fcn.1400cbb60
mov r14d, eax
jmp 0x1400cca14
mov r12, qword [rsp + 0x70]
add r12, 0x10
cmp ebp, 4
jne 0x1400cca3c
test r14d, r14d
jne 0x1400cca22
test ebx, ebx
jne 0x1400cca45
mov r8d, 1
lea rdx, [0x140110224]
mov rcx, r12
inc ebx
call fcn.1400cbb60
add r14d, eax
test r14d, r14d
jne 0x1400cca59
test ebx, ebx
je 0x1400cca59
mov rax, qword [0x140124200]
test byte [rax + 0x140], 1
jne case.0x1400cc47b.69
mov eax, r14d
mov qword [r15], rax
mov eax, 1
jmp 0x1400cd3fa
cmp esi, 2
jne case.0x1400cc47b.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 0x1400ccb05
sub ecx, 1
je 0x1400ccafe
sub ecx, 2
je 0x1400ccacd
sub ecx, 1
je 0x1400ccab2
cmp ecx, 1
jne 0x1400ccac0
mov rsi, rdi
jmp 0x1400ccb08
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400ccac0
mov rsi, qword [rax]
jmp 0x1400ccb08
mov rcx, qword [rsi]
call fcn.140005bc0
mov rsi, rax
jmp 0x1400ccb08
mov rcx, qword [rsi]
cmp byte [rcx + 0x23], dil
jne 0x1400ccada
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400ccae5
mov rsi, qword [rcx]
jmp 0x1400ccb08
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001740
mov rcx, rax
call fcn.140005bc0
mov rsi, rax
jmp 0x1400ccb08
cvttsd2si rsi, qword [rsi]
jmp 0x1400ccb08
mov rsi, qword [rsi]
mov ecx, dword [rbx + 0x10]
cmp ecx, 4
jne 0x1400ccc31
mov rcx, qword [rbx]
cmp byte [rcx + 0x23], dil
jne 0x1400ccb23
mov rax, qword [rcx + 0x10]
jmp 0x1400ccb26
mov rax, rcx
cmp byte [rax + 0x23], 2
mov edx, dword [0x14012bc70]
je 0x1400ccb36
mov rdx, qword [rax + 0x18]
mov eax, esi
cmp rax, rdx
jbe 0x1400ccb82
test bpl, bpl
je 0x1400ccb61
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.1400d3520
test eax, eax
jne 0x1400ccb82
mov rax, qword [0x140124200]
test byte [rax + 0x140], 1
jne case.0x1400cc47b.69
mov qword [r15], rdi
mov eax, 1
jmp 0x1400cd3fa
mov rbx, qword [rbx]
cmp byte [rbx + 0x23], dil
jne 0x1400ccb8f
mov rbx, qword [rbx + 0x10]
test byte [rbx + 0x21], 8
je 0x1400ccb9d
mov rcx, rbx
call fcn.1400015e0
movzx eax, byte [rbx + 0x23]
cmp al, 1
jne 0x1400ccbbc
test byte [rbx + 0x21], 4
je 0x1400ccbb3
mov rdx, rbx
call fcn.140060930
mov rdx, qword [rbx + 8]
jmp 0x1400ccca4
cmp al, 2
jne 0x1400ccc28
mov rdx, qword [0x14012bc60]
test rdx, rdx
jne 0x1400ccca4
lea ecx, [rdx + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x1400ccc02
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
lea r14, [0x1400ef7d4]
test eax, eax
lea rcx, [0x1400ef7c8]
mov rdx, r14
cmovne rdx, rcx
jmp 0x1400cccab
xor edx, edx
call fcn.1400071d0
mov ecx, 0xffffffff
lea r14, [0x1400ef7d4]
cmp rax, rcx
mov rdx, r14
cmovne rdx, qword [0x14012bc58]
jmp 0x1400cccab
lea rdx, [0x140129f30]
jmp 0x1400ccca4
sub ecx, 1
je 0x1400ccca1
sub ecx, 1
je 0x1400ccc9a
sub ecx, 2
je 0x1400ccc69
sub ecx, 1
je 0x1400ccc5b
cmp ecx, 1
je 0x1400ccccc
mov rcx, qword [rbx]
call fcn.140005bc0
mov rdx, rax
jmp 0x1400ccca4
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1400ccc4e
mov rdx, qword [rdx]
jmp 0x1400ccca4
mov rcx, qword [rbx]
cmp byte [rcx + 0x23], dil
jne 0x1400ccc76
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400ccc81
mov rdx, qword [rcx]
jmp 0x1400ccca4
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001740
mov rcx, rax
call fcn.140005bc0
mov rdx, rax
jmp 0x1400ccca4
cvttsd2si rdx, qword [rbx]
jmp 0x1400ccca4
mov rdx, qword [rbx]
lea r14, [0x1400ef7d4]
cmp rdx, 0x10000
jb 0x1400cccd3
mov rcx, qword [rsp + 0x70]
mov r8d, esi
add rcx, 0x10
test bpl, bpl
je 0x1400cccd7
call fcn.1400cb9c0
jmp 0x1400cccdc
lea r14, [0x1400ef7d4]
mov ecx, edi
jmp 0x1400ccce2
call fcn.1400cbde0
mov ecx, eax
test eax, eax
jne 0x1400cccfa
test esi, esi
je 0x1400cccfa
mov rax, qword [0x140124200]
test byte [rax + 0x140], 1
jne 0x1400ccf1b
mov eax, ecx
mov qword [r15], rax
mov eax, 1
jmp 0x1400cd3fa
test esi, esi
jne 0x1400ccd72
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 0x1400ccd36
mov rbx, rax
mov qword [r15], rax
lea eax, [rsi + 1]
jmp 0x1400cd3fa
mov rax, qword [r12 + 0x40]
mov ecx, dword [r12 + 0x1c]
test rax, rax
je 0x1400ccd5e
sub rax, qword [r12 + 0x48]
sub rax, rcx
lea rbx, [rdx + rax]
mov eax, 1
mov qword [r15], rbx
jmp 0x1400cd3fa
mov rax, rcx
lea rbx, [rdx + rcx]
mov qword [r15], rbx
mov eax, 1
jmp 0x1400cd3fa
cmp esi, 2
jg case.0x1400cc47b.69
mov rdx, qword [r12 + 8]
mov ecx, dword [rdx + 0x10]
sub ecx, 1
je 0x1400ccdf5
sub ecx, 1
je 0x1400ccdee
sub ecx, 2
je 0x1400ccdbd
sub ecx, 1
je 0x1400ccda1
cmp ecx, 1
jne 0x1400ccdb0
mov rbp, rdi
jmp 0x1400ccdf8
mov rbp, qword [rdx + 8]
test rbp, rbp
je 0x1400ccdb0
mov rbp, qword [rbp]
jmp 0x1400ccdf8
mov rcx, qword [rdx]
call fcn.140005bc0
mov rbp, rax
jmp 0x1400ccdf8
mov rcx, qword [rdx]
cmp byte [rcx + 0x23], dil
jne 0x1400ccdca
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400ccdd5
mov rbp, qword [rcx]
jmp 0x1400ccdf8
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001740
mov rcx, rax
call fcn.140005bc0
mov rbp, rax
jmp 0x1400ccdf8
cvttsd2si rbp, qword [rdx]
jmp 0x1400ccdf8
mov rbp, qword [rdx]
cmp esi, 2
jne 0x1400cce7f
mov rsi, qword [r12 + 0x10]
mov ecx, dword [rsi + 0x10]
sub ecx, 1
je 0x1400cce7a
sub ecx, 1
je 0x1400cce73
sub ecx, 2
je 0x1400cce42
sub ecx, 1
je 0x1400cce27
cmp ecx, 1
jne 0x1400cce35
mov rsi, rdi
jmp 0x1400cce8c
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400cce35
mov rsi, qword [rax]
jmp 0x1400cce8c
mov rcx, qword [rsi]
call fcn.140005bc0
mov rsi, rax
jmp 0x1400cce8c
mov rcx, qword [rsi]
cmp byte [rcx + 0x23], dil
jne 0x1400cce4f
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400cce5a
mov rsi, qword [rcx]
jmp 0x1400cce8c
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001740
mov rcx, rax
call fcn.140005bc0
mov rsi, rax
jmp 0x1400cce8c
cvttsd2si rsi, qword [rsi]
jmp 0x1400cce8c
mov rsi, qword [rsi]
jmp 0x1400cce8c
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 0x1400ccec3
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 0x1400cceda
test r8d, r8d
je 0x1400ccedf
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 0x1400cd153
mov rax, qword [0x140124200]
test byte [rax + 0x140], 1
je 0x1400cd158
lea r14, [0x1400ef7d4]
mov rax, qword [0x140124200]
mov dword [r15 + 0x10], edi
test byte [rax + 0x140], 1
je 0x1400cc907
mov rcx, qword [0x14012b690]
lea r8, str.FileObject
mov r9, r14
lea rdx, [0x14010620c]
call fcn.14005f480
mov eax, 1
jmp 0x1400cd3fa
test esi, esi
jne 0x1400ccfaf
mov r12, qword [rsp + 0x70]
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + reloc.WSOCK32.dll_getservbyport]
cmp qword [r12 + 0x40], 0
mov rdi, rax
jne 0x1400ccf9f
cmp dword [r12 + 0x1c], esi
je 0x1400ccf9f
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 0x1400ccfa2
mov rcx, rdi
mov qword [r15], rcx
mov eax, 1
jmp 0x1400cd3fa
cmp esi, 1
jne case.0x1400cc47b.69
mov rsi, qword [r12 + 8]
mov ecx, dword [rsi + 0x10]
sub ecx, 1
je 0x1400cd031
sub ecx, 1
je 0x1400cd02a
sub ecx, 2
je 0x1400ccff9
sub ecx, 1
je 0x1400ccfde
cmp ecx, 1
jne 0x1400ccfec
mov rsi, rdi
jmp 0x1400cd034
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400ccfec
mov rsi, qword [rax]
jmp 0x1400cd034
mov rcx, qword [rsi]
call fcn.140005bc0
mov rsi, rax
jmp 0x1400cd034
mov rcx, qword [rsi]
cmp byte [rcx + 0x23], dil
jne 0x1400cd006
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400cd011
mov rsi, qword [rcx]
jmp 0x1400cd034
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001740
mov rcx, rax
call fcn.140005bc0
mov rsi, rax
jmp 0x1400cd034
cvttsd2si rsi, qword [rsi]
jmp 0x1400cd034
mov rsi, qword [rsi]
mov r12, qword [rsp + 0x70]
mov rdx, qword [r12 + 0x40]
mov r8d, dword [r12 + 0x1c]
test rdx, rdx
je 0x1400cd06b
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 0x1400cd082
test r8d, r8d
je 0x1400cd087
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 0x1400cd0f7
mov rcx, qword [r12 + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400cd0f7
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 + reloc.WSOCK32.dll_getservbyport]
mov qword [r15], rax
cmp rax, 0xffffffffffffffff
jne 0x1400cc907
lea r14, [0x1400ef7d4]
mov qword [r15], r14
jmp 0x1400ccf1b
test esi, esi
jne 0x1400cc907
mov r12, qword [rsp + 0x70]
mov rcx, qword [r12 + 0x40]
test rcx, rcx
je 0x1400cd12c
mov eax, dword [r12 + 0x1c]
add rax, qword [r12 + 0x48]
cmp rcx, rax
jb 0x1400cd158
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + 0x30]
mov rsi, rax
test rax, rax
js 0x1400cd153
mov rax, qword [r12 + 0x10]
lea rcx, [r12 + 0x10]
call qword [rax + reloc.WSOCK32.dll_getservbyport]
cmp rsi, rax
jl 0x1400cd158
mov edi, 1
mov qword [r15], rdi
mov eax, 1
jmp 0x1400cd3fa
test esi, esi
jne 0x1400cc907
mov r12, qword [rsp + 0x70]
mov rdx, qword [r12 + 0x40]
mov r8d, dword [r12 + 0x1c]
test rdx, rdx
je 0x1400cd1a2
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 0x1400cd1b9
test r8d, r8d
je 0x1400cd1be
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 0x1400cd3fa
test esi, esi
jle 0x1400cd332
mov r10, qword [r12 + 8]
mov edx, dword [r10 + 0x10]
mov ecx, edx
sub ecx, 1
je 0x1400cd264
sub ecx, 1
je 0x1400cd264
sub ecx, 2
je 0x1400cd258
cmp ecx, 1
je 0x1400cd233
mov rcx, r10
mov edx, dword [rcx + 0x10]
test edx, edx
je 0x1400cd2ef
sub edx, 1
je 0x1400cd227
sub edx, 1
je 0x1400cd227
sub edx, 2
je 0x1400cd2db
cmp edx, 1
je 0x1400cd2ef
lea r14, [0x1400ef7d4]
jmp 0x1400cd2f2
cmp qword [r10 + 8], rdi
je 0x1400cd23e
mov rcx, r10
jmp 0x1400cd26d
mov rcx, qword [r10]
mov r9d, 1
mov edx, r9d
mov dword [rsp + 0x20], edi
xor r8d, r8d
call fcn.1400ce2a0
jmp 0x1400cd262
mov rcx, qword [r10]
xor edx, edx
call fcn.140031e40
mov edx, eax
mov rcx, qword [r12 + 8]
test edx, edx
je 0x1400cd200
mov edx, dword [rcx + 0x10]
sub edx, 1
je 0x1400cd2b9
sub edx, 1
je 0x1400cd2d4
sub edx, 2
je 0x1400cd2a6
sub edx, 1
je 0x1400cd28e
cmp edx, 1
jne 0x1400cd29c
mov rax, rdi
jmp 0x1400cd2fa
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400cd29c
mov rax, qword [rax]
jmp 0x1400cd2fa
mov rcx, qword [rcx]
call fcn.140005bc0
jmp 0x1400cd2fa
mov rcx, qword [rcx]
cmp byte [rcx + 0x23], dil
jne 0x1400cd2b3
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400cd2be
mov rax, qword [rcx]
jmp 0x1400cd2fa
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001740
mov rcx, rax
call fcn.140005bc0
jmp 0x1400cd2fa
cvttsd2si rax, qword [rcx]
jmp 0x1400cd2fa
mov rcx, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001740
mov r14, rax
jmp 0x1400cd2f2
mov r14, qword [rcx]
mov rcx, r14
call fcn.140035b60
mov rbx, qword [rsp + 0x70]
mov ecx, 0xffffffff
cmp eax, ecx
je 0x1400cd337
and eax, 0x7fffffff
cmove eax, dword [0x14012be18]
cmp dword [rbx + 0x24], eax
je 0x1400cd337
lea rdx, [rbx + 0x28]
mov dword [rbx + 0x24], eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1400cd337
mov byte [rbx + 0x2e], dil
jmp 0x1400cd337
mov rbx, qword [rsp + 0x70]
mov ecx, dword [rbx + 0x24]
cmp ecx, 0x4b0
je 0x1400cd38a
cmp ecx, 0xfde9
je 0x1400cd375
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 0x1400cd3fa
lea rbx, str.UTF_8
mov dword [r15 + 0x10], edi
mov qword [r15], rbx
mov eax, 1
jmp 0x1400cd3fa
lea rbx, str.UTF_16
mov dword [r15 + 0x10], edi
mov qword [r15], rbx
mov eax, 1
jmp 0x1400cd3fa
test esi, esi
jne 0x1400cd3e3
mov r12, qword [rsp + 0x70]
mov r8d, dword [r12 + 0x1c]
test r8d, r8d
je 0x1400cd3d0
cmp qword [r12 + 0x40], rdi
jne 0x1400cd3d0
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.WSOCK32.dll_recv]
lea r14, [0x1400ef7d4]
mov dword [r15 + 0x10], edi
mov qword [r15], r14
mov eax, 1
jmp 0x1400cd3fa
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