Function at 0x1400415d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x430]
sub rsp, 0x530
mov rax, qword [0x140055040]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov rbx, rcx
lea rdx, str.Trying_activate_key..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14003c710
xor edx, edx
mov word [rsp + 0x20], 0x102
mov r8d, 0xfe
lea rcx, [rsp + 0x22]
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x68], 0xf
lea rcx, [rbx + 0x50]
jbe 0x140041640
mov rcx, qword [rcx]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov rdx, 0xffffffffffffffff
mov byte [rsp + 0x22], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041651
cmp rax, 1
jae 0x140041667
mov byte [rsp + 0x23], 0x7c
jmp 0x14004166f
movzx eax, byte [rcx + 1]
mov byte [rsp + 0x23], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041672
cmp rax, 2
jae 0x140041688
mov byte [rsp + 0x24], 0x7c
jmp 0x140041690
movzx eax, byte [rcx + 2]
mov byte [rsp + 0x24], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041693
cmp rax, 3
jae 0x1400416a9
mov byte [rsp + 0x25], 0x7c
jmp 0x1400416b1
movzx eax, byte [rcx + 3]
mov byte [rsp + 0x25], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400416b4
cmp rax, 4
jae 0x1400416ca
mov byte [rsp + 0x26], 0x7c
jmp 0x1400416d2
movzx eax, byte [rcx + 4]
mov byte [rsp + 0x26], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400416d5
cmp rax, 5
jae 0x1400416eb
mov byte [rsp + 0x27], 0x7c
jmp 0x1400416f3
movzx eax, byte [rcx + 5]
mov byte [rsp + 0x27], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400416f6
cmp rax, 6
jae 0x14004170c
mov byte [rsp + 0x28], 0x7c
jmp 0x140041714
movzx eax, byte [rcx + 6]
mov byte [rsp + 0x28], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041717
cmp rax, 7
jae 0x14004172d
mov byte [rsp + 0x29], 0x7c
jmp 0x140041735
movzx eax, byte [rcx + 7]
mov byte [rsp + 0x29], al
mov rax, rdx
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140041740
cmp rax, 8
jae 0x140041756
mov byte [rsp + 0x2a], 0x7c
jmp 0x14004175e
movzx eax, byte [rcx + 8]
mov byte [rsp + 0x2a], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041761
cmp rax, 9
jae 0x140041777
mov byte [rsp + 0x2b], 0x7c
jmp 0x14004177f
movzx eax, byte [rcx + 9]
mov byte [rsp + 0x2b], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041782
cmp rax, 0xa
jae 0x140041798
mov byte [rsp + 0x2c], 0x7c
jmp 0x1400417a0
movzx eax, byte [rcx + 0xa]
mov byte [rsp + 0x2c], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400417a3
cmp rax, 0xb
jae 0x1400417b9
mov byte [rsp + 0x2d], 0x7c
jmp 0x1400417c1
movzx eax, byte [rcx + 0xb]
mov byte [rsp + 0x2d], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400417c4
cmp rax, 0xc
jae 0x1400417da
mov byte [rsp + 0x2e], 0x7c
jmp 0x1400417e2
movzx eax, byte [rcx + 0xc]
mov byte [rsp + 0x2e], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400417e5
cmp rax, 0xd
jae 0x1400417fb
mov byte [rsp + 0x2f], 0x7c
jmp 0x140041803
movzx eax, byte [rcx + 0xd]
mov byte [rsp + 0x2f], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041806
cmp rax, 0xe
jae 0x14004181c
mov byte [rsp + 0x30], 0x7c
jmp 0x140041824
movzx eax, byte [rcx + 0xe]
mov byte [rsp + 0x30], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041827
cmp rax, 0xf
mov al, 0x7c
jb 0x14004183c
movzx eax, byte [rcx + 0xf]
cmp qword [rbx + 0x48], 0xf
lea rcx, [rbx + 0x30]
mov byte [rsp + 0x31], al
jbe 0x140041850
mov rcx, qword [rcx]
nop
movzx eax, byte [rcx]
mov byte [rsp + 0x32], al
mov rax, rdx
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140041860
cmp rax, 1
jae 0x140041876
mov byte [rsp + 0x33], 0x7c
jmp 0x14004187e
movzx eax, byte [rcx + 1]
mov byte [rsp + 0x33], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041881
cmp rax, 2
jae 0x140041897
mov byte [rsp + 0x34], 0x7c
jmp 0x14004189f
movzx eax, byte [rcx + 2]
mov byte [rsp + 0x34], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400418a2
cmp rax, 3
jae 0x1400418b8
mov byte [rsp + 0x35], 0x7c
jmp 0x1400418c0
movzx eax, byte [rcx + 3]
mov byte [rsp + 0x35], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400418c3
cmp rax, 4
jae 0x1400418d9
mov byte [rsp + 0x36], 0x7c
jmp 0x1400418e1
movzx eax, byte [rcx + 4]
mov byte [rsp + 0x36], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400418e4
cmp rax, 5
jae 0x1400418fa
mov byte [rsp + 0x37], 0x7c
jmp 0x140041902
movzx eax, byte [rcx + 5]
mov byte [rsp + 0x37], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041905
cmp rax, 6
jae 0x14004191b
mov byte [rsp + 0x38], 0x7c
jmp 0x140041923
movzx eax, byte [rcx + 6]
mov byte [rsp + 0x38], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041926
cmp rax, 7
jae 0x14004193c
mov byte [rsp + 0x39], 0x7c
jmp 0x140041944
movzx eax, byte [rcx + 7]
mov byte [rsp + 0x39], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041947
cmp rax, 8
jae 0x14004195d
mov byte [rsp + 0x3a], 0x7c
jmp 0x140041965
movzx eax, byte [rcx + 8]
mov byte [rsp + 0x3a], al
mov rax, rdx
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140041970
cmp rax, 9
jae 0x140041986
mov byte [rsp + 0x3b], 0x7c
jmp 0x14004198e
movzx eax, byte [rcx + 9]
mov byte [rsp + 0x3b], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041991
cmp rax, 0xa
jae 0x1400419a7
mov byte [rsp + 0x3c], 0x7c
jmp 0x1400419af
movzx eax, byte [rcx + 0xa]
mov byte [rsp + 0x3c], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400419b2
cmp rax, 0xb
jae 0x1400419c8
mov byte [rsp + 0x3d], 0x7c
jmp 0x1400419d0
movzx eax, byte [rcx + 0xb]
mov byte [rsp + 0x3d], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400419d3
cmp rax, 0xc
jae 0x1400419e9
mov byte [rsp + 0x3e], 0x7c
jmp 0x1400419f1
movzx eax, byte [rcx + 0xc]
mov byte [rsp + 0x3e], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400419f4
cmp rax, 0xd
jae 0x140041a0a
mov byte [rsp + 0x3f], 0x7c
jmp 0x140041a12
movzx eax, byte [rcx + 0xd]
mov byte [rsp + 0x3f], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041a15
cmp rax, 0xe
jae 0x140041a2b
mov byte [rsp + 0x40], 0x7c
jmp 0x140041a33
movzx eax, byte [rcx + 0xe]
mov byte [rsp + 0x40], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041a36
cmp rax, 0xf
mov al, 0x7c
jb 0x140041a4b
movzx eax, byte [rcx + 0xf]
lea rcx, [rbx + 0x70]
mov byte [rsp + 0x41], al
cmp qword [rcx + 0x18], 0xf
jbe 0x140041a60
mov rcx, qword [rcx]
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rsp + 0x42], al
mov rax, rdx
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140041a70
cmp rax, 1
jae 0x140041a86
mov byte [rsp + 0x43], 0x7c
jmp 0x140041a8e
movzx eax, byte [rcx + 1]
mov byte [rsp + 0x43], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041a91
cmp rax, 2
jae 0x140041aa7
mov byte [rsp + 0x44], 0x7c
jmp 0x140041aaf
movzx eax, byte [rcx + 2]
mov byte [rsp + 0x44], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041ab2
cmp rax, 3
jae 0x140041ac8
mov byte [rsp + 0x45], 0x7c
jmp 0x140041ad0
movzx eax, byte [rcx + 3]
mov byte [rsp + 0x45], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041ad3
cmp rax, 4
jae 0x140041ae9
mov byte [rsp + 0x46], 0x7c
jmp 0x140041af1
movzx eax, byte [rcx + 4]
mov byte [rsp + 0x46], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041af4
cmp rax, 5
jae 0x140041b0a
mov byte [rsp + 0x47], 0x7c
jmp 0x140041b12
movzx eax, byte [rcx + 5]
mov byte [rsp + 0x47], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041b15
cmp rax, 6
jae 0x140041b2b
mov byte [rsp + 0x48], 0x7c
jmp 0x140041b33
movzx eax, byte [rcx + 6]
mov byte [rsp + 0x48], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041b36
cmp rax, 7
jae 0x140041b4c
mov byte [rsp + 0x49], 0x7c
jmp 0x140041b54
movzx eax, byte [rcx + 7]
mov byte [rsp + 0x49], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041b57
cmp rax, 8
jae 0x140041b6d
mov byte [rsp + 0x4a], 0x7c
jmp 0x140041b75
movzx eax, byte [rcx + 8]
mov byte [rsp + 0x4a], al
mov rax, rdx
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140041b80
cmp rax, 9
jae 0x140041b96
mov byte [rsp + 0x4b], 0x7c
jmp 0x140041b9e
movzx eax, byte [rcx + 9]
mov byte [rsp + 0x4b], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041ba1
cmp rax, 0xa
jae 0x140041bb7
mov byte [rsp + 0x4c], 0x7c
jmp 0x140041bbf
movzx eax, byte [rcx + 0xa]
mov byte [rsp + 0x4c], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041bc2
cmp rax, 0xb
jae 0x140041bd8
mov byte [rsp + 0x4d], 0x7c
jmp 0x140041be0
movzx eax, byte [rcx + 0xb]
mov byte [rsp + 0x4d], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041be3
cmp rax, 0xc
jae 0x140041bf9
mov byte [rsp + 0x4e], 0x7c
jmp 0x140041c01
movzx eax, byte [rcx + 0xc]
mov byte [rsp + 0x4e], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041c04
cmp rax, 0xd
jae 0x140041c1a
mov byte [rsp + 0x4f], 0x7c
jmp 0x140041c22
movzx eax, byte [rcx + 0xd]
mov byte [rsp + 0x4f], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041c25
cmp rax, 0xe
jae 0x140041c3b
mov byte [rsp + 0x50], 0x7c
jmp 0x140041c43
movzx eax, byte [rcx + 0xe]
mov byte [rsp + 0x50], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041c46
cmp rax, 0xf
jae 0x140041c5c
mov byte [rsp + 0x51], 0x7c
jmp 0x140041c64
movzx eax, byte [rcx + 0xf]
mov byte [rsp + 0x51], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041c67
cmp rax, 0x10
jae 0x140041c7d
mov byte [rsp + 0x52], 0x7c
jmp 0x140041c85
movzx eax, byte [rcx + 0x10]
mov byte [rsp + 0x52], al
mov rax, rdx
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140041c90
cmp rax, 0x11
jae 0x140041ca6
mov byte [rsp + 0x53], 0x7c
jmp 0x140041cae
movzx eax, byte [rcx + 0x11]
mov byte [rsp + 0x53], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041cb1
cmp rax, 0x12
jae 0x140041cc7
mov byte [rsp + 0x54], 0x7c
jmp 0x140041ccf
movzx eax, byte [rcx + 0x12]
mov byte [rsp + 0x54], al
mov rax, rdx
inc rax
cmp byte [rcx + rax], 0
jne 0x140041cd2
cmp rax, 0x13
jae 0x140041ce8
mov byte [rsp + 0x55], 0x7c
jmp 0x140041cf0
movzx eax, byte [rcx + 0x13]
mov byte [rsp + 0x55], al
inc rdx
cmp byte [rcx + rdx], 0
jne 0x140041cf0
mov al, 0x7c
cmp rdx, 0x14
jb 0x140041d05
movzx eax, byte [rcx + 0x14]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov byte [rsp + 0x56], al
mov r8d, 0x100
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rbx]
lea rdx, [rbp + 0x20]
xor r9d, r9d
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recv]
cmp byte [rbp + 0x20], 2
je 0x140041d84
lea rcx, [rbx + 0x90]
cmp qword [rcx + 0x18], 0x27
jb 0x140041d73
mov rbx, qword [rcx]
lea rdx, str.Invalid_packet_received__no_connection_
mov qword [rcx + 0x10], 0x27
mov r8d, 0x27
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x27], 0
jmp 0x140041e84
lea r9, str.Invalid_packet_received__no_connection_
mov edx, 0x27
jmp 0x140041e7f
movsx edx, byte [rbp + 0x21]
sub edx, 1
je 0x140041e3f
sub edx, 1
je 0x140041dfd
sub edx, 1
je 0x140041db5
cmp edx, 1
jne 0x140041e84
lea rdx, [rbp + 0x20]
mov rcx, rbx
call fcn.140040450
jmp 0x140041e84
lea rcx, [rbx + 0x90]
cmp qword [rcx + 0x18], 0x2b
jb 0x140041dec
mov rbx, qword [rcx]
lea rdx, str.Invalid_password_length__please_try_another
mov qword [rcx + 0x10], 0x2b
mov r8d, 0x2b
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x2b], 0
jmp 0x140041e84
lea r9, str.Invalid_password_length__please_try_another
mov edx, 0x2b
jmp 0x140041e7f
lea rcx, [rbx + 0x90]
cmp qword [rcx + 0x18], 0x2a
jb 0x140041e31
mov rbx, qword [rcx]
lea rdx, str.Username_already_taken__please_try_another
mov qword [rcx + 0x10], 0x2a
mov r8d, 0x2a
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x2a], 0
jmp 0x140041e84
lea r9, str.Username_already_taken__please_try_another
mov edx, 0x2a
jmp 0x140041e7f
lea rcx, [rbx + 0x90]
cmp qword [rcx + 0x18], 0x16
jb 0x140041e73
mov rbx, qword [rcx]
lea rdx, str.Invalid_activation_key
mov qword [rcx + 0x10], socket
mov r8d, socket
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x16], 0
jmp 0x140041e84
lea r9, str.Invalid_activation_key
mov edx, socket
call fcn.14003cdd0
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1400447d0
mov rbx, qword [rsp + 0x548]
add rsp, 0x530
pop rbp
ret