Function at 0x180040540
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x40], rbx
lea r11, [0x18010b140]
mov qword [rsp + 0x28], rdi
lea rbx, [0x180000000]
mov qword [rsp + 0x20], r12
mov r8, rdx
mov qword [rsp + 0x18], r13
xor r12b, r12b
mov r9, rcx
mov qword [rsp + 8], r15
xor r13b, r13b
mov dword [rsp + 0x68], r12d
xor dl, dl
mov rdi, r8
xor eax, eax
mov ecx, Ordinal_41
rep stosb byte [rdi], al
mov r10b, reloc.WS2_32.dll_recv
nop dword [rax]
nop word [rax + rax]
movzx edi, byte [r9]
inc r9
lea eax, [rdi - 0x26]
cmp eax, 0xcd
ja case.0x1800405c5.44
cdqe
movzx eax, byte [rbx + rax + 0x40c24]
mov ecx, dword [rbx + rax*4 + 0x40c08]
add rcx, rbx
jmp rcx
mov byte [r8 + 1], dil
or dl, 4
jmp 0x1800405fb
mov byte [r8 + 1], dil
or dl, 2
jmp 0x1800405fb
mov byte [r8 + 2], dil
or dl, 0x20
jmp 0x1800405fb
mov byte [r8 + 3], dil
or dl, 0x40
jmp 0x1800405fb
mov byte [r8 + 4], dil
or dl, 8
jmp 0x1800405fb
mov byte [r8 + 5], dil
or dl, 0x10
add r10b, 0xff
jne 0x1800405a0
movzx eax, dl
mov ebx, 1
mov qword [rsp + 0x38], rbp
mov ecx, ebx
movzx r10d, dl
shl r10d, 0x17
test dl, dl
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x10], r14
cmovne ecx, eax
mov dword [r8 + 0x21], r10d
movzx eax, dil
and al, 0xf0
cmp al, 0x40
jne 0x18004069c
bts r10d, 0x1e
movzx eax, dil
shr al, 3
and al, bl
mov dword [r8 + 0x21], r10d
mov byte [r8 + 7], al
je 0x180040662
movzx eax, byte [r9]
and al, 0xf8
movzx r12d, r12b
cmp al, 0xb8
cmove r12d, ebx
mov dword [rsp + 0x68], r12d
movzx eax, dil
shr al, 2
and al, bl
mov byte [r8 + 8], al
movzx eax, dil
shr al, 1
and dil, bl
and al, bl
mov byte [r8 + 0xa], dil
mov byte [r8 + 9], al
movzx edi, byte [r9]
inc r9
movzx eax, dil
and al, 0xf0
cmp al, 0x40
jne 0x18004069c
movzx r14d, dil
movzx esi, cl
jmp 0x180040702
mov byte [r8 + 0xb], dil
movzx esi, cl
cmp dil, 0xf
jne 0x1800406bd
movzx edi, byte [r9]
lea r11, [0x18010b18a]
mov byte [r8 + 0xc], dil
inc r9
jmp 0x1800406e0
cmp dil, 0xa0
jb 0x1800406e0
cmp dil, 0xa3
ja 0x1800406e0
inc r12b
mov dword [rsp + 0x68], r12d
test cl, 0x10
je 0x1800406dc
or sil, 8
jmp 0x1800406e0
and sil, 0xf7
movzx edx, dil
movzx r14d, dil
mov eax, edx
and edx, 3
shr rax, 2
movzx eax, byte [rax + r11]
add rax, r11
movzx ebx, byte [rdx + rax]
cmp bl, 0xff
jne 0x180040726
or r10d, 0x3000
movzx eax, dil
and eax, 0xfffffffd
mov dword [r8 + 0x21], r10d
xor bl, bl
cmp al, 0x24
jne 0x180040726
mov bl, 1
mov byte [rsp + 0x60], dil
xor bpl, bpl
jmp 0x180040741
xor bpl, bpl
mov byte [rsp + 0x60], dil
test bl, bl
jns 0x180040741
and ebx, 0x7f
movzx ebx, word [rbx + r11]
movzx ebp, bx
shr bp, 8
movzx r15d, byte [r8 + 0xc]
mov r11d, r10d
test r15b, r15b
je 0x18004078b
movzx edx, dil
lea rcx, [0x18010b140]
mov eax, edx
and edx, 3
shr rax, 2
movzx ecx, byte [rax + rcx + 0x13c]
add rcx, rdx
lea rdx, [0x18010b140]
test byte [rcx + rdx + 0x13c], sil
je 0x180040792
or r11d, 0x3000
mov dword [r8 + 0x21], r11d
jmp 0x180040792
lea rdx, [0x18010b140]
test bl, 1
je 0x180040aec
or r11d, 1
mov dword [r8 + 0x21], r11d
mov edi, r11d
movzx r10d, byte [r9]
movzx r12d, r10b
mov byte [r8 + 0xd], r10b
movzx ecx, r10b
shr r12b, 6
and cl, 7
shr r10b, 3
and r10b, 7
mov byte [r8 + 0xe], r12b
mov byte [rsp + 0x58], cl
mov byte [r8 + 0x10], cl
mov byte [r8 + 0xf], r10b
test bpl, bpl
je 0x1800407f7
movzx ecx, r10b
movzx eax, bpl
shl eax, cl
movzx ecx, byte [rsp + 0x58]
test al, al
jns 0x1800407f7
or edi, 0x3000
mov dword [r8 + 0x21], edi
mov eax, edi
test r15b, r15b
jne 0x180040852
cmp r14b, 0xd9
jb 0x180040852
cmp r14b, 0xdf
ja 0x180040852
lea eax, [r14 + 0x27]
movzx r11d, al
cmp r12b, 3
jne 0x180040832
movzx eax, r10b
lea rdx, [rax + r11*8]
lea rax, [0x18010b140]
movzx r11d, byte [rdx + rax + 0x104]
jmp 0x18004083f
movzx r11d, byte [r11 + rdx + 0xfd]
movzx ecx, r10b
shl r11b, cl
mov eax, edi
test r11b, r11b
jns 0x180040852
or eax, 0x3000
mov dword [r8 + 0x21], eax
test sil, 0x20
je 0x1800408b8
cmp r12b, 3
jne 0x180040869
or eax, 0x9000
mov dword [r8 + 0x21], eax
jmp 0x1800408b8
movzx edx, r14b
test r15b, r15b
jne 0x180040885
and dl, 0xfe
lea rdi, [0x18010b306]
lea rcx, [0x18010b2ee]
jmp 0x180040893
lea rdi, [0x18010b318]
lea rcx, [0x18010b306]
cmp byte [rcx], dl
je 0x1800408a2
add rcx, 2
cmp rcx, rdi
jne 0x180040893
jmp 0x1800408b0
movzx eax, byte [rcx + 1]
movzx ecx, r10b
shl eax, cl
test al, al
jns 0x1800408b8
or dword [r8 + 0x21], 0x9000
movzx ecx, byte [rsp + 0x60]
mov edx, ecx
test r15b, r15b
je 0x180040908
sub edx, 0x20
je 0x1800408ec
sub edx, 1
je 0x1800408d8
sub edx, 1
je 0x1800408ec
cmp edx, 1
jne 0x18004091d
lea eax, [r10 - 4]
mov r12b, 3
cmp al, 1
ja 0x1800409ba
jmp 0x1800409b2
mov r12b, 3
cmp r10b, 4
ja 0x1800409b2
cmp r10b, 1
jne 0x1800409ba
jmp 0x1800409b2
sub edx, 0x8c
je 0x1800409ac
cmp edx, 2
je 0x1800409a6
movzx eax, byte [r8 + 0xc]
cmp r12b, 3
jne 0x180040979
test al, al
lea rcx, [0x18010b327]
lea rdx, [0x18010b351]
cmove rdx, rcx
lea rdi, [0x18010b318]
lea rcx, [0x18010b327]
cmove rcx, rdi
cmp rcx, rdx
je 0x1800409ba
cmp byte [rcx], r14b
je 0x180040963
add rcx, 3
cmp rcx, rdx
jne 0x180040953
jmp 0x1800409ba
test byte [rcx + 1], sil
je 0x1800409ba
movzx eax, byte [rcx + 2]
movzx ecx, r10b
shl eax, cl
test al, al
jns 0x1800409b2
jmp 0x1800409ba
test al, al
je 0x1800409ba
sub ecx, 0x50
je 0x180040996
sub ecx, 0x75
je 0x1800409b2
sub ecx, 0x11
je 0x18004099e
sub ecx, 1
je 0x180040996
cmp ecx, 0x20
jne 0x1800409ba
test sil, 9
jne 0x1800409b2
jmp 0x1800409ba
test sil, 6
jne 0x1800409b2
jmp 0x1800409ba
cmp r10b, 1
je 0x1800409b2
cmp r10b, 5
jbe 0x1800409ba
or dword [r8 + 0x21], 0x11000
movzx edx, byte [r9 + 1]
add r9, 2
cmp r10b, 1
ja 0x1800409dd
cmp r14b, 0xf6
jne 0x1800409d4
or bl, 2
jmp 0x1800409dd
cmp r14b, 0xf7
jne 0x1800409dd
or bl, 0x10
movzx ecx, r12b
mov edi, 4
test r12b, r12b
je 0x180040a13
sub ecx, 1
je 0x180040a09
cmp ecx, 1
movzx ecx, byte [rsp + 0x58]
jne 0x180040a3a
mov r13b, 2
test sil, 0x10
jne 0x180040a3a
movzx r13d, dil
jmp 0x180040a3a
movzx ecx, byte [rsp + 0x58]
mov r13b, 1
jmp 0x180040a3a
movzx ecx, byte [rsp + 0x58]
test sil, 0x10
je 0x180040a2f
xor eax, eax
mov r13d, 2
cmp cl, 6
cmovne r13d, eax
jmp 0x180040a3a
cmp cl, 5
movzx r13d, r13b
cmove r13d, edi
cmp r12b, 3
je 0x180040a7f
cmp cl, dil
jne 0x180040a7f
or dword [r8 + 0x21], 2
movzx eax, dl
shr al, 6
inc r9
mov byte [r8 + 0x12], al
movzx eax, dl
shr al, 3
and al, 7
mov byte [r8 + 0x11], dl
and dl, 7
mov byte [r8 + 0x13], al
mov byte [r8 + 0x14], dl
cmp dl, 5
jne 0x180040a7f
test r12b, 1
movzx r13d, r13b
cmove r13d, edi
dec r9
movzx ecx, r13b
sub ecx, 1
je 0x180040ad1
sub ecx, 1
je 0x180040ab2
cmp ecx, 2
jne 0x180040ade
or dword [r8 + 0x21], 0x100
mov eax, dword [r9]
mov r12d, dword [rsp + 0x68]
mov dword [r8 + 0x1d], eax
movzx eax, r13b
add r9, rax
jmp 0x180040afd
or dword [r8 + 0x21], 0x80
movzx eax, word [r9]
mov r12d, dword [rsp + 0x68]
mov word [r8 + 0x1d], ax
movzx eax, r13b
add r9, rax
jmp 0x180040afd
or dword [r8 + 0x21], 0x40
movzx eax, byte [r9]
mov byte [r8 + 0x1d], al
mov r12d, dword [rsp + 0x68]
movzx eax, r13b
add r9, rax
jmp 0x180040afd
test sil, 0x20
je 0x180040afd
or r11d, 0x9000
mov dword [r8 + 0x21], r11d
mov r15, qword [rsp + 8]
mov r14, qword [rsp + 0x10]
mov r13, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x38]
test bl, 0x10
je 0x180040b6d
test bl, 0x40
je 0x180040b40
test sil, 8
je 0x180040b9e
or dword [r8 + 0x21], 0x208
movzx eax, word [r9]
add r9, 2
mov word [r8 + 0x15], ax
jmp 0x180040bcb
test r12b, r12b
je 0x180040b57
or dword [r8 + 0x21], 0x20
mov rax, qword [r9]
add r9, 8
mov qword [r8 + 0x15], rax
jmp 0x180040b6d
test sil, 8
jne 0x180040b72
or dword [r8 + 0x21], 0x10
mov eax, dword [r9]
add r9, 4
mov dword [r8 + 0x15], eax
test bl, 4
je 0x180040b84
or dword [r8 + 0x21], 8
movzx eax, word [r9]
add r9, 2
mov word [r8 + 0x15], ax
test bl, 2
je 0x180040b99
or dword [r8 + 0x21], 4
movzx eax, byte [r9]
inc r9
mov byte [r8 + 0x15], al
test bl, 0x40
je 0x180040bb3
or dword [r8 + 0x21], 0x210
mov eax, dword [r9]
add r9, 4
mov dword [r8 + 0x15], eax
jmp 0x180040bcb
test bl, 0x20
je 0x180040bcb
or dword [r8 + 0x21], 0x204
movzx eax, byte [r9]
inc r9
mov byte [r8 + 0x15], al
sub r9b, byte [rsp + 0x50]
mov r12, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov byte [r8], r9b
cmp r9b, 0xf
jbe 0x180040bfe
or dword [r8 + 0x21], 0x5000
mov al, reloc.WS2_32.dll_ntohs
movzx eax, al
mov byte [r8], reloc.WS2_32.dll_ntohs
add rsp, 0x48
ret
movzx eax, r9b
add rsp, 0x48
ret