Function at 0x180030f30
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov qword [rax - 0x38], r14
xor esi, esi
cmp byte [0x180041ab5], sil
movabs r13, 0x5ec174aca2016112
mov qword [rax - 0x40], r15
movabs r12, 0x39017b04372713bb
movabs rax, 0x3f8361a8bd0c6b04
movabs r15, 0x1eb868a2aa0d5c1f
movabs rdi, 0xf427de46c6d3be37
movabs r14, 0xe405ec10b0f0f20e
jne 0x180031084
mov qword [rsp + 0x60], rax
mov r10d, esi
movabs rax, 0x4d643570586340fb
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], rax
mov r11, rdi
nop dword [rax]
mov rax, qword [rsp + r10*8 + 0x60]
mov r9d, r10d
neg r9d
mov r8, r11
and r9d, 0xf
rol r8, 3
not r8
rol r11, 1
mov rdx, r8
mov ecx, r9d
neg ecx
and ecx, 0x3f
shl rdx, cl
mov ecx, r9d
shr r8, cl
or rdx, r8
xor rdx, rax
mov qword [rsp + r10*8 + 0x60], rdx
inc r10
cmp r10, 3
jb 0x180030fc0
mov rax, qword gs:[0x30]
mov r11d, esi
mov rcx, qword [rax + 0x60]
mov rbx, qword [rcx + 0x18]
add rbx, 0x20
mov r9, qword [rbx]
cmp r9, rbx
je 0x18003107d
movzx eax, word [r9 + 0x48]
test ax, ax
je 0x180031072
mov r10, qword [r9 + 0x50]
test r10, r10
je 0x180031072
test r11d, r11d
js 0x180031072
mov r8d, eax
mov edx, esi
shr r8d, 1
je 0x180031065
nop word [rax + rax]
mov ecx, edx
movsx eax, byte [rsp + rcx + 0x60]
cmp word [r10 + rcx*2], ax
jne 0x180031072
inc edx
cmp edx, r8d
jb 0x180031050
mov eax, edx
cmp byte [rsp + rax + 0x60], sil
je 0x1800317e4
mov r9, qword [r9]
inc r11d
cmp r9, rbx
jne 0x180031024
mov qword [0x180039f38], rsi
cmp byte [0x180041ab6], sil
jne 0x180031184
movabs rax, 0x2c9161a8bd0c6b04
mov qword [rbp - 0x78], r14
mov qword [rsp + 0x78], rax
mov r10, rsi
movabs rax, 0x4a731477444246e7
mov r11, rdi
mov qword [rbp - 0x80], rax
nop dword [rax + rax]
mov rax, qword [rsp + r10*8 + 0x78]
mov r9d, r10d
neg r9d
mov r8, r11
and r9d, 0xf
rol r8, 3
not r8
rol r11, 1
mov rdx, r8
mov ecx, r9d
neg ecx
and ecx, 0x3f
shl rdx, cl
mov ecx, r9d
shr r8, cl
or rdx, r8
xor rdx, rax
mov qword [rsp + r10*8 + 0x78], rdx
inc r10
cmp r10, 3
jb 0x1800310c0
mov rax, qword gs:[0x30]
mov r11d, esi
mov rcx, qword [rax + 0x60]
mov rbx, qword [rcx + 0x18]
add rbx, 0x20
mov r9, qword [rbx]
cmp r9, rbx
je 0x18003117d
movzx eax, word [r9 + 0x48]
test ax, ax
je 0x180031172
mov r10, qword [r9 + 0x50]
test r10, r10
je 0x180031172
test r11d, r11d
js 0x180031172
mov r8d, eax
mov edx, esi
shr r8d, 1
je 0x180031165
nop word [rax + rax]
mov ecx, edx
movsx eax, byte [rsp + rcx + 0x78]
cmp word [r10 + rcx*2], ax
jne 0x180031172
inc edx
cmp edx, r8d
jb 0x180031150
mov eax, edx
cmp byte [rsp + rax + 0x78], sil
je 0x180031937
mov r9, qword [r9]
inc r11d
cmp r9, rbx
jne 0x180031124
mov qword [0x180039f40], rsi
cmp byte [0x180041ab7], sil
jne 0x1800312a4
movabs rax, 0x36b562a69d245e17
mov r10, rsi
mov qword [rbp + 0x20], rax
mov r11, rdi
movabs rax, 0x56680f67524b40db
mov qword [rbp + 0x28], rax
movabs rax, 0x886a9e64b2f3d54e
mov qword [rbp + 0x30], rax
movabs rax, 0xf439d53013306af5
mov qword [rbp + 0x38], rax
movabs rax, 0x405ec10dc9c90e62
mov qword [rbp + 0x40], rax
nop dword [rax]
mov rax, qword [rbp + r10*8 + 0x20]
mov r9d, r10d
neg r9d
mov r8, r11
and r9d, 0xf
rol r8, 3
not r8
rol r11, 1
mov rdx, r8
mov ecx, r9d
neg ecx
and ecx, 0x3f
shl rdx, cl
mov ecx, r9d
shr r8, cl
or rdx, r8
xor rdx, rax
mov qword [rbp + r10*8 + 0x20], rdx
inc r10
cmp r10, 5
jb 0x1800311e0
mov rax, qword gs:[0x30]
mov r11d, esi
mov rcx, qword [rax + 0x60]
mov rbx, qword [rcx + 0x18]
add rbx, 0x20
mov r9, qword [rbx]
cmp r9, rbx
je 0x18003129d
movzx eax, word [r9 + 0x48]
test ax, ax
je 0x180031292
mov r10, qword [r9 + 0x50]
test r10, r10
je 0x180031292
test r11d, r11d
js 0x180031292
mov r8d, eax
mov edx, esi
shr r8d, 1
je 0x180031285
nop word [rax + rax]
mov ecx, edx
movsx eax, byte [rbp + rcx + 0x20]
cmp word [r10 + rcx*2], ax
jne 0x180031292
inc edx
cmp edx, r8d
jb 0x180031270
mov eax, edx
cmp byte [rbp + rax + 0x20], sil
je 0x180031aa5
mov r9, qword [r9]
inc r11d
cmp r9, rbx
jne 0x180031244
mov qword [0x180039f50], rsi
movabs r12, 0x5ec10dc9c9620e40
cmp byte [0x180041ab9], sil
jne 0x1800313c4
movabs rax, 0x1dae7fac9d0b772d
mov r10, rsi
mov qword [rbp - 0x40], rax
mov r11, rdi
movabs rax, 0x4b6e0f6752494be7
mov qword [rbp - 0x38], rax
movabs rax, 0x802bd826b9eff762
mov qword [rbp - 0x30], rax
movabs rax, 0x9017b043727234ef
mov qword [rbp - 0x28], rax
nop dword [rax]
mov rax, qword [rbp + r10*8 - 0x40]
mov r9d, r10d
neg r9d
mov r8, r11
and r9d, 0xf
rol r8, 3
not r8
rol r11, 1
mov rdx, r8
mov ecx, r9d
neg ecx
and ecx, 0x3f
shl rdx, cl
mov ecx, r9d
shr r8, cl
or rdx, r8
xor rdx, rax
mov qword [rbp + r10*8 - 0x40], rdx
inc r10
cmp r10, 4
jb 0x180031300
mov rax, qword gs:[0x30]
mov r11d, esi
mov rcx, qword [rax + 0x60]
mov rbx, qword [rcx + 0x18]
add rbx, 0x20
mov r9, qword [rbx]
cmp r9, rbx
je 0x1800313bd
movzx eax, word [r9 + 0x48]
test ax, ax
je 0x1800313b2
mov r10, qword [r9 + 0x50]
test r10, r10
je 0x1800313b2
test r11d, r11d
js 0x1800313b2
mov r8d, eax
mov edx, esi
shr r8d, 1
je 0x1800313a5
nop word [rax + rax]
mov ecx, edx
movsx eax, byte [rbp + rcx - 0x40]
cmp word [r10 + rcx*2], ax
jne 0x1800313b2
inc edx
cmp edx, r8d
jb 0x180031390
mov eax, edx
cmp byte [rbp + rax - 0x40], sil
je 0x180031b49
mov r9, qword [r9]
inc r11d
cmp r9, rbx
jne 0x180031364
mov qword [0x180039f60], rsi
cmp byte [0x180041aba], sil
jne 0x1800314d4
movabs rax, 0x2ca46bbaa7037c14
mov r10, rsi
mov qword [rbp - 0x20], rax
mov r11, rdi
movabs rax, 0x5768095473144adc
mov qword [rbp - 0x18], rax
movabs rax, 0xd2609f719eeef354
mov qword [rbp - 0x10], rax
movabs rax, 0x9017b02f1e1676b7
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp + r10*8 - 0x20]
mov r9d, r10d
neg r9d
mov r8, r11
and r9d, 0xf
rol r8, 3
not r8
rol r11, 1
mov rdx, r8
mov ecx, r9d
neg ecx
and ecx, 0x3f
shl rdx, cl
mov ecx, r9d
shr r8, cl
or rdx, r8
xor rdx, rax
mov qword [rbp + r10*8 - 0x20], rdx
inc r10
cmp r10, 4
jb 0x180031410
mov rax, qword gs:[0x30]
mov r11d, esi
mov rcx, qword [rax + 0x60]
mov rbx, qword [rcx + 0x18]
add rbx, 0x20
mov r9, qword [rbx]
cmp r9, rbx
je 0x1800314cd
movzx eax, word [r9 + 0x48]
test ax, ax
je 0x1800314c2
mov r10, qword [r9 + 0x50]
test r10, r10
je 0x1800314c2
test r11d, r11d
js 0x1800314c2
mov r8d, eax
mov edx, esi
shr r8d, 1
je 0x1800314b5
nop word [rax + rax]
mov ecx, edx
movsx eax, byte [rbp + rcx - 0x20]
cmp word [r10 + rcx*2], ax
jne 0x1800314c2
inc edx
cmp edx, r8d
jb 0x1800314a0
mov eax, edx
cmp byte [rbp + rax - 0x20], sil
je 0x180031be3
mov r9, qword [r9]
inc r11d
cmp r9, rbx
jne 0x180031474
mov qword [0x180039f58], rsi
cmp byte [0x180041ab8], sil
jne 0x1800316c4
movabs rax, 0x8869883ee8aae54c
movabs r14, 0x1f8261a8bd0c6b04
mov qword [rbp + 0x10], rax
movabs r15, 0x586f0961435f60cc
movabs rax, 0x9017b04372725883
mov qword [rbp], r14
mov qword [rbp + 0x18], rax
mov r10, rsi
mov qword [rbp + 8], r15
mov r11, rdi
nop
mov rax, qword [rbp + r10*8]
mov r9d, r10d
neg r9d
mov r8, r11
and r9d, 0xf
rol r8, 3
not r8
rol r11, 1
mov rdx, r8
mov ecx, r9d
neg ecx
and ecx, 0x3f
shl rdx, cl
mov ecx, r9d
shr r8, cl
or rdx, r8
xor rdx, rax
mov qword [rbp + r10*8], rdx
inc r10
cmp r10, 4
jb 0x180031520
mov rax, qword gs:[0x30]
mov r11d, esi
mov rcx, qword [rax + 0x60]
mov rbx, qword [rcx + 0x18]
add rbx, 0x20
mov r9, qword [rbx]
cmp r9, rbx
je 0x1800315dd
movzx eax, word [r9 + 0x48]
test ax, ax
je 0x1800315d2
mov r10, qword [r9 + 0x50]
test r10, r10
je 0x1800315d2
test r11d, r11d
js 0x1800315d2
mov r8d, eax
mov edx, esi
shr r8d, 1
je 0x1800315c5
nop word [rax + rax]
mov ecx, edx
movsx eax, byte [rbp + rcx]
cmp word [r10 + rcx*2], ax
jne 0x1800315d2
inc edx
cmp edx, r8d
jb 0x1800315b0
mov eax, edx
cmp byte [rbp + rax], sil
je 0x180031c75
mov r9, qword [r9]
inc r11d
cmp r9, rbx
jne 0x180031584
mov qword [0x180039f48], rsi
movabs rax, 0xe405807cb8b2e54c
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x60], rax
mov r10, rsi
mov qword [rbp - 0x68], r15
mov r11, rdi
mov rax, qword [rbp + r10*8 - 0x70]
mov r9d, r10d
neg r9d
mov r8, r11
and r9d, 0xf
rol r8, 3
not r8
rol r11, 1
mov rdx, r8
mov ecx, r9d
neg ecx
and ecx, 0x3f
shl rdx, cl
mov ecx, r9d
shr r8, cl
or rdx, r8
xor rdx, rax
mov qword [rbp + r10*8 - 0x70], rdx
inc r10
cmp r10, 3
jb 0x180031600
mov rax, qword gs:[0x30]
mov r11d, esi
mov rcx, qword [rax + 0x60]
mov rbx, qword [rcx + 0x18]
add rbx, 0x20
mov r9, qword [rbx]
cmp r9, rbx
je 0x1800316bd
movzx eax, word [r9 + 0x48]
test ax, ax
je 0x1800316b2
mov r10, qword [r9 + 0x50]
test r10, r10
je 0x1800316b2
test r11d, r11d
js 0x1800316b2
mov r8d, eax
mov edx, esi
shr r8d, 1
je 0x1800316a5
nop word [rax + rax]
mov ecx, edx
movsx eax, byte [rbp + rcx - 0x70]
cmp word [r10 + rcx*2], ax
jne 0x1800316b2
inc edx
cmp edx, r8d
jb 0x180031690
mov eax, edx
cmp byte [rbp + rax - 0x70], sil
je 0x180031d07
mov r9, qword [r9]
inc r11d
cmp r9, rbx
jne 0x180031664
mov qword [0x180039f48], rsi
cmp byte [0x180041ab4], sil
mov r15, qword [rsp + 0x158]
mov r14, qword [rsp + 0x160]
jne 0x1800317d4
movabs rax, 0x3f8361a8bd0c6b04
mov r10, rsi
mov qword [rbp - 0x58], rax
movabs rax, 0x5c771270566940fb
mov qword [rbp - 0x50], rax
movabs rax, 0xe405807cb8b2a216
mov qword [rbp - 0x48], rax
nop
mov rax, qword [rbp + r10*8 - 0x58]
mov r9d, r10d
neg r9d
mov r8, rdi
and r9d, 0xf
rol r8, 3
not r8
rol rdi, 1
mov rdx, r8
mov ecx, r9d
neg ecx
and ecx, 0x3f
shl rdx, cl
mov ecx, r9d
shr r8, cl
or rdx, r8
xor rdx, rax
mov qword [rbp + r10*8 - 0x58], rdx
inc r10
cmp r10, 3
jb 0x180031710
mov rax, qword gs:[0x30]
mov r11d, esi
mov rcx, qword [rax + 0x60]
mov rbx, qword [rcx + 0x18]
add rbx, 0x20
mov r9, qword [rbx]
cmp r9, rbx
je 0x1800317cd
movzx eax, word [r9 + 0x48]
test ax, ax
je 0x1800317c2
mov r10, qword [r9 + 0x50]
test r10, r10
je 0x1800317c2
test r11d, r11d
js 0x1800317c2
mov r8d, eax
mov edx, esi
shr r8d, 1
je 0x1800317b5
nop word [rax + rax]
mov ecx, edx
movsx eax, byte [rbp + rcx - 0x58]
cmp word [r10 + rcx*2], ax
jne 0x1800317c2
inc edx
cmp edx, r8d
jb 0x1800317a0
mov eax, edx
cmp byte [rbp + rax - 0x58], sil
je 0x180031da6
mov r9, qword [r9]
inc r11d
cmp r9, rbx
jne 0x180031774
mov qword [0x180039f30], rsi
add rsp, 0x168
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [r9 + 0x20]
mov qword [0x180039f38], rax
test rax, rax
je 0x180031084
cmp byte [reloc.WS2_32.dll_accept], sil
mov byte [0x180041ab5], 1
je 0x180031084
lea rcx, [0x18003aea0]
call fcn.180021450
test al, al
jne 0x180031084
mov qword [rbp + 0xa0], r13
lea rdx, [rbp + 0xa0]
mov rax, qword [rbp + 0xa0]
movabs rcx, 0x5ec10dc9c9620e40
xor rax, rcx
xor r9d, r9d
mov rcx, qword [0x180039f38]
xor r8d, r8d
mov qword [rbp + 0xa0], rax
call fcn.18000eb10
mov rbx, rax
test rax, rax
jne 0x1800318eb
cmp byte [0x180039f0f], sil
je 0x1800318e3
mov qword [rsp + 0x40], r15
mov r10, rsi
mov qword [rsp + 0x48], r12
mov r11, rdi
mov rax, qword [rsp + r10*8 + 0x40]
mov r9d, r10d
neg r9d
mov r8, r11
and r9d, 0xf
rol r8, 3
not r8
rol r11, 1
mov rdx, r8
mov ecx, r9d
neg ecx
and ecx, 0x3f
shl rdx, cl
mov ecx, r9d
shr r8, cl
or rdx, r8
xor rdx, rax
mov qword [rsp + r10*8 + 0x40], rdx
inc r10
cmp r10, 2
jb 0x180031880
mov rcx, qword [0x180039f38]
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
call fcn.18000eb10
mov rbx, rax
test rax, rax
jne 0x1800318eb
mov eax, dword [0x180039f08]
jmp 0x180031910
mov eax, dword [0x180039f08]
test eax, eax
jne 0x180031910
cmp dword [0x18007e21c], 0xffffffff
je 0x18003191c
mov rcx, qword [0x180039f38]
call fcn.18001c5a0
mov dword [0x180039f08], eax
cmp eax, dword [0x18007e21c]
ja 0x180031084
xor r9d, r9d
lea rcx, [0x18003aea0]
mov rdx, rbx
lea r8d, [r9 + 3]
call fcn.18002d760
jmp 0x180031084
mov rax, qword [r9 + 0x20]
mov qword [0x180039f40], rax
test rax, rax
je 0x180031184
cmp byte [reloc.WS2_32.dll_accept], sil
mov byte [0x180041ab6], 1
je 0x180031a8e
lea rcx, [0x18003af10]
call fcn.180021450
test al, al
jne 0x180031a8e
mov qword [rbp + 0xa8], r13
lea rdx, [rbp + 0xa8]
mov rax, qword [rbp + 0xa8]
movabs rcx, 0x5ec10dc9c9620e40
xor rax, rcx
xor r9d, r9d
mov rcx, qword [0x180039f40]
xor r8d, r8d
mov qword [rbp + 0xa8], rax
call fcn.18000eb10
mov rbx, rax
test rax, rax
jne 0x180031a4b
cmp byte [0x180039f0f], sil
je 0x180031a43
mov qword [rsp + 0x50], r15
mov r10, rsi
mov qword [rsp + 0x58], r12
mov r11, rdi
nop word [rax + rax]
mov rax, qword [rsp + r10*8 + 0x50]
mov r9d, r10d
neg r9d
mov r8, r11
and r9d, 0xf
rol r8, 3
not r8
rol r11, 1
mov rdx, r8
mov ecx, r9d
neg ecx
and ecx, 0x3f
shl rdx, cl
mov ecx, r9d
shr r8, cl
or rdx, r8
xor rdx, rax
mov qword [rsp + r10*8 + 0x50], rdx
inc r10
cmp r10, 2
jb 0x1800319e0
mov rcx, qword [0x180039f40]
lea rdx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
call fcn.18000eb10
mov rbx, rax
test rax, rax
jne 0x180031a4b
mov eax, dword [0x180039f08]
jmp 0x180031a70
mov eax, dword [0x180039f08]
test eax, eax
jne 0x180031a70
cmp dword [0x18007e21c], 0xffffffff
je 0x180031a78
mov rcx, qword [0x180039f40]
call fcn.18001c5a0
mov dword [0x180039f08], eax
cmp eax, dword [0x18007e21c]
ja 0x180031a8e
xor r9d, r9d
lea rcx, [0x18003af10]
mov rdx, rbx
lea r8d, [r9 + 3]
call fcn.18002d8e0
cmp byte [0x180039edf], sil
je 0x180031184
call fcn.1800329a0
jmp 0x180031184
mov rax, qword [r9 + 0x20]
mov qword [0x180039f50], rax
test rax, rax
je 0x1800312a4
cmp byte [reloc.WS2_32.dll_accept], sil
mov byte [0x180041ab7], 1
je 0x1800312a4
lea rcx, [0x18003ae30]
call fcn.180021450
movabs r12, 0x5ec10dc9c9620e40
test al, al
jne 0x1800312ae
mov qword [rbp + 0xb0], r13
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0xb0]
xor r9d, r9d
mov rcx, qword [0x180039f50]
xor rax, r12
xor r8d, r8d
mov qword [rbp + 0xb0], rax
call fcn.18000eb10
mov edx, dword [0x18007e21c]
cmp dword [0x180039f08], edx
ja 0x1800312ae
xor r9d, r9d
lea rcx, [0x18003ae30]
mov rdx, rax
lea r8d, [r9 + 3]
call fcn.18002dc20
jmp 0x1800312ae
mov rax, qword [r9 + 0x20]
mov qword [0x180039f60], rax
test rax, rax
je 0x1800313c4
cmp byte [reloc.WS2_32.dll_accept], sil
mov byte [0x180041ab9], 1
je 0x1800313c4
lea rcx, [0x18003adc0]
call fcn.180021450
test al, al
jne 0x1800313c4
mov qword [rbp + 0xb8], r13
lea rdx, [rbp + 0xb8]
mov rax, qword [rbp + 0xb8]
xor r9d, r9d
mov rcx, qword [0x180039f60]
xor rax, r12
xor r8d, r8d
mov qword [rbp + 0xb8], rax
call fcn.18000eb10
mov edx, dword [0x18007e21c]
cmp dword [0x180039f08], edx
ja 0x1800313c4
xor r9d, r9d
lea rcx, [0x18003adc0]
mov rdx, rax
lea r8d, [r9 + 3]
call fcn.18002daf0
jmp 0x1800313c4
mov rax, qword [r9 + 0x20]
mov qword [0x180039f58], rax
test rax, rax
je 0x1800314d4
cmp byte [reloc.WS2_32.dll_accept], sil
mov byte [0x180041ab9], 1
je 0x1800314d4
lea rcx, [0x18003ad50]
call fcn.180021450
test al, al
jne 0x1800314d4
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x20]
xor r9d, r9d
mov rcx, qword [0x180039f58]
xor rax, r12
xor r8d, r8d
mov qword [rsp + 0x20], rax
call fcn.18000eb10
mov edx, dword [0x18007e21c]
cmp dword [0x180039f08], edx
ja 0x1800314d4
xor r9d, r9d
lea rcx, [0x18003ad50]
mov rdx, rax
lea r8d, [r9 + 3]
call fcn.18002dd50
jmp 0x1800314d4
mov rax, qword [r9 + 0x20]
mov qword [0x180039f48], rax
test rax, rax
je 0x1800315e4
cmp byte [reloc.WS2_32.dll_accept], sil
mov byte [0x180041ab8], 1
je 0x1800315e4
lea rcx, [0x18003ace0]
call fcn.180021450
test al, al
jne 0x1800315e4
mov qword [rsp + 0x28], r13
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x28]
xor r9d, r9d
mov rcx, qword [0x180039f48]
xor rax, r12
xor r8d, r8d
mov qword [rsp + 0x28], rax
call fcn.18000eb10
mov ecx, dword [0x18007e21c]
cmp dword [0x180039f08], ecx
ja 0x1800315e4
xor r9d, r9d
lea rcx, [0x18003ace0]
mov rdx, rax
lea r8d, [r9 + 3]
call fcn.18002d890
jmp 0x1800315e4
mov rax, qword [r9 + 0x20]
mov qword [0x180039f48], rax
test rax, rax
je 0x1800316c4
cmp byte [0x180039f0f], sil
mov byte [0x180041ab8], 1
je 0x1800316c4
cmp byte [reloc.WS2_32.dll_accept], sil
je 0x1800316c4
lea rcx, [0x18003ace0]
call fcn.180021450
test al, al
jne 0x1800316c4
mov qword [rsp + 0x30], r13
lea rdx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
xor r9d, r9d
mov rcx, qword [0x180039f48]
xor rax, r12
xor r8d, r8d
mov qword [rsp + 0x30], rax
call fcn.18000eb10
mov edx, dword [0x18007e21c]
cmp dword [0x180039f08], edx
ja 0x1800316c4
xor r9d, r9d
lea rcx, [0x18003ace0]
mov rdx, rax
lea r8d, [r9 + 3]
call fcn.18002d890
jmp 0x1800316c4
mov rax, qword [r9 + 0x20]
mov qword [0x180039f30], rax
test rax, rax
je 0x1800317d4
cmp byte [reloc.WS2_32.dll_accept], sil
je 0x1800317d4
lea rcx, [0x18003ac70]
call fcn.180021450
test al, al
jne 0x1800317d4
mov qword [rsp + 0x38], r13
lea rdx, [rsp + 0x38]
mov rax, qword [rsp + 0x38]
xor r9d, r9d
mov rcx, qword [0x180039f30]
xor rax, r12
mov byte [0x180041ab4], 1
xor r8d, r8d
mov qword [rsp + 0x38], rax
call fcn.18000eb10
test rax, rax
je 0x1800317d4
mov ecx, dword [0x18007e21c]
cmp dword [0x180039f08], ecx
ja 0x1800317d4
mov qword [0x180039f68], rax
add rsp, 0x168
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret