Function at 0x18022d4c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov rax, qword [0x18057d540]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x150]
call fcn.180058600
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x50]
call fcn.180068d10
nop
lea rcx, [rsp + 0xc8]
call fcn.1800aa530
movzx eax, al
test eax, eax
je 0x18022d52d
mov byte [rsp + 0x26], 0
jmp 0x18022d53b
mov rcx, qword [rsp + 0x50]
call fcn.180069980
mov byte [rsp + 0x26], al
movzx eax, byte [rsp + 0x26]
mov byte [rsp + 0x21], al
mov dword [rsp + 0x68], 0x16
mov dword [rsp + 0x6c], 0x18
mov rcx, qword [rsp + 0x150]
call fcn.1800d8190
mov qword [rsp + 0x80], rax
lea rcx, [0x1804b9ba8]
call fcn.18022dcc0
mov qword [rsp + 0x70], rax
lea rcx, [0x1804b9ba8]
call fcn.18022dca0
mov qword [rsp + 0x78], rax
lea r9, [rsp + 0xf0]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call fcn.1801b9010
mov byte [rsp + 0x22], 0
movsx eax, byte [rsp + 0x21]
test eax, eax
je 0x18022d601
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x138]
call fcn.18022bd50
movzx eax, al
test eax, eax
jne 0x18022d601
mov rcx, qword [rsp + 0x138]
call fcn.18022df50
movsx eax, al
movsx ecx, byte [rsp + 0x21]
cmp eax, ecx
jne 0x18022d601
mov rcx, qword [rsp + 0x138]
call fcn.18022e000
mov byte [rsp + 0x22], 1
jmp 0x18022d5b8
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x138]
call fcn.18022bd50
movzx eax, al
test eax, eax
jne 0x18022d6be
mov rcx, qword [rsp + 0x138]
call fcn.18022df50
movsx eax, al
mov ecx, 1
imul rcx, rcx, 0x17
movsx ecx, byte [rsp + rcx + 0xf0]
cmp eax, ecx
jne 0x18022d677
mov rax, qword [rsp + 0x30]
mov byte [rax], 0x2b
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x138]
call fcn.18022e000
jmp 0x18022d6be
mov rcx, qword [rsp + 0x138]
call fcn.18022df50
movsx eax, al
mov ecx, 1
imul rcx, rcx, 0x16
movsx ecx, byte [rsp + rcx + 0xf0]
cmp eax, ecx
jne 0x18022d6be
mov rax, qword [rsp + 0x30]
mov byte [rax], 0x2d
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x138]
call fcn.18022e000
movsx eax, byte [rsp + 0x21]
test eax, eax
je 0x18022d710
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x138]
call fcn.18022bd50
movzx eax, al
test eax, eax
jne 0x18022d710
mov rcx, qword [rsp + 0x138]
call fcn.18022df50
movsx eax, al
movsx ecx, byte [rsp + 0x21]
cmp eax, ecx
jne 0x18022d710
mov rcx, qword [rsp + 0x138]
call fcn.18022e000
mov byte [rsp + 0x22], 1
jmp 0x18022d6c7
mov eax, dword [rsp + 0x148]
and eax, 0xe00
mov dword [rsp + 0x148], eax
cmp dword [rsp + 0x148], 0x400
jne 0x18022d737
mov byte [rsp + 0x20], 8
jmp 0x18022d761
cmp dword [rsp + 0x148], 0x800
jne 0x18022d74b
mov byte [rsp + 0x20], reloc.WS2_32.dll_recv
jmp 0x18022d761
cmp dword [rsp + 0x148], 0
jne 0x18022d75c
mov byte [rsp + 0x20], 0
jmp 0x18022d761
mov byte [rsp + 0x20], 0xa
mov byte [rsp + 0x23], 0
mov byte [rsp + 0x25], 0
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x138]
call fcn.18022bd50
movzx eax, al
test eax, eax
jne 0x18022d866
mov rcx, qword [rsp + 0x138]
call fcn.18022df50
movsx eax, al
mov ecx, 1
imul rcx, rcx, 0
movsx ecx, byte [rsp + rcx + 0xf0]
cmp eax, ecx
jne 0x18022d866
mov byte [rsp + 0x23], 1
mov rcx, qword [rsp + 0x138]
call fcn.18022e000
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x138]
call fcn.18022bd50
movzx eax, al
test eax, eax
jne 0x18022d858
mov rcx, qword [rsp + 0x138]
call fcn.18022df50
movsx eax, al
mov ecx, 1
imul rcx, rcx, 0x19
movsx ecx, byte [rsp + rcx + 0xf0]
cmp eax, ecx
je 0x18022d82c
mov rcx, qword [rsp + 0x138]
call fcn.18022df50
movsx eax, al
mov ecx, 1
imul rcx, rcx, 0x18
movsx ecx, byte [rsp + rcx + 0xf0]
cmp eax, ecx
jne 0x18022d858
movsx eax, byte [rsp + 0x20]
test eax, eax
je 0x18022d83f
movsx eax, byte [rsp + 0x20]
cmp eax, 0x10
jne 0x18022d858
mov byte [rsp + 0x20], reloc.WS2_32.dll_recv
mov byte [rsp + 0x23], 0
mov rcx, qword [rsp + 0x138]
call fcn.18022e000
jmp 0x18022d866
movsx eax, byte [rsp + 0x20]
test eax, eax
jne 0x18022d866
mov byte [rsp + 0x20], 8
movsx eax, byte [rsp + 0x20]
test eax, eax
je 0x18022d89f
movsx eax, byte [rsp + 0x20]
cmp eax, 0xa
je 0x18022d89f
movsx eax, byte [rsp + 0x20]
cmp eax, 8
jne 0x18022d88d
mov dword [rsp + 0x40], 8
jmp 0x18022d895
mov dword [rsp + 0x40], 0x16
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
jmp 0x18022d8a7
mov dword [rsp + 0x44], 0xa
movsxd rax, dword [rsp + 0x44]
mov qword [rsp + 0x88], rax
movzx r8d, byte [rsp + 0x23]
mov edx, 1
lea rcx, [rsp + 0xa0]
call fcn.18010fc70
nop
mov qword [rsp + 0x28], 0
mov eax, 1
imul rax, rax, 0x1f
mov rcx, qword [rsp + 0x130]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
jmp 0x18022d904
mov rcx, qword [rsp + 0x138]
call fcn.18022e000
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x138]
call fcn.18022bd50
movzx eax, al
test eax, eax
jne 0x18022da57
mov rcx, qword [rsp + 0x138]
call fcn.18022df50
movzx edx, al
lea rcx, [rsp + 0xf0]
call fcn.18022bd90
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x58], rax
jae 0x18022d9f0
lea rax, [0x1804b9ba8]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
movzx eax, byte [rax + rdx]
mov byte [rcx], al
movzx eax, byte [rsp + 0x25]
test eax, eax
jne 0x18022d986
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x30
je 0x18022d9a7
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x30], rax
jae 0x18022d9a7
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x25], 1
mov byte [rsp + 0x23], 1
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0xa0]
call fcn.1800e32a0
movsx eax, byte [rax]
cmp eax, 0x7f
je 0x18022d9ee
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0xa0]
call fcn.1800e32a0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
inc al
mov rcx, qword [rsp + 0x60]
mov byte [rcx], al
jmp 0x18022da52
movsx eax, byte [rsp + 0x21]
test eax, eax
je 0x18022da12
mov rcx, qword [rsp + 0x138]
call fcn.18022df50
movsx eax, al
movsx ecx, byte [rsp + 0x21]
cmp eax, ecx
je 0x18022da16
jmp 0x18022da57
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0xa0]
call fcn.1800e32a0
movsx eax, byte [rax]
test eax, eax
jne 0x18022da36
mov byte [rsp + 0x22], 1
jmp 0x18022da52
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.1800d2ea0
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x18022d8f7
cmp qword [rsp + 0x28], 0
je 0x18022da8c
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0xa0]
call fcn.1800e32a0
movsx eax, byte [rax]
test eax, eax
jle 0x18022da87
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x18022da8c
mov byte [rsp + 0x22], 1
movsx eax, byte [rsp + 0x21]
test eax, eax
je 0x18022dade
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x138]
call fcn.18022bd50
movzx eax, al
test eax, eax
jne 0x18022dade
mov rcx, qword [rsp + 0x138]
call fcn.18022df50
movsx eax, al
movsx ecx, byte [rsp + 0x21]
cmp eax, ecx
jne 0x18022dade
mov rcx, qword [rsp + 0x138]
call fcn.18022e000
mov byte [rsp + 0x22], 1
jmp 0x18022da95
lea rcx, [rsp + 0xc8]
call fcn.180039b40
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xc8]
call fcn.180069920
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov byte [rsp + 0x24], 0
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x18022dbd9
movzx eax, byte [rsp + 0x22]
test eax, eax
jne 0x18022dbd9
cmp qword [rsp + 0x28], 0
jbe 0x18022dbd9
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x48], rax
je 0x18022db63
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x24], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
dec rax
mov qword [rsp + 0x28], rax
movsx eax, byte [rsp + 0x24]
test eax, eax
jle 0x18022dbd4
movsx eax, byte [rsp + 0x24]
cmp eax, 0x7f
je 0x18022dbd4
cmp qword [rsp + 0x28], 0
jbe 0x18022dba9
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0xa0]
call fcn.1800e32a0
movsx eax, byte [rax]
movsx ecx, byte [rsp + 0x24]
cmp eax, ecx
jne 0x18022dbcf
cmp qword [rsp + 0x28], 0
jne 0x18022dbd4
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0xa0]
call fcn.1800e32a0
movsx eax, byte [rax]
movsx ecx, byte [rsp + 0x24]
cmp eax, ecx
jle 0x18022dbd4
mov byte [rsp + 0x22], 1
jmp 0x18022db15
movzx eax, byte [rsp + 0x23]
test eax, eax
jne 0x18022dc1e
movsx eax, byte [rsp + 0x20]
not eax
mov byte [rsp + 0x38], al
mov byte [rsp + 0x39], 0
movzx eax, word [rsp + 0x38]
mov word [rsp + 0x3c], ax
lea rcx, [rsp + 0xa0]
call fcn.1800367a0
nop
lea rcx, [rsp + 0xc8]
call fcn.1800367a0
movzx eax, word [rsp + 0x3c]
jmp 0x18022dc80
movzx eax, byte [rsp + 0x25]
test eax, eax
jne 0x18022dc3c
mov rax, qword [rsp + 0x30]
mov byte [rax], 0x30
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov byte [rax], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x3a], al
movzx eax, byte [rsp + 0x22]
mov byte [rsp + 0x3b], al
movzx eax, word [rsp + 0x3a]
mov word [rsp + 0x3e], ax
lea rcx, [rsp + 0xa0]
call fcn.1800367a0
nop
lea rcx, [rsp + 0xc8]
call fcn.1800367a0
movzx eax, word [rsp + 0x3e]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1802649f0
add rsp, 0x128
ret