Function at 0x140005310
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rax, qword [0x140170e40]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], r8
mov qword [rbp - 0x48], rdx
mov r12, rcx
movups xmm0, xmmword [rdx]
movups xmmword [rbp - 0x40], xmm0
movsd xmm6, qword [rdx + 0x10]
movsd qword [rbp - 0x30], xmm6
mov qword [rbp - 0x28], rdx
movq r8, xmm0
mov rax, r8
mov r13, qword [rbp - 0x30]
sub rax, r13
mov qword [rbp - 0x58], rax
xorps xmm3, xmm3
xorps xmm1, xmm1
cmp byte [r8], 0x2d
jne 0x140004598
inc r8
mov qword [rbp - 0x40], r8
mov r10b, 1
jmp 0x14000459b
xor r10b, r10b
mov byte [rbp - 0x5f], r10b
xor ebx, ebx
mov edi, ebx
xor r9b, r9b
mov byte [rbp - 0x60], r9b
mov r11d, ebx
movsx eax, byte [r8]
cmp al, 0x30
jne 0x1400045c4
mov esi, ebx
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
jmp 0x140004685
cmp al, 0x31
jl 0x140004cbf
cmp al, 0x39
jg 0x140004cbf
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
lea esi, [rax - 0x30]
movzx eax, byte [rdx]
test r10b, r10b
je 0x140004635
cmp al, 0x30
jl 0x140004685
mov r8, rdx
mov rcx, rdx
cmp al, 0x39
ja 0x140004685
cmp esi, 0xccccccc
jb 0x14000460e
jne 0x14000467c
mov r8, rcx
cmp al, 0x38
ja 0x14000467c
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
lea ecx, [rsi - 6]
lea ecx, [rsi + rcx*4]
movsx eax, byte [r8]
lea esi, [rax + rcx*2]
inc r11d
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x1400045f5
jmp 0x140004685
cmp al, 0x30
jl 0x140004685
mov r8, rdx
mov rcx, rdx
nop
cmp al, 0x39
jg 0x140004685
cmp esi, 0x19999999
jb 0x140004655
jne 0x14000467c
mov r8, rcx
cmp al, 0x35
jg 0x14000467c
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
lea ecx, [rsi - 6]
lea ecx, [rsi + rcx*4]
movsx eax, byte [r8]
lea esi, [rax + rcx*2]
inc r11d
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x140004640
jmp 0x140004685
mov r9b, 1
mov byte [rbp - 0x60], r9b
mov edi, esi
xor r15b, r15b
movsd xmm2, qword [0x1400eafc0]
test r9b, r9b
je 0x1400047e4
test r10b, r10b
je 0x14000471d
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x1400047e4
mov r8, rdx
mov r9, rdx
movabs r10, 0xccccccccccccccc
nop word [rax + rax]
cmp cl, 0x39
ja 0x1400047df
cmp rdi, r10
jb 0x1400046d8
jne 0x140004705
mov r8, r9
cmp cl, 0x38
ja 0x140004705
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
movsx ecx, byte [r8]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
inc r11d
mov r8, rdx
mov r9, rdx
movzx ecx, byte [rdx]
cmp cl, 0x30
jge 0x1400046c0
jmp 0x1400047df
mov rcx, rdi
mov r15b, 1
xorps xmm1, xmm1
test rcx, rcx
js 0x140004789
cvtsi2sd xmm1, rcx
jmp 0x14000479e
movzx r8d, byte [rdx]
cmp r8b, 0x30
jl 0x1400047e4
mov r9, rdx
mov r10, rdx
movabs r14, 0x1999999999999999
nop dword [rax + rax]
mov rcx, rdi
cmp r8b, 0x39
ja 0x1400047df
cmp rdi, r14
jb 0x14000475d
jne 0x140004708
mov r9, r10
cmp r8b, 0x35
ja 0x140004708
lea rdx, [r9 + 1]
mov qword [rbp - 0x40], rdx
movsx ecx, byte [r9]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
inc r11d
mov r9, rdx
mov r10, rdx
movzx r8d, byte [rdx]
cmp r8b, 0x30
jge 0x140004740
jmp 0x1400047df
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x1400047df
mov r8, rdx
nop dword [rax]
cmp cl, 0x39
ja 0x1400047df
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
movsx eax, byte [r8]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
mov r8, rdx
movzx ecx, byte [rdx]
cmp cl, 0x30
jge 0x1400047b0
movzx r9d, byte [rbp - 0x60]
mov r14d, ebx
cmp byte [rdx], 0x2e
jne 0x14000490c
lea r8, [rdx + 1]
mov qword [rbp - 0x40], r8
movzx eax, byte [r8]
cmp al, 0x30
jl 0x140004944
cmp al, 0x39
jg 0x140004944
mov rdx, r8
test r15b, r15b
jne 0x14000489b
test r9b, r9b
jne 0x14000481f
mov edi, esi
mov rcx, r8
mov r9, r8
movabs r10, 0x1fffffffffffff
nop
cmp al, 0x39
jg 0x14000486e
mov rdx, r9
cmp rdi, r10
ja 0x14000486e
lea r8, [rcx + 1]
mov rdx, r8
mov qword [rbp - 0x40], r8
movsx ecx, byte [rcx]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
dec r14d
test rdi, rdi
je 0x140004860
inc r11d
movzx eax, byte [r8]
mov rcx, r8
mov r9, rdx
cmp al, 0x30
jge 0x140004830
xorps xmm1, xmm1
test rdi, rdi
js 0x14000487d
cvtsi2sd xmm1, rdi
jmp 0x140004895
mov rcx, rdi
shr rcx, 1
mov rax, rdi
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
mov r15b, 1
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14000490c
mov rax, rdx
mov r10, rdx
mov r9, rdx
movzx ecx, byte [r8]
nop dword [rax]
mov rdx, r9
cmp cl, 0x39
jg 0x14000490c
cmp r11d, 0x11
jge 0x1400048f0
lea rdx, [rax + 1]
mov rcx, rdx
mov qword [rbp - 0x40], rdx
movsx eax, byte [rax]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm0, xmm1
movaps xmm1, xmm0
dec r14d
comisd xmm0, xmm3
jbe 0x1400048fb
inc r11d
jmp 0x1400048fb
lea rdx, [r10 + 1]
mov rcx, rdx
mov qword [rbp - 0x40], rdx
mov rax, rdx
movzx ecx, byte [rcx]
mov r10, rdx
mov r9, rdx
cmp cl, 0x30
jge 0x1400048b0
cmp byte [rdx], 0x65
je 0x14000491a
cmp byte [rdx], 0x45
jne 0x140004a73
inc rdx
mov qword [rbp - 0x40], rdx
movzx r11d, byte [rbp - 0x60]
test r15b, r15b
jne 0x140004966
test r11b, r11b
mov rcx, rdi
jne 0x140004935
mov ecx, esi
xorps xmm1, xmm1
test rcx, rcx
js 0x14000494e
cvtsi2sd xmm1, rcx
jmp 0x140004963
mov ecx, reloc.WS2_32.dll_ntohl
jmp 0x140004cc4
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov r15b, 1
xor cl, cl
movzx eax, byte [rdx]
cmp al, 0x2b
je 0x140004975
cmp al, 0x2d
jne 0x14000497f
mov cl, 1
inc rdx
movzx eax, byte [rdx]
mov qword [rbp - 0x40], rdx
cmp al, 0x30
jl 0x140004a5d
cmp al, 0x39
jg 0x140004a5d
lea r8, [rdx + 1]
mov qword [rbp - 0x40], r8
movsx ebx, al
sub ebx, 0x30
movzx r9d, byte [r8]
test cl, cl
je 0x140004a25
lea ecx, [r14 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov r10d, edx
sar r10d, 2
mov eax, r10d
shr eax, 0x1f
add r10d, eax
cmp r9b, 0x30
jl 0x140004a21
movzx eax, r9b
cmp al, 0x39
jg 0x140004a21
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
lea ebx, [rbx + rbx*4]
movsx eax, byte [r8]
lea ebx, [rbx - 0x18]
lea ebx, [rax + rbx*2]
mov r8, rdx
cmp ebx, r10d
jle 0x140004a1a
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x140004a1a
mov rcx, rdx
nop dword [rax]
cmp al, 0x39
ja 0x140004a16
lea r8, [rcx + 1]
mov rdx, r8
movzx eax, byte [r8]
mov rcx, r8
cmp al, 0x30
jge 0x140004a00
mov qword [rbp - 0x40], rdx
movzx eax, byte [rdx]
cmp al, 0x30
jge 0x1400049d1
neg ebx
jmp 0x140004a78
mov edx, 0x134
sub edx, r14d
cmp r9b, 0x30
jl 0x140004a78
movzx eax, r9b
cmp al, 0x39
jg 0x140004a78
movsx eax, byte [r8]
inc r8
mov qword [rbp - 0x40], r8
lea ebx, [rbx + rbx*4]
lea ebx, [rbx - 0x18]
lea ebx, [rax + rbx*2]
cmp ebx, edx
jg 0x140004ac8
movzx eax, byte [r8]
cmp al, 0x30
jge 0x140004a37
jmp 0x140004a78
sub rdx, r13
mov dword [r12 + 0x30], reloc.WS2_32.dll_ntohs
mov qword [r12 + 0x38], rdx
jmp 0x140004cd7
movzx r11d, byte [rbp - 0x60]
test r15b, r15b
je 0x140004b38
lea ecx, [rbx + r14]
cmp ecx, 0xfffffecc
jge 0x140004adf
divsd xmm1, qword [0x1400eafc8]
lea eax, [rcx + 0x134]
cmp eax, 0xfffffecc
jl 0x140004abe
movsxd rax, ecx
lea rax, [rax*8 + 0x9a0]
lea rcx, [0x1400ea4c0]
sub rcx, rax
movaps xmm3, xmm1
divsd xmm3, qword [rcx]
comisd xmm3, xmmword [0x1400eafd0]
jbe 0x140004b00
mov dword [r12 + 0x30], reloc.WS2_32.dll_listen
mov rax, qword [rbp - 0x58]
mov qword [r12 + 0x38], rax
jmp 0x140004cd7
movsxd rax, ecx
lea rax, [rax*8]
test ecx, ecx
js 0x140004aad
lea rcx, [0x1400ea4c0]
movsd xmm3, qword [rax + rcx]
mulsd xmm3, xmm1
jmp 0x140004abe
cmp byte [rbp - 0x5f], 0
je 0x140004b0d
xorps xmm3, xmmword [0x1400eb000]
movaps xmm1, xmm3
mov rcx, qword [rbp - 0x50]
call fcn.140005830
test al, al
jne 0x140004cd7
mov dword [r12 + 0x30], reloc.WS2_32.dll_recv
mov rax, qword [rbp - 0x58]
mov qword [r12 + 0x38], rax
jmp 0x140004cd7
mov rbx, qword [rbp - 0x50]
add rbx, 0x20
mov rax, qword [rbx + 0x20]
sub rax, qword [rbx + 0x18]
test r11b, r11b
je 0x140004c34
cmp byte [rbp - 0x5f], 0
je 0x140004bc4
neg rdi
cmp rax, 0x10
jge 0x140004b6d
mov edx, 1
mov rcx, rbx
call fcn.1400043b0
mov rcx, qword [rbx + 0x18]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rdi
mov word [rcx + 0xe], __WSAFDIsSet
test rdi, rdi
js 0x140004bac
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rdi
jne 0x140004c1a
mov eax, 0x1d6
jmp 0x140004c16
cmp rdi, 0xffffffff80000000
jl 0x140004cd7
mov word [rcx + 0xe], 0xb6
jmp 0x140004cd7
cmp rax, 0x10
jge 0x140004bd7
mov edx, 1
mov rcx, rbx
call fcn.1400043b0
mov rcx, qword [rbx + 0x18]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rdi
mov eax, 0x116
mov word [rcx + 0xe], ax
test rdi, rdi
js 0x140004c03
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rdi
jne 0x140004c1a
or ax, 0x40
mov word [rcx + 0xe], ax
test rdi, 0xffffffff80000000
jne 0x140004cd7
or ax, 0x20
mov word [rcx + 0xe], ax
jmp 0x140004cd7
cmp byte [rbp - 0x5f], 0
je 0x140004c7d
neg esi
cmp rax, 0x10
jge 0x140004c4f
mov edx, 1
mov rcx, rbx
call fcn.1400043b0
mov rcx, qword [rbx + 0x18]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movsxd rax, esi
mov qword [rcx], rax
mov eax, 0xb6
mov edx, 0x1f6
test esi, esi
cmovns ax, dx
mov word [rcx + 0xe], ax
jmp 0x140004cd7
cmp rax, 0x10
jge 0x140004c90
mov edx, 1
mov rcx, rbx
call fcn.1400043b0
mov rcx, qword [rbx + 0x18]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov eax, esi
mov qword [rcx], rax
shr esi, 0x1a
not si
and si, 0x20
mov eax, 0x1d6
or si, ax
mov word [rcx + 0xe], si
jmp 0x140004cd7
mov ecx, 3
mov eax, Ordinal_50
mov rdx, r12
sub r8, r13
mov dword [r12 + rax], ecx
mov qword [rdx + 0x38], r8
movups xmm0, xmmword [rbp - 0x40]
mov rax, qword [rbp - 0x48]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm6
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1400e4750
mov rbx, qword [rsp + 0xd8]
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
inc qword [rdx]
mov rbp, r8
mov rax, qword [r8 + 0x40]
mov rbx, rdx
sub rax, qword [r8 + 0x38]
mov rdi, rcx
cmp rax, 0x10
jge 0x140004d54
mov edx, 1
lea rcx, [r8 + 0x20]
call fcn.1400043b0
mov rcx, qword [rbp + 0x38]
xorps xmm0, xmm0
mov esi, 3
lea rax, [rcx + 0x10]
mov qword [rbp + 0x38], rax
movups xmmword [rcx], xmm0
mov word [rcx + 0xe], si
mov rcx, rbx
call fcn.140005670
cmp dword [rdi + 0x30], 0
jne 0x140004ef8
mov rax, qword [rbx]
cmp byte [rax], 0x7d
jne 0x140004dbc
inc rax
movabs rcx, 0xffff000000000000
mov qword [rbx], rax
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x38], rax
mov word [rax - 2], si
and qword [rax - 8], rcx
xor esi, esi
mov qword [rax - 0x10], rsi
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
xor esi, esi
nop
mov rax, qword [rbx]
cmp byte [rax], 0x22
jne 0x140004ee9
mov r9b, 1
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.140005050
cmp dword [rdi + 0x30], 0
jne 0x140004ef8
mov rcx, rbx
call fcn.140005670
cmp dword [rdi + 0x30], 0
jne 0x140004ef8
mov rax, qword [rbx]
cmp byte [rax], 0x3a
jne 0x140004ecd
inc rax
mov rcx, rbx
mov qword [rbx], rax
call fcn.140005670
cmp dword [rdi + 0x30], 0
jne 0x140004ef8
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.140005310
cmp dword [rdi + 0x30], 0
jne 0x140004ef8
mov rcx, rbx
call fcn.140005670
cmp dword [rdi + 0x30], 0
jne 0x140004ef8
mov rax, qword [rbx]
inc esi
movzx ecx, byte [rax]
cmp cl, 0x2c
jne 0x140004e79
inc rax
mov rcx, rbx
mov qword [rbx], rax
call fcn.140005670
cmp dword [rdi + 0x30], 0
je 0x140004dc0
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
cmp cl, 0x7d
je 0x140004e9a
sub rax, qword [rbx + 0x10]
mov dword [rdi + 0x30], 6
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
inc rax
mov edx, esi
mov rcx, rbp
mov qword [rbx], rax
call fcn.140005920
test al, al
jne 0x140004ef8
mov rax, qword [rbx]
sub rax, qword [rbx + 0x10]
mov dword [rdi + 0x30], reloc.WS2_32.dll_recv
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
sub rax, qword [rbx + 0x10]
mov dword [rdi + 0x30], 5
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
sub rax, qword [rbx + 0x10]
mov dword [rdi + 0x30], 4
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
mov rdx, qword [rdx]
mov rdi, rcx
movsx eax, byte [rdx]
add eax, 0xffffffde
cmp eax, 0x59
ja case.0x140005350.35
lea r8, [0x140000000]
cdqe
movzx eax, byte [r8 + rax + 0x5608]
mov ecx, dword [r8 + rax*4 + 0x55ec]
add rcx, r8
jmp rcx
lea rax, [rdx + 1]
mov qword [rbx], rax
cmp byte [rax], 0x75
jne 0x1400053b0
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x6c
jne 0x1400053b0
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x6c
jne 0x1400053b0
inc rax
mov qword [rbx], rax
mov rax, qword [rsi + 0x40]
sub rax, qword [rsi + 0x38]
cmp rax, 0x10
jge 0x140005396
mov edx, 1
lea rcx, [rsi + 0x20]
call fcn.1400043b0
mov rcx, qword [rsi + 0x38]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [rsi + 0x38], rax
movups xmmword [rcx], xmm0
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
sub rax, qword [rbx + 0x10]
mov dword [rdi + 0x30], 3
mov qword [rdi + 0x38], rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
lea rax, [rdx + 1]
mov qword [rbx], rax
cmp byte [rax], 0x72
jne 0x1400053b0
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x75
jne 0x1400053b0
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x65
jne 0x1400053b0
inc rax
mov dl, 1
mov rcx, rsi
mov qword [rbx], rax
call fcn.140005730
test al, al
jne 0x1400055b0
mov rax, qword [rbx]
sub rax, qword [rbx + 0x10]
mov dword [rdi + 0x30], reloc.WS2_32.dll_recv
mov qword [rdi + 0x38], rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
lea rax, [rdx + 1]
mov qword [rbx], rax
cmp byte [rax], 0x61
jne 0x1400053b0
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x6c
jne 0x1400053b0
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x73
jne 0x1400053b0
inc rax
mov qword [rbx], rax
cmp byte [rax], 0x65
jne 0x1400053b0
inc rax
xor edx, edx
jmp 0x1400053ee
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
jmp fcn.140005050
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
jmp 0x140004d20
lea rax, [rdx + 1]
mov qword [rsp + 0x58], rbp
mov qword [rbx], rax
mov rax, qword [rsi + 0x40]
sub rax, qword [rsi + 0x38]
cmp rax, 0x10
jge 0x1400054b0
mov edx, 1
lea rcx, [rsi + 0x20]
call fcn.1400043b0
mov rcx, qword [rsi + 0x38]
xorps xmm0, xmm0
mov ebp, 4
lea rax, [rcx + 0x10]
mov qword [rsi + 0x38], rax
movups xmmword [rcx], xmm0
mov word [rcx + 0xe], bp
mov rcx, rbx
call fcn.140005670
cmp dword [rdi + 0x30], 0
jne 0x1400055ab
mov rax, qword [rbx]
cmp byte [rax], 0x5d
jne 0x140005518
inc rax
movabs rcx, 0xffff000000000000
mov qword [rbx], rax
mov rax, qword [rsi + 0x38]
mov qword [rsi + 0x38], rax
mov word [rax - 2], bp
and qword [rax - 8], rcx
xor ebp, ebp
mov qword [rax - 0x10], rbp
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
xor ebp, ebp
call fcn.140005310
cmp dword [rdi + 0x30], ebp
jne 0x1400055ab
nop dword [rax]
mov rcx, rbx
inc ebp
call fcn.140005670
cmp dword [rdi + 0x30], 0
jne 0x1400055ab
mov rax, qword [rbx]
movzx ecx, byte [rax]
cmp cl, 0x2c
jne 0x140005580
inc rax
mov rcx, rbx
mov qword [rbx], rax
call fcn.140005670
cmp dword [rdi + 0x30], 0
jne 0x1400055ab
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.140005310
cmp dword [rdi + 0x30], 0
je 0x140005530
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
cmp cl, 0x5d
jne 0x1400055b8
inc rax
mov edx, ebp
mov rcx, rsi
mov qword [rbx], rax
call fcn.140005890
test al, al
jne 0x1400055ab
mov rax, qword [rbx]
sub rax, qword [rbx + 0x10]
mov dword [rdi + 0x30], reloc.WS2_32.dll_recv
mov qword [rdi + 0x38], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
sub rax, qword [rbx + 0x10]
mov rbp, qword [rsp + 0x58]
mov dword [rdi + 0x30], 7
mov qword [rdi + 0x38], rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
jmp 0x140004520