Function at 0x14002a410
Capabilities:
Connect socket
Convert ip address from string
Create directory
Download and write a file
Initialize winsock library
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x14007c030]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r15d, edx
mov r14, rcx
mov qword [rbp - 0x18], rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], r12
mov esi, 2
mov r8d, esi
lea rdx, [0x140070e24]
lea rcx, [rbp + 0x50]
call fcn.14000b050
lea rdx, [rbp + 0x50]
mov rcx, r14
call fcn.14001f750
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
movdqa xmm1, xmmword [0x140071340]
movdqu xmmword [rbp + 0x80], xmm1
mov byte [rbp + 0x70], r12b
mov dword [rsp + 0x40], 4
cmp byte [rax], 3
jne 0x14002b99c
mov rdx, qword [rax + 8]
lea rcx, [rbp + 0x70]
call fcn.14001efb0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
lea rbx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae rbx, qword [rbp + 0x70]
mov qword [rbp + 0xc0], rbx
mov dword [rbp + 0xc8], r15d
mov qword [rbp + 0xd0], r12
mov qword [rbp + 0xd8], 0x1000
mov qword [rbp + 0xe0], 0x1000
mov ecx, 0x202
lea rdx, [rbp + 0x1b0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14002a536
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14002a5c8
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
mov qword [rbp + 0xd0], rax
mov word [rbp + 0x108], si
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x10a], ax
lea r8, [rbp + 0x10c]
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x108]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14002a64d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdi, r12
mov qword [rbp + 0xd0], r12
mov byte [rbp + 0xcc], dil
test ebx, ebx
je 0x14002a654
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x14002a61e
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002a619
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b996
call fcn.140035d80
movdqa xmm0, xmmword [0x140071340]
movdqu xmmword [rbp + 0x80], xmm0
mov byte [rbp + 0x70], 0
mov rcx, r14
call fcn.140009fd0
lea rcx, [r14 + 8]
movzx edx, byte [r14]
call fcn.140009b90
nop
jmp 0x14002b966
mov byte [rbp + 0xcc], 1
mov qword [rbp + 0x28], r12
xorps xmm0, xmm0
movups xmmword [rbp + 0xe8], xmm0
mov qword [rbp + 0xf8], r12
mov qword [rbp + 0x100], socket
mov byte [rbp + 0xe8], 0
movups xmmword [rbp + 0x90], xmm0
lea r8, [rbp + 0x28]
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xc0]
call fcn.140030450
nop
cmp qword [rbp + 0x98], 0
je 0x14002b8ac
mov rbx, qword [rbp + 0x28]
test rbx, rbx
je 0x14002b8ac
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140007920
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140007230
nop
lea rdx, [0x14007f578]
lea rcx, [rsp + 0x48]
call fcn.14002bed0
mov rcx, qword [rsp + 0x58]
test al, al
je 0x14002a7ed
cmp rcx, qword [0x14007f588]
jne 0x14002a7ed
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [rbp + 0xd0], r12
mov byte [rbp + 0xcc], 0
lea rcx, [rsp + 0x48]
call fcn.140009fd0
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140009b90
nop
mov rcx, qword [rbp + 0x90]
mov rax, qword [rcx + 8]
mov qword [rax], r12
mov rcx, qword [rcx]
test rcx, rcx
je 0x14002a765
nop dword [rax]
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140035d80
mov rcx, rbx
test rbx, rbx
jne 0x14002a750
mov edx, 0x20
mov rcx, qword [rbp + 0x90]
call fcn.140035d80
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x14002a7be
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002a7b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b996
call fcn.140035d80
movdqa xmm0, xmmword [0x140071340]
movdqu xmmword [rbp + 0x80], xmm0
mov byte [rbp + 0x70], 0
mov rcx, r14
call fcn.140009fd0
lea rcx, [r14 + 8]
movzx edx, byte [r14]
call fcn.140009b90
nop
jmp 0x14002b966
call fcn.140035d80
mov qword [rsp + 0x58], r12
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], r12
mov r8d, 5
lea rdx, str.isdir
lea rcx, [rbp + 0x50]
call fcn.14000b050
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.14001f750
cmp byte [rax], 4
jne 0x14002b9df
xorps xmm0, xmm0
lea rcx, [rbp + 0x50]
cmp byte [rax + 8], 0
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], r12
movups xmmword [rbp + 0x50], xmm0
je 0x14002aeff
mov r8d, inet_ntoa
lea rdx, str.localfolder
call fcn.14000b050
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.14001f750
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
movdqa xmm1, xmmword [0x140071340]
movdqu xmmword [rbp + 0xb0], xmm1
mov byte [rbp + 0xa0], 0
mov dword [rsp + 0x40], 0x103
cmp byte [rax], 3
jne 0x14002ba1b
mov rdx, qword [rax + 8]
lea rcx, [rbp + 0xa0]
call fcn.14001efb0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, str.remotefolder
lea rcx, [rsp + 0x60]
call fcn.14000b050
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14001f750
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movdqa xmm1, xmmword [0x140071340]
movdqu xmmword [rbp + 0x40], xmm1
mov byte [rbp + 0x30], 0
mov dword [rsp + 0x40], 0x8c3
cmp byte [rax], 3
jne 0x14002ba5e
mov rdx, qword [rax + 8]
lea rcx, [rbp + 0x30]
call fcn.14001efb0
nop
mov r13d, 0x6c3
lea rax, [rbp + 0x50]
mov qword [rbp + 0x28], rax
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x50]
call fcn.140008de0
mov rbx, rax
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x108]
call fcn.140008de0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x130]
call fcn.14001df10
nop
lea rcx, [rbp + 0x130]
call fcn.14001e020
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x60]
call fcn.140008de0
mov rsi, rax
mov qword [rbp + 0x28], rax
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140008de0
mov rcx, rax
call fcn.14001b540
mov rbx, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r12d, eax
mov rcx, rbx
call fcn.140035d80
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14002a9f5
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x14002a9f0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002baa7
mov rcx, r8
call fcn.140035d80
xor ebx, ebx
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], recv
mov byte [rsi], bl
test r12d, r12d
jne 0x14002ac2d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [rbp + 0xd0], rbx
mov byte [rbp + 0xcc], bl
mov rdx, qword [rbp + 0x168]
cmp rdx, 0x10
jb 0x14002aa6b
inc rdx
mov rcx, qword [rbp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002aa66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002baad
call fcn.140035d80
movdqa xmm0, xmmword [0x140071340]
movdqa xmmword [rbp + 0x160], xmm0
mov byte [rbp + 0x150], 0
mov rdx, qword [rbp + 0x148]
cmp rdx, 0x10
jb 0x14002aac3
inc rdx
mov rcx, qword [rbp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002aabe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002baad
call fcn.140035d80
mov qword [rbp + 0x140], rbx
mov qword [rbp + 0x148], socket
mov byte [rbp + 0x130], 0
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x14002ab18
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ab12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bab3
call fcn.140035d80
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0x10
jb 0x14002ab5a
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ab54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bab9
call fcn.140035d80
nop
lea rcx, [rsp + 0x48]
call fcn.140009fd0
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140009b90
nop
mov rcx, qword [rbp + 0x90]
mov rax, qword [rcx + 8]
mov qword [rax], rbx
mov rcx, qword [rcx]
test rcx, rcx
je 0x14002aba5
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140035d80
mov rcx, rbx
test rbx, rbx
jne 0x14002ab90
mov edx, 0x20
mov rcx, qword [rbp + 0x90]
call fcn.140035d80
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x14002abfe
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002abf9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002baa1
call fcn.140035d80
movdqa xmm0, xmmword [0x140071340]
movdqu xmmword [rbp + 0x80], xmm0
mov byte [rbp + 0x70], 0
mov rcx, r14
call fcn.140009fd0
lea rcx, [r14 + 8]
movzx edx, byte [r14]
call fcn.140009b90
nop
jmp 0x14002b966
lea r9, [rbp + 0x130]
cmp qword [rbp + 0x148], 0x10
cmovae r9, qword [rbp + 0x130]
mov rbx, qword [rbp + 0x140]
lea rcx, [rbp + 0xe8]
cmp rbx, 0xf
ja 0x14002ac74
mov qword [rbp + 0xf8], rbx
mov r8, rbx
mov rdx, r9
call fcn.140037d00
mov byte [rbp + rbx + 0xe8], 0
jmp 0x14002ac7d
mov rdx, rbx
call fcn.14000b760
nop
mov rdx, qword [rbp + 0x168]
cmp rdx, 0x10
jb 0x14002acbe
inc rdx
mov rcx, qword [rbp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002acb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002baad
call fcn.140035d80
movdqa xmm0, xmmword [0x140071340]
movdqa xmmword [rbp + 0x160], xmm0
mov byte [rbp + 0x150], 0
mov rdx, qword [rbp + 0x148]
cmp rdx, 0x10
jb 0x14002ad16
inc rdx
mov rcx, qword [rbp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ad11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002baad
call fcn.140035d80
xor r12d, r12d
mov qword [rbp + 0x140], r12
mov qword [rbp + 0x148], socket
mov byte [rbp + 0x130], r12b
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x14002ad6e
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ad68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bab3
call fcn.140035d80
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0x10
jb 0x14002adaf
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002adaa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bab9
call fcn.140035d80
mov esi, 2
mov ecx, 3
call fcn.140047bc8
mov rbx, rax
test rax, rax
jne 0x14002af78
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [rbp + 0xd0], r12
mov byte [rbp + 0xcc], bl
lea rcx, [rsp + 0x48]
call fcn.140009fd0
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140009b90
nop
mov rcx, qword [rbp + 0x90]
mov rax, qword [rcx + 8]
mov qword [rax], r12
mov rcx, qword [rcx]
test rcx, rcx
je 0x14002ae35
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140035d80
mov rcx, rbx
test rbx, rbx
jne 0x14002ae20
mov edx, 0x20
mov rcx, qword [rbp + 0x90]
call fcn.140035d80
nop
mov rdx, qword [rbp + 0x100]
cmp rdx, 0x10
jb 0x14002ae89
inc rdx
mov rcx, qword [rbp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ae83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002babf
call fcn.140035d80
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x14002aed0
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002aecb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b996
call fcn.140035d80
movdqa xmm0, xmmword [0x140071340]
movdqu xmmword [rbp + 0x80], xmm0
mov byte [rbp + 0x70], 0
mov rcx, r14
call fcn.140009fd0
lea rcx, [r14 + 8]
movzx edx, byte [r14]
call fcn.140009b90
nop
jmp 0x14002b966
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, str.remotefolder
call fcn.14000b050
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.14001f750
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movdqa xmm1, xmmword [0x140071340]
movdqu xmmword [rbp + 0x40], xmm1
mov byte [rbp + 0x30], 0
mov dword [rsp + 0x40], 0x4003
cmp byte [rax], 3
jne 0x14002bac5
mov rdx, qword [rax + 8]
lea rcx, [rbp + 0x30]
call fcn.14001efb0
nop
mov r13d, 0x3003
movups xmm0, xmmword [rbp + 0x30]
movups xmmword [rbp + 0xe8], xmm0
movups xmm1, xmmword [rbp + 0x40]
movups xmmword [rbp + 0xf8], xmm1
jmp 0x14002adb4
lea rax, [0x140070fcc]
mov rcx, rax
mov rdx, rbx
sub rdx, rax
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14002af90
mov byte [rbx + 2], al
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp + 0xc0]
call fcn.140030480
mov rcx, rbx
call fcn.140046a84
mov rsi, qword [rbp + 0xd0]
mov rdi, qword [rbp + 0xe8]
test r15d, r15d
je 0x14002b77d
movabs r15, 0x8000000000000000
lea rdi, [0x140000000]
mov qword [rsp + 0x40], r12
xorps xmm0, xmm0
movups xmmword [rbp + 0x108], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x108]
lea rcx, [rbp + 0xc0]
call fcn.140030450
nop
cmp qword [rbp + 0x110], 0
je 0x14002b737
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14002b737
mov rdx, rbx
lea rcx, [rbp + 0x108]
call fcn.140007920
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140007230
nop
lea rdx, [0x14007f578]
lea rcx, [rsp + 0x60]
call fcn.14002bed0
mov rcx, qword [rsp + 0x70]
test al, al
je 0x14002b06e
cmp rcx, qword [0x14007f588]
je 0x14002b690
call fcn.140035d80
mov qword [rsp + 0x70], r12
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x48], r12
mov r8d, 6
lea rdx, str.action
lea rcx, [rbp + 0x30]
call fcn.14000b050
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14001f750
lea rdx, str.OPEN
mov rcx, rax
call fcn.14002c3c0
test al, al
je 0x14002b6e7
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], r12
mov r8d, 1
lea rdx, [0x140070ee8]
lea rcx, [rbp + 0xa0]
call fcn.14000b050
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.14001f750
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], recv
mov byte [rbp + 0x50], 0
or r13d, 0x20
mov dword [rsp + 0x40], r13d
cmp byte [rax], 3
jne 0x14002bb96
mov rdx, qword [rax + 8]
lea rcx, [rbp + 0x50]
call fcn.14001efb0
and r13d, 0xffffffdf
or r13d, 0x18
mov dword [rsp + 0x40], r13d
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x48], r12
mov r8d, 1
lea rdx, [0x140070f28]
lea rcx, [rbp + 0x30]
call fcn.14000b050
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14001f750
mov r9, rax
movzx r8d, byte [rax]
cmp r8d, 9
ja case.0x14002b197.0
mov edx, dword [rdi + r8*4 + 0x2bbec]
add rdx, rdi
jmp rdx
add rax, 8
cmp r8b, 6
cmovne rax, r12
mov r12, qword [rax]
jmp 0x14002b1fd
sub r8b, 5
cmp r8b, 1
setbe al
lea rcx, [r9 + 8]
test al, al
cmove rcx, r12
mov r12, qword [rcx]
jmp 0x14002b1fd
add rax, 8
cmp r8b, 7
cmovne rax, r12
xor ecx, ecx
movsd xmm0, qword [rax]
comisd xmm0, xmmword [0x140071328]
jb 0x14002b1f5
subsd xmm0, qword [0x140071328]
comisd xmm0, xmmword [0x140071328]
jae 0x14002b1f5
mov rcx, r15
cvttsd2si r12, xmm0
add r12, rcx
lea rax, [rbp + 0x30]
mov qword [rbp - 0x78], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
xor r13d, r13d
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], r13
lea rdi, [rbp + 0xe8]
cmp qword [rbp + 0x100], 0x10
cmovae rdi, qword [rbp + 0xe8]
mov r15, qword [rbp + 0xf8]
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x14002bb4d
mov qword [rbp + 0x48], recv
cmp r15, 0x10
jae 0x14002b266
mov qword [rbp + 0x40], r15
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0x30], xmm0
jmp 0x14002b2f9
mov rbx, r15
or rbx, 0xf
cmp rbx, rax
jbe 0x14002b285
mov rbx, rax
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x14002b2ac
cmp rbx, 0x16
mov eax, socket
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14002b2ce
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14002bb0e
mov rcx, rax
call fcn.140036024
mov rcx, rax
test rax, rax
je 0x14002bb08
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14002b2dd
test rcx, rcx
je 0x14002b2da
call fcn.140036024
jmp 0x14002b2dd
mov rax, r13
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], rbx
lea r8, [r15 + 1]
mov rdx, rdi
mov rcx, rax
call fcn.140037d00
nop
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x10]
call fcn.140008de0
nop
lea r8, [rbp + 0x30]
mov rdx, rax
lea rcx, [rbp + 0x170]
call fcn.14001df10
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r13
mov qword [rbp + 0xb8], r13
mov r8d, 8
lea rdx, str.override
lea rcx, [rbp + 0xa0]
call fcn.14000b050
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.14001f750
mov rcx, rax
call fcn.14001f420
test eax, eax
jne 0x14002b375
lea rcx, [rbp + 0x170]
call fcn.14001e020
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0xa0]
call fcn.140008de0
mov rdi, rax
mov qword [rbp - 0x80], rax
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140008de0
mov rcx, rax
call fcn.14001b540
mov rbx, rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov rcx, rbx
call fcn.140035d80
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14002b415
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14002b410
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002bb14
mov rcx, r8
call fcn.140035d80
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], recv
mov byte [rdi], 0
mov rbx, r13
mov rcx, qword [rbp + 0xe0]
call fcn.140047bc8
mov rdi, rax
mov ecx, 3
call fcn.140047bc8
mov r13, rax
test rax, rax
je 0x14002bb26
test rdi, rdi
je 0x14002bb26
lea rax, [0x140070fcc]
mov rcx, rax
mov rdx, r13
sub rdx, rax
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14002b470
xor r9d, r9d
lea r8d, [r9 + 2]
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
xor esi, esi
cmp r15, 0xffffffffffffffff
cmovne rsi, r12
xor r12d, r12d
mov dword [rbp + 0x28], r12d
test rsi, rsi
je 0x14002b509
mov r12, qword [rbp + 0xe0]
nop
mov r8, r12
xor edx, edx
mov rcx, rdi
call fcn.1400383c0
xor r9d, r9d
mov r8d, r12d
mov rdx, rdi
mov rcx, qword [rbp + 0xd0]
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002b506
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x28]
mov r8d, eax
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002b506
mov eax, dword [rbp + 0x28]
add rbx, rax
cmp rbx, rsi
jb 0x14002b4b0
xor r12d, r12d
xor r9d, r9d
lea r8d, [r9 + 2]
mov rdx, r13
mov rsi, qword [rbp + 0xd0]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov rcx, r13
call fcn.140046a84
mov rcx, rdi
call fcn.140046a84
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x1a8]
cmp rdx, 0x10
jb 0x14002b57e
inc rdx
mov rcx, qword [rbp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b579
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bb1a
call fcn.140035d80
mov qword [rbp + 0x1a0], r12
mov qword [rbp + 0x1a8], socket
mov byte [rbp + 0x190], 0
mov rdx, qword [rbp + 0x188]
cmp rdx, 0x10
jb 0x14002b5d8
inc rdx
mov rcx, qword [rbp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b5d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bb1a
call fcn.140035d80
mov qword [rbp + 0x180], r12
mov qword [rbp + 0x188], socket
mov byte [rbp + 0x170], 0
mov rdx, qword [rbp + 0x68]
cmp rdx, 0x10
jb 0x14002b62d
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b627
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bb20
call fcn.140035d80
nop
lea rcx, [rsp + 0x60]
call fcn.140009fd0
movzx edx, byte [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140009b90
nop
mov rcx, qword [rbp + 0x108]
mov rax, qword [rcx + 8]
mov qword [rax], r12
mov rcx, qword [rcx]
test rcx, rcx
je 0x14002b675
nop dword [rax]
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140035d80
mov rcx, rbx
test rbx, rbx
jne 0x14002b660
mov edx, 0x20
mov rcx, qword [rbp + 0x108]
call fcn.140035d80
mov r13d, dword [rsp + 0x40]
jmp 0x14002afd2
lea rcx, [rsp + 0x60]
call fcn.140009fd0
movzx edx, byte [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140009b90
nop
mov rcx, qword [rbp + 0x108]
mov rax, qword [rcx + 8]
mov qword [rax], r12
mov rcx, qword [rcx]
test rcx, rcx
je 0x14002b765
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140035d80
mov rcx, rbx
test rbx, rbx
jne 0x14002b6d0
jmp 0x14002b765
lea rcx, [rsp + 0x60]
call fcn.140009fd0
movzx edx, byte [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140009b90
nop
mov rcx, qword [rbp + 0x108]
mov rax, qword [rcx + 8]
mov qword [rax], r12
mov rcx, qword [rcx]
test rcx, rcx
je 0x14002b765
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140035d80
mov rcx, rbx
test rbx, rbx
jne 0x14002b720
jmp 0x14002b765
mov rcx, qword [rbp + 0x108]
mov rax, qword [rcx + 8]
mov qword [rax], r12
mov rcx, qword [rcx]
test rcx, rcx
je 0x14002b765
nop dword [rax]
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140035d80
mov rcx, rbx
test rbx, rbx
jne 0x14002b750
mov edx, 0x20
mov rcx, qword [rbp + 0x108]
call fcn.140035d80
mov rdi, qword [rbp + 0xe8]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [rbp + 0xd0], r12
mov byte [rbp + 0xcc], 0
lea rcx, [rsp + 0x48]
call fcn.140009fd0
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140009b90
nop
mov rcx, qword [rbp + 0x90]
mov rax, qword [rcx + 8]
mov qword [rax], r12
mov rcx, qword [rcx]
test rcx, rcx
je 0x14002b7e5
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140035d80
mov rcx, rbx
test rbx, rbx
jne 0x14002b7d0
mov edx, 0x20
mov rcx, qword [rbp + 0x90]
call fcn.140035d80
nop
mov rax, qword [rbp + 0x100]
cmp rax, 0x10
jb 0x14002b836
lea rdx, [rax + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14002b82d
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bbdf
mov rcx, rdi
call fcn.140035d80
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x14002b87d
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b878
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bbe5
call fcn.140035d80
movdqa xmm0, xmmword [0x140071340]
movdqu xmmword [rbp + 0x80], xmm0
mov byte [rbp + 0x70], 0
mov rcx, r14
call fcn.140009fd0
lea rcx, [r14 + 8]
movzx edx, byte [r14]
call fcn.140009b90
nop
jmp 0x14002b966
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rcx, qword [rbp + 0x90]
mov rax, qword [rcx + 8]
mov qword [rax], r12
mov rcx, qword [rcx]
test rcx, rcx
je 0x14002b8e7
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140035d80
mov rcx, rbx
test rbx, rbx
jne 0x14002b8d2
mov edx, 0x20
mov rcx, qword [rbp + 0x90]
call fcn.140035d80
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x14002b93c
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b937
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b996
call fcn.140035d80
movdqa xmm0, xmmword [0x140071340]
movdqu xmmword [rbp + 0x80], xmm0
mov byte [rbp + 0x70], 0
mov rcx, r14
call fcn.140009fd0
lea rcx, [r14 + 8]
movzx edx, byte [r14]
call fcn.140009b90
nop
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140035d60
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140047b50
nop
mov rcx, rax
call fcn.14001a100
mov qword [rbp + 0x28], rax
lea r8, [rbp + 0x28]
lea rdx, str.type_must_be_string__but_is
lea rcx, [rbp - 0x70]
call fcn.14001f530
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rbp - 0x50]
call fcn.14000bb10
lea rdx, [0x14007a490]
lea rcx, [rbp - 0x50]
call fcn.140037c24
nop
mov rcx, rax
call fcn.14001a100
mov qword [rbp + 0x28], rax
lea r8, [rbp + 0x28]
lea rcx, [rbp - 0x70]
call fcn.14002c9a0
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rbp - 0x50]
call fcn.14000bb10
lea rdx, [0x14007a490]
lea rcx, [rbp - 0x50]
call fcn.140037c24
nop
mov rcx, rax
call fcn.14001a100
mov qword [rbp + 0x28], rax
lea r8, [rbp + 0x28]
lea rdx, str.type_must_be_string__but_is
lea rcx, [rbp - 0x70]
call fcn.14001f530
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rbp - 0x50]
call fcn.14000bb10
lea rdx, [0x14007a490]
lea rcx, [rbp - 0x50]
call fcn.140037c24
nop
mov rcx, rax
call fcn.14001a100
mov qword [rbp + 0x28], rax
lea r8, [rbp + 0x28]
lea rdx, str.type_must_be_string__but_is
lea rcx, [rbp - 0x70]
call fcn.14001f530
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rbp - 0x50]
call fcn.14000bb10
lea rdx, [0x14007a490]
lea rcx, [rbp - 0x50]
call fcn.140037c24
nop
call fcn.140047b50
nop
call fcn.140047b50
nop
call fcn.140047b50
nop
call fcn.140047b50
nop
call fcn.140047b50
nop
call fcn.140047b50
nop
mov rcx, rax
call fcn.14001a100
mov qword [rbp + 0x28], rax
lea r8, [rbp + 0x28]
lea rdx, str.type_must_be_string__but_is
lea rcx, [rbp - 0x70]
call fcn.14001f530
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rbp - 0x50]
call fcn.14000bb10
lea rdx, [0x14007a490]
lea rcx, [rbp - 0x50]
call fcn.140037c24
nop
call fcn.140047b50
int3
call fcn.140002d70
nop
call fcn.140047b50
nop
call fcn.140047b50
nop
call fcn.140047b50
nop
lea rdx, str.fucked_up
lea rcx, [rbp + 0xa0]
call fcn.140002fa0
lea rdx, [0x14007a4b0]
lea rcx, [rbp + 0xa0]
call fcn.140037c24
nop
call fcn.140002e10
int3
mov rcx, r9
call fcn.14001a100
mov qword [rbp + 0x28], rax
lea r8, [rbp + 0x28]
lea rdx, str.type_must_be_number__but_is
lea rcx, [rbp - 0x70]
call fcn.14001f530
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rbp - 0x10]
call fcn.14000bb10
lea rdx, [0x14007a490]
lea rcx, [rbp - 0x10]
call fcn.140037c24
nop
mov rcx, rax
call fcn.14001a100
mov qword [rbp + 0x28], rax
lea r8, [rbp + 0x28]
lea rdx, str.type_must_be_string__but_is
lea rcx, [rbp - 0x50]
call fcn.14001f530
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rbp + 0x130]
call fcn.14000bb10
lea rdx, [0x14007a490]
lea rcx, [rbp + 0x130]
call fcn.140037c24
nop
call fcn.140047b50
nop
call fcn.140047b50
int3