Function at 0x1400cbfd0
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 0x1400cd212
mov r12, qword [rsp + 0x90]
dec esi
mov r14, qword [r12]
mov r8d, dword [r14 + 0x10]
test r8d, r8d
je 0x1400cc057
sub r8d, 1
je 0x1400cc03a
sub r8d, 1
je 0x1400cc03a
sub r8d, 2
je 0x1400cc043
cmp r8d, 1
je 0x1400cc057
lea r14, [0x1400ef7e4]
jmp 0x1400cc05a
mov rcx, qword [r14]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001780
mov r14, rax
jmp 0x1400cc05a
mov r14, qword [r14]
mov r8, rbx
lea rdx, [0x14010aad0]
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 0x1400cc0ac
cmp word [r14 + 8], di
lea rcx, [r14 + 8]
jne 0x1400cc08b
lea ebp, [rdx - 1]
jmp 0x1400cc216
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 0x1400cc211
mov r8d, 5
lea rdx, [0x140112c50]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1400cc0f9
cmp word [r14 + 0xa], di
lea rcx, [r14 + 0xa]
jne 0x1400cc0dd
mov edx, 2
mov ebp, edx
jmp 0x1400cc216
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 0x1400cc211
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 0x1400cc115
lea ebp, [rax + 6]
jmp 0x1400cc211
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 0x1400cc131
lea ebp, [rax + 6]
jmp 0x1400cc211
lea rdx, [0x1401079d0]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400cc20c
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 0x1400cc165
lea ebp, [rax + 9]
jmp 0x1400cc211
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 0x1400cc181
lea ebp, [rax + 0xa]
jmp 0x1400cc211
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 0x1400cc19a
lea ebp, [rax + 0xb]
jmp 0x1400cc211
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 0x1400cc1b3
lea ebp, [rax + 0xc]
jmp 0x1400cc211
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 0x1400cc1cc
lea ebp, [rax + 0xd]
jmp 0x1400cc211
lea rdx, [0x140112cb0]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400cc20c
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 0x1400cc20c
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 0x1400cd212
mov ebp, 8
mov edx, 2
test r13b, 2
jne 0x1400cc232
cmp ebp, 7
jb 0x1400cc777
and r13d, 1
cmp esi, r13d
jne 0x1400cc777
lea eax, [rbp - 1]
mov dword [r15 + 0x10], 1
cmp eax, 0xc
ja case.0x1400cc2fb.69
cdqe
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0xcd234]
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 0x1400cc2ab
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
je 0x1400cc2ab
and r14d, 0xffffffdf
cmp r14w, 0x55
jne 0x1400cc2bb
add rbp, 2
mov qword [rsp + 0x38], rbp
movzx ebp, word [rbp]
test ebp, 0xffffff80
jne 0x1400cc2db
mov edx, 2
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
je 0x1400cc2db
and ebp, 0xffffffdf
add ebp, 0xffffffbd
cmp ebp, 0x10
ja case.0x1400cc2fb.69
lea rcx, [0x140000000]
movsxd rax, ebp
mov edx, dword [rcx + rax*4 + 0xcd268]
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 0x1400cc33b
mov ebp, 2
mov ebx, ebp
jmp 0x1400cc340
mov ebx, 1
jmp 0x1400cc33b
mov ebx, 8
jmp 0x1400cc33b
mov ebx, 8
mov r13d, 1
mov ebp, 2
cmp byte [rsp + 0x98], dil
je 0x1400cc40c
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x30]
add rcx, 0x10
mov qword [rsp + 0x30], rdi
mov r8d, ebx
call fcn.1400cb810
test eax, eax
je case.0x1400cc2fb.69
test r13d, r13d
je 0x1400cc3ae
cmp ebx, 4
jne 0x1400cc395
movss xmm0, dword [rsp + 0x30]
lea eax, [rbx - 3]
cvtps2pd xmm0, xmm0
mov dword [r15 + 0x10], ebp
movsd qword [r15], xmm0
jmp 0x1400cd214
movsd xmm0, qword [rsp + 0x30]
mov eax, 1
movsd qword [r15], xmm0
mov dword [r15 + 0x10], ebp
jmp 0x1400cd214
cmp r14w, 0x55
je 0x1400cc3fa
sub ebx, 1
je 0x1400cc3e7
sub ebx, 1
je 0x1400cc3d4
cmp ebx, 2
jne 0x1400cc3fa
movsxd rax, dword [rsp + 0x30]
mov qword [r15], rax
lea eax, [rbx - 1]
jmp 0x1400cd214
movsx rax, word [rsp + 0x30]
mov qword [r15], rax
mov eax, 1
jmp 0x1400cd214
movsx rax, byte [rsp + 0x30]
mov qword [r15], rax
mov eax, 1
jmp 0x1400cd214
mov rax, qword [rsp + 0x30]
mov qword [r15], rax
mov eax, 1
jmp 0x1400cd214
cmp esi, 1
jne case.0x1400cc2fb.69
mov rcx, qword [r12 + 8]
test r13d, r13d
je 0x1400cc498
mov edx, dword [rcx + 0x10]
sub edx, esi
je 0x1400cc46b
sub edx, esi
je 0x1400cc465
sub edx, 2
je 0x1400cc459
sub edx, esi
je 0x1400cc43c
cmp edx, esi
jne 0x1400cc44f
xorps xmm0, xmm0
jmp 0x1400cc473
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400cc44f
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rax]
jmp 0x1400cc473
mov rcx, qword [rcx]
call fcn.140031ea0
jmp 0x1400cc473
mov rcx, qword [rcx]
xor edx, edx
call fcn.140031fe0
jmp 0x1400cc473
movsd xmm0, qword [rcx]
jmp 0x1400cc473
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rcx]
movsd qword [rsp + 0x30], xmm0
lea r14, [0x1400ef7e4]
cmp ebx, 4
jne 0x1400cc58d
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x30], xmm0
jmp 0x1400cc58d
cmp ebx, 8
jne 0x1400cc515
cmp r14w, 0x55
jne 0x1400cc515
mov edx, dword [rcx + 0x10]
lea eax, [rdx - 1]
cmp eax, 1
jbe 0x1400cc515
test edx, edx
je 0x1400cc501
sub edx, 1
je 0x1400cc4c7
sub edx, 1
je 0x1400cc4c7
sub edx, 2
je 0x1400cc4de
cmp edx, 1
je 0x1400cc501
lea r14, [0x1400ef7e4]
mov rax, r14
mov rcx, rax
call fcn.140061d00
jmp 0x1400cc588
mov rcx, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001780
mov rcx, rax
lea r14, [0x1400ef7e4]
call fcn.140061d00
jmp 0x1400cc588
mov rax, qword [rcx]
lea r14, [0x1400ef7e4]
mov rcx, rax
call fcn.140061d00
jmp 0x1400cc588
mov edx, dword [rcx + 0x10]
sub edx, 1
je 0x1400cc57e
sub edx, 1
je 0x1400cc577
sub edx, 2
je 0x1400cc54e
sub edx, 1
je 0x1400cc536
cmp edx, 1
jne 0x1400cc544
mov rax, rdi
jmp 0x1400cc581
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400cc544
mov rax, qword [rax]
jmp 0x1400cc581
mov rcx, qword [rcx]
call fcn.140005c40
jmp 0x1400cc581
mov rcx, qword [rcx]
cmp byte [rcx + 0x23], dil
jne 0x1400cc55b
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
jne 0x1400cc57e
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001780
mov rcx, rax
call fcn.140005c40
jmp 0x1400cc581
cvttsd2si rax, qword [rcx]
jmp 0x1400cc581
mov rax, qword [rcx]
lea r14, [0x1400ef7e4]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x30]
add rcx, 0x10
mov r8d, ebx
call fcn.1400cbc60
mov ecx, eax
test eax, eax
jne 0x1400ccdea
mov rax, qword [0x140124200]
test byte [rax + 0x140], 1
jne 0x1400ccd6c
mov qword [r15], rcx
mov eax, 1
jmp 0x1400cd214
cmp esi, 1
jg case.0x1400cc2fb.69
test esi, esi
je 0x1400cc69a
mov rbx, qword [r12 + 8]
mov ecx, dword [rbx + 0x10]
sub ecx, 1
je 0x1400cc690
sub ecx, 1
je 0x1400cc681
sub ecx, 2
je 0x1400cc640
sub ecx, 1
je 0x1400cc615
cmp ecx, 1
jne 0x1400cc62b
mov r14, qword [rsp + 0x70]
mov rbx, rdi
jmp 0x1400cc710
mov rax, qword [rbx + 8]
test rax, rax
je 0x1400cc62b
mov rbx, qword [rax]
mov r14, qword [rsp + 0x70]
jmp 0x1400cc710
mov rcx, qword [rbx]
call fcn.140005c40
mov r14, qword [rsp + 0x70]
mov rbx, rax
jmp 0x1400cc710
mov rcx, qword [rbx]
cmp byte [rcx + 0x23], dil
jne 0x1400cc64d
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400cc660
mov rbx, qword [rcx]
mov r14, qword [rsp + 0x70]
jmp 0x1400cc710
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001780
mov rcx, rax
call fcn.140005c40
mov r14, qword [rsp + 0x70]
mov rbx, rax
jmp 0x1400cc710
cvttsd2si rbx, qword [rbx]
mov r14, qword [rsp + 0x70]
jmp 0x1400cc710
mov rbx, qword [rbx]
mov r14, qword [rsp + 0x70]
jmp 0x1400cc710
mov r14, qword [rsp + 0x70]
mov rax, qword [r14 + 0x10]
lea rcx, [r14 + 0x10]
call qword [rax + reloc.WSOCK32.dll_getservbyport]
mov rbp, rax
cmp qword [r14 + 0x40], rdi
jne 0x1400cc6d3
cmp dword [r14 + 0x1c], edi
je 0x1400cc6d3
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 0x1400cc6d6
mov rsi, rbp
mov rax, qword [r14 + 0x10]
lea rcx, [r14 + 0x10]
call qword [rax + 0x30]
mov rdx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cc6ef
mov rbx, rax
jmp 0x1400cc70c
mov rax, qword [r14 + 0x40]
mov ecx, dword [r14 + 0x1c]
test rax, rax
je 0x1400cc705
sub rax, qword [r14 + 0x48]
sub rax, rcx
jmp 0x1400cc708
mov rax, rcx
lea rbx, [rax + rdx]
sub esi, ebx
mov ebx, esi
mov ecx, 0xffffffff
cmp ebx, ecx
je case.0x1400cc2fb.69
mov esi, ebx
cmp rsi, 0xff
ja 0x1400cc72e
mov rax, qword [r15 + 8]
jmp 0x1400cc74d
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.0x1400cc2fb.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.1400cb3e0
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 0x1400cd214
test esi, esi
jne case.0x1400cc2fb.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.0x1400cc2fb.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 0x1400cc75e
cmp esi, 1
jg case.0x1400cc2fb.69
mov r14d, edi
mov ebx, edi
test esi, esi
je 0x1400cc87b
mov rdx, qword [r15 + 8]
mov rcx, qword [r12 + 8]
call fcn.140091c20
mov rbx, qword [r12 + 8]
mov rsi, rax
cmp dword [rbx + 0x10], 4
jne 0x1400cc84f
mov rbx, qword [rbx]
movzx edx, byte [rbx + 0x23]
test dl, dl
jne 0x1400cc80f
mov rax, qword [rbx + 0x10]
movzx ecx, byte [rax + 0x21]
jmp 0x1400cc813
movzx ecx, byte [rbx + 0x21]
test cl, 1
jne 0x1400cc84f
test dl, dl
jne 0x1400cc820
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 1
jne 0x1400cc840
test byte [rbx + 0x21], 8
je 0x1400cc834
mov rcx, rbx
call fcn.140001620
add rbx, 0x10
mov rbx, qword [rbx]
shr rbx, 1
jmp 0x1400cc85f
lea rbx, [0x14012d5d0]
mov rbx, qword [rbx]
shr rbx, 1
jmp 0x1400cc85f
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], di
jne 0x1400cc856
mov r12, qword [rsp + 0x70]
mov r8d, ebx
add r12, 0x10
mov rdx, rsi
mov rcx, r12
call fcn.1400cb9c0
mov r14d, eax
jmp 0x1400cc884
mov r12, qword [rsp + 0x70]
add r12, 0x10
cmp ebp, 4
jne 0x1400cc8ac
test r14d, r14d
jne 0x1400cc892
test ebx, ebx
jne 0x1400cc8b5
mov r8d, 1
lea rdx, [0x140110214]
mov rcx, r12
inc ebx
call fcn.1400cb9c0
add r14d, eax
test r14d, r14d
jne 0x1400cc8c9
test ebx, ebx
je 0x1400cc8c9
mov rax, qword [0x140124200]
test byte [rax + 0x140], 1
jne case.0x1400cc2fb.69
mov eax, r14d
mov qword [r15], rax
mov eax, 1
jmp 0x1400cd214
cmp esi, 2
jne case.0x1400cc2fb.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 0x1400cc975
sub ecx, 1
je 0x1400cc96e
sub ecx, 2
je 0x1400cc93d
sub ecx, 1
je 0x1400cc922
cmp ecx, 1
jne 0x1400cc930
mov rsi, rdi
jmp 0x1400cc978
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400cc930
mov rsi, qword [rax]
jmp 0x1400cc978
mov rcx, qword [rsi]
call fcn.140005c40
mov rsi, rax
jmp 0x1400cc978
mov rcx, qword [rsi]
cmp byte [rcx + 0x23], dil
jne 0x1400cc94a
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400cc955
mov rsi, qword [rcx]
jmp 0x1400cc978
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001780
mov rcx, rax
call fcn.140005c40
mov rsi, rax
jmp 0x1400cc978
cvttsd2si rsi, qword [rsi]
jmp 0x1400cc978
mov rsi, qword [rsi]
mov ecx, dword [rbx + 0x10]
cmp ecx, 4
jne 0x1400ccaa1
mov rcx, qword [rbx]
cmp byte [rcx + 0x23], dil
jne 0x1400cc993
mov rax, qword [rcx + 0x10]
jmp 0x1400cc996
mov rax, rcx
cmp byte [rax + 0x23], 2
mov edx, dword [0x14012bc70]
je 0x1400cc9a6
mov rdx, qword [rax + 0x18]
mov eax, esi
cmp rax, rdx
jbe 0x1400cc9f2
test bpl, bpl
je 0x1400cc9d1
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.1400d3350
test eax, eax
jne 0x1400cc9f2
mov rax, qword [0x140124200]
test byte [rax + 0x140], 1
jne case.0x1400cc2fb.69
mov qword [r15], rdi
mov eax, 1
jmp 0x1400cd214
mov rbx, qword [rbx]
cmp byte [rbx + 0x23], dil
jne 0x1400cc9ff
mov rbx, qword [rbx + 0x10]
test byte [rbx + 0x21], 8
je 0x1400cca0d
mov rcx, rbx
call fcn.140001620
movzx eax, byte [rbx + 0x23]
cmp al, 1
jne 0x1400cca2c
test byte [rbx + 0x21], 4
je 0x1400cca23
mov rdx, rbx
call fcn.140060a30
mov rdx, qword [rbx + 8]
jmp 0x1400ccb10
cmp al, 2
jne 0x1400cca98
mov rdx, qword [0x14012bc60]
test rdx, rdx
jne 0x1400ccb10
lea ecx, [rdx + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x1400cca72
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
lea r14, [0x1400ef7e4]
test eax, eax
lea rcx, [0x1400ef7d8]
mov rdx, r14
cmovne rdx, rcx
jmp 0x1400ccb17
xor edx, edx
call fcn.140007250
mov ecx, 0xffffffff
lea r14, [0x1400ef7e4]
cmp rax, rcx
mov rdx, r14
cmovne rdx, qword [0x14012bc58]
jmp 0x1400ccb17
lea rdx, [0x140129f30]
jmp 0x1400ccb10
sub ecx, 1
je 0x1400ccb0d
sub ecx, 1
je 0x1400ccb06
sub ecx, 2
je 0x1400ccad5
sub ecx, 1
je 0x1400ccac7
cmp ecx, 1
je 0x1400ccb38
mov rcx, qword [rbx]
call fcn.140005c40
mov rdx, rax
jmp 0x1400ccb10
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1400ccaba
mov rdx, qword [rdx]
jmp 0x1400ccb10
mov rcx, qword [rbx]
cmp byte [rcx + 0x23], dil
jne 0x1400ccae2
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400ccaed
mov rdx, qword [rcx]
jmp 0x1400ccb10
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001780
mov rcx, rax
call fcn.140005c40
mov rdx, rax
jmp 0x1400ccb10
cvttsd2si rdx, qword [rbx]
jmp 0x1400ccb10
mov rdx, qword [rbx]
lea r14, [0x1400ef7e4]
cmp rdx, 0x10000
jb 0x1400ccb3f
mov rcx, qword [rsp + 0x70]
mov r8d, esi
add rcx, 0x10
test bpl, bpl
je 0x1400ccb43
call fcn.1400cb810
jmp 0x1400ccb48
lea r14, [0x1400ef7e4]
mov ecx, edi
jmp 0x1400ccb4e
call fcn.1400cbc60
mov ecx, eax
test eax, eax
jne 0x1400ccb66
test esi, esi
je 0x1400ccb66
mov rax, qword [0x140124200]
test byte [rax + 0x140], 1
jne 0x1400ccd6c
mov eax, ecx
mov qword [r15], rax
mov eax, 1
jmp 0x1400cd214
test esi, esi
jne 0x1400ccbd8
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 0x1400ccba0
mov rbx, rax
mov qword [r15], rax
lea eax, [rsi + 1]
jmp 0x1400cd214
mov rax, qword [rbx + 0x40]
mov ecx, dword [rbx + 0x1c]
test rax, rax
je 0x1400ccbc4
sub rax, qword [rbx + 0x48]
sub rax, rcx
lea rbx, [rdx + rax]
mov eax, 1
mov qword [r15], rbx
jmp 0x1400cd214
mov rax, rcx
lea rbx, [rdx + rcx]
mov qword [r15], rbx
mov eax, 1
jmp 0x1400cd214
cmp esi, 2
jg case.0x1400cc2fb.69
mov rdx, qword [r12 + 8]
mov ecx, dword [rdx + 0x10]
sub ecx, 1
je 0x1400ccc5b
sub ecx, 1
je 0x1400ccc54
sub ecx, 2
je 0x1400ccc23
sub ecx, 1
je 0x1400ccc07
cmp ecx, 1
jne 0x1400ccc16
mov rbp, rdi
jmp 0x1400ccc5e
mov rbp, qword [rdx + 8]
test rbp, rbp
je 0x1400ccc16
mov rbp, qword [rbp]
jmp 0x1400ccc5e
mov rcx, qword [rdx]
call fcn.140005c40
mov rbp, rax
jmp 0x1400ccc5e
mov rcx, qword [rdx]
cmp byte [rcx + 0x23], dil
jne 0x1400ccc30
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400ccc3b
mov rbp, qword [rcx]
jmp 0x1400ccc5e
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001780
mov rcx, rax
call fcn.140005c40
mov rbp, rax
jmp 0x1400ccc5e
cvttsd2si rbp, qword [rdx]
jmp 0x1400ccc5e
mov rbp, qword [rdx]
cmp esi, 2
jne 0x1400ccce1
mov rsi, qword [r12 + 0x10]
mov ecx, dword [rsi + 0x10]
sub ecx, 1
je 0x1400cccdc
sub ecx, 1
je 0x1400cccd5
sub ecx, 2
je 0x1400ccca4
sub ecx, 1
je 0x1400ccc89
cmp ecx, 1
jne 0x1400ccc97
mov rsi, rdi
jmp 0x1400cccee
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400ccc97
mov rsi, qword [rax]
jmp 0x1400cccee
mov rcx, qword [rsi]
call fcn.140005c40
mov rsi, rax
jmp 0x1400cccee
mov rcx, qword [rsi]
cmp byte [rcx + 0x23], dil
jne 0x1400cccb1
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400cccbc
mov rsi, qword [rcx]
jmp 0x1400cccee
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001780
mov rcx, rax
call fcn.140005c40
mov rsi, rax
jmp 0x1400cccee
cvttsd2si rsi, qword [rsi]
jmp 0x1400cccee
mov rsi, qword [rsi]
jmp 0x1400cccee
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 0x1400ccd21
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 0x1400ccd33
test r8d, r8d
je 0x1400ccd36
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 0x1400ccf75
mov rax, qword [0x140124200]
test byte [rax + 0x140], 1
je 0x1400ccf7a
lea r14, [0x1400ef7e4]
mov rax, qword [0x140124200]
mov dword [r15 + 0x10], edi
test byte [rax + 0x140], 1
je 0x1400cc777
mov rcx, qword [0x14012b690]
lea r8, str.FileObject
mov r9, r14
lea rdx, [0x14010621c]
call fcn.14005f580
mov eax, 1
jmp 0x1400cd214
test esi, esi
jne 0x1400ccdf7
mov rbx, qword [rsp + 0x70]
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
call qword [rax + reloc.WSOCK32.dll_getservbyport]
cmp qword [rbx + 0x40], 0
mov rdi, rax
jne 0x1400ccde7
cmp dword [rbx + 0x1c], esi
je 0x1400ccde7
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 0x1400ccdea
mov rcx, rdi
mov qword [r15], rcx
mov eax, 1
jmp 0x1400cd214
cmp esi, 1
jne case.0x1400cc2fb.69
mov rsi, qword [r12 + 8]
mov rbx, qword [rsp + 0x70]
add rbx, 0x10
mov ecx, dword [rsi + 0x10]
sub ecx, 1
je 0x1400cce82
sub ecx, 1
je 0x1400cce7b
sub ecx, 2
je 0x1400cce4a
sub ecx, 1
je 0x1400cce2f
cmp ecx, 1
jne 0x1400cce3d
mov rsi, rdi
jmp 0x1400cce85
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400cce3d
mov rsi, qword [rax]
jmp 0x1400cce85
mov rcx, qword [rsi]
call fcn.140005c40
mov rsi, rax
jmp 0x1400cce85
mov rcx, qword [rsi]
cmp byte [rcx + 0x23], dil
jne 0x1400cce57
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400cce62
mov rsi, qword [rcx]
jmp 0x1400cce85
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001780
mov rcx, rax
call fcn.140005c40
mov rsi, rax
jmp 0x1400cce85
cvttsd2si rsi, qword [rsi]
jmp 0x1400cce85
mov rsi, qword [rsi]
mov rdx, qword [rbx + 0x30]
mov r8d, dword [rbx + 0xc]
test rdx, rdx
je 0x1400cceaf
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 0x1400ccec1
test r8d, r8d
je 0x1400ccec4
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 0x1400ccf21
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400ccf21
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 + reloc.WSOCK32.dll_getservbyport]
mov qword [r15], rax
cmp rax, 0xffffffffffffffff
jne 0x1400cc777
lea r14, [0x1400ef7e4]
mov qword [r15], r14
jmp 0x1400ccd6c
test esi, esi
jne 0x1400cc777
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x1400ccf52
mov eax, dword [rbx + 0x1c]
add rax, qword [rbx + 0x48]
cmp rcx, rax
jb 0x1400ccf7a
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
call qword [rax + 0x30]
mov rsi, rax
test rax, rax
js 0x1400ccf75
mov rax, qword [rbx + 0x10]
lea rcx, [rbx + 0x10]
call qword [rax + reloc.WSOCK32.dll_getservbyport]
cmp rsi, rax
jl 0x1400ccf7a
mov edi, 1
mov qword [r15], rdi
mov eax, 1
jmp 0x1400cd214
test esi, esi
jne 0x1400cc777
mov rbx, qword [rsp + 0x70]
mov rdx, qword [rbx + 0x40]
mov r8d, dword [rbx + 0x1c]
test rdx, rdx
je 0x1400ccfd2
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 0x1400cd214
test r8d, r8d
je 0x1400ccfe9
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 0x1400cd214
test esi, esi
jle 0x1400cd15a
mov r10, qword [r12 + 8]
mov edx, dword [r10 + 0x10]
mov ecx, edx
sub ecx, 1
je 0x1400cd08c
sub ecx, 1
je 0x1400cd08c
sub ecx, 2
je 0x1400cd080
cmp ecx, 1
je 0x1400cd05b
mov rcx, r10
mov edx, dword [rcx + 0x10]
test edx, edx
je 0x1400cd117
sub edx, 1
je 0x1400cd04f
sub edx, 1
je 0x1400cd04f
sub edx, 2
je 0x1400cd103
cmp edx, 1
je 0x1400cd117
lea r14, [0x1400ef7e4]
jmp 0x1400cd11a
cmp qword [r10 + 8], rdi
je 0x1400cd066
mov rcx, r10
jmp 0x1400cd095
mov rcx, qword [r10]
mov r9d, 1
mov edx, r9d
mov dword [rsp + 0x20], edi
xor r8d, r8d
call fcn.1400ce0c0
jmp 0x1400cd08a
mov rcx, qword [r10]
xor edx, edx
call fcn.140031f40
mov edx, eax
mov rcx, qword [r12 + 8]
test edx, edx
je 0x1400cd028
mov edx, dword [rcx + 0x10]
sub edx, 1
je 0x1400cd0e1
sub edx, 1
je 0x1400cd0fc
sub edx, 2
je 0x1400cd0ce
sub edx, 1
je 0x1400cd0b6
cmp edx, 1
jne 0x1400cd0c4
mov rax, rdi
jmp 0x1400cd122
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400cd0c4
mov rax, qword [rax]
jmp 0x1400cd122
mov rcx, qword [rcx]
call fcn.140005c40
jmp 0x1400cd122
mov rcx, qword [rcx]
cmp byte [rcx + 0x23], dil
jne 0x1400cd0db
mov rcx, qword [rcx + 0x10]
test byte [rcx + 0x21], 0x10
je 0x1400cd0e6
mov rax, qword [rcx]
jmp 0x1400cd122
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001780
mov rcx, rax
call fcn.140005c40
jmp 0x1400cd122
cvttsd2si rax, qword [rcx]
jmp 0x1400cd122
mov rcx, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001780
mov r14, rax
jmp 0x1400cd11a
mov r14, qword [rcx]
mov rcx, r14
call fcn.140035c60
mov rbx, qword [rsp + 0x70]
mov ecx, 0xffffffff
cmp eax, ecx
je 0x1400cd15f
and eax, 0x7fffffff
cmove eax, dword [0x14012be18]
cmp dword [rbx + 0x24], eax
je 0x1400cd15f
lea rdx, [rbx + 0x28]
mov dword [rbx + 0x24], eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1400cd15f
mov byte [rbx + 0x2e], dil
jmp 0x1400cd15f
mov rbx, qword [rsp + 0x70]
mov ecx, dword [rbx + 0x24]
cmp ecx, 0x4b0
je 0x1400cd1af
cmp ecx, 0xfde9
je 0x1400cd19a
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 0x1400cd214
lea rbx, [0x140108208]
mov dword [r15 + 0x10], edi
mov qword [r15], rbx
mov eax, 1
jmp 0x1400cd214
lea rbx, str.UTF_16
mov dword [r15 + 0x10], edi
mov qword [r15], rbx
mov eax, 1
jmp 0x1400cd214
test esi, esi
jne 0x1400cd1fd
mov rbx, qword [rsp + 0x70]
mov r8d, dword [rbx + 0x1c]
test r8d, r8d
je 0x1400cd1ee
cmp qword [rbx + 0x40], rdi
jne 0x1400cd1ee
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.WSOCK32.dll_recv]
lea r14, [0x1400ef7e4]
mov dword [r15 + 0x10], edi
mov qword [r15], r14
mov eax, 1
jmp 0x1400cd214
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