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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
lea rcx, [0x1805d5185]
call fcn.18025a230
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0xe8], eax
mov eax, dword [rsp + 0xe8]
dec eax
mov dword [rsp + 0xe8], eax
cmp dword [rsp + 0xe8], 0xc
ja case.0x1800af8bc.2
movsxd rax, dword [rsp + 0xe8]
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0xaff34]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x158]
jmp 0x1800aff2a
mov eax, dword [rsp + 0x148]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x148], 7
je 0x1800af8e9
cmp dword [rsp + 0x148], 0xb
jne 0x1800af8f3
mov dword [rsp + 0x20], 8
jmp 0x1800af905
cmp dword [rsp + 0x148], 0xd
jne 0x1800af905
mov dword [rsp + 0x20], 5
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xf0], rax
mov edx, 1
mov rcx, qword [rsp + 0xf0]
call fcn.1800adee0
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xf8], rax
mov edx, 1
mov rcx, qword [rsp + 0xf8]
call fcn.1800adee0
mov dword [rax], 0
cmp dword [rsp + 0x158], 3
jne 0x1800af975
mov rcx, qword [rsp + 0x168]
call fcn.1800bd840
mov byte [rsp + 0x100], al
jmp 0x1800af989
mov rcx, qword [rsp + 0x168]
call fcn.1800bd770
mov byte [rsp + 0x100], al
movzx eax, byte [rsp + 0x100]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
test eax, eax
jne 0x1800afa0a
mov rcx, qword [rsp + 0x140]
call fcn.1800bad00
movzx eax, al
test eax, eax
jne 0x1800af9b4
jmp 0x1800af9d6
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x40]
call fcn.18002f910
lea rdx, [0x180560778]
lea rcx, [rsp + 0x40]
call fcn.18025d6f0
mov rcx, qword [rsp + 0x160]
call fcn.1800bdc50
mov r8, rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x140]
call fcn.1800bd310
xor eax, eax
test eax, eax
jne 0x1800af99e
mov eax, 1
jmp 0x1800aff2a
mov rcx, qword [rsp + 0x160]
call fcn.1800bdba0
mov eax, dword [rsp + 0x158]
jmp 0x1800aff2a
mov r9b, 1
mov r8, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
call fcn.1800ac6b0
mov rcx, qword [rsp + 0x140]
call fcn.1800bad00
movzx eax, al
test eax, eax
je 0x1800afa63
mov eax, 1
jmp 0x1800aff2a
mov eax, dword [rsp + 0x158]
jmp 0x1800aff2a
cmp dword [rsp + 0x150], 5
jne 0x1800afa7b
jmp 0x1800afa9d
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x58]
call fcn.18002f910
lea rdx, [0x180560778]
lea rcx, [rsp + 0x58]
call fcn.18025d6f0
mov rcx, qword [rsp + 0x160]
call fcn.1800bdba0
mov eax, dword [rsp + 0x158]
jmp 0x1800aff2a
mov r8, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
call fcn.1800ada50
mov rcx, qword [rsp + 0x140]
call fcn.1800bad00
movzx eax, al
test eax, eax
je 0x1800afaf1
mov eax, 1
jmp 0x1800aff2a
mov eax, dword [rsp + 0x158]
jmp 0x1800aff2a
mov r8, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
call fcn.1800ada50
mov rcx, qword [rsp + 0x140]
call fcn.1800bad00
movzx eax, al
test eax, eax
je 0x1800afb38
mov eax, 1
jmp 0x1800aff2a
mov eax, dword [rsp + 0x158]
jmp 0x1800aff2a
mov rcx, qword [rsp + 0x160]
call fcn.1800bdba0
mov rax, qword [rsp + 0x140]
mov rcx, rax
call fcn.1800af670
mov eax, dword [rax]
inc eax
mov dword [rsp + 0x104], eax
mov rax, qword [rsp + 0x140]
mov rcx, rax
call fcn.1800af670
mov ecx, dword [rsp + 0x104]
mov dword [rax], ecx
mov eax, dword [rsp + 0x158]
jmp 0x1800aff2a
xor eax, eax
cmp eax, 1
je 0x1800afc0c
cmp dword [rsp + 0x148], 0xc
jne 0x1800afc0c
mov rcx, qword [rsp + 0x140]
call fcn.1800bad00
movzx eax, al
test eax, eax
jne 0x1800afbb8
jmp 0x1800afbda
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x70]
call fcn.18002f910
lea rdx, [0x180560778]
lea rcx, [rsp + 0x70]
call fcn.18025d6f0
mov rcx, qword [rsp + 0x160]
call fcn.1800bdc50
mov r8, rax
mov edx, 4
mov rcx, qword [rsp + 0x140]
call fcn.1800bd310
xor eax, eax
test eax, eax
jne 0x1800afba2
mov eax, 1
jmp 0x1800aff2a
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x108], rax
mov edx, 1
mov rcx, qword [rsp + 0x108]
call fcn.1800adc60
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x148], 5
jne 0x1800afc48
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x110], rax
mov edx, 1
mov rcx, qword [rsp + 0x110]
call fcn.1800adc60
mov eax, dword [rax]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 2
jne 0x1800afc7f
mov dword [rsp + 0x2c], 0
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x168]
call fcn.1800b9b80
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x1800afd0f
mov rcx, qword [rsp + 0x140]
call fcn.1800bad00
movzx eax, al
test eax, eax
jne 0x1800afcb3
jmp 0x1800afcdb
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x88]
call fcn.18002f910
lea rdx, [0x180560778]
lea rcx, [rsp + 0x88]
call fcn.18025d6f0
mov rcx, qword [rsp + 0x160]
call fcn.1800bdc50
mov r8, rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x140]
call fcn.1800bd310
xor eax, eax
test eax, eax
jne 0x1800afc9d
mov eax, 1
jmp 0x1800aff2a
mov rcx, qword [rsp + 0x160]
call fcn.1800bdba0
mov eax, dword [rsp + 0x2c]
jmp 0x1800aff2a
xor eax, eax
cmp eax, 1
je 0x1800afda6
cmp dword [rsp + 0x148], 0xb
jne 0x1800afda6
mov rcx, qword [rsp + 0x140]
call fcn.1800bad00
movzx eax, al
test eax, eax
jne 0x1800afd4c
jmp 0x1800afd74
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0xa0]
call fcn.18002f910
lea rdx, [0x180560778]
lea rcx, [rsp + 0xa0]
call fcn.18025d6f0
mov rcx, qword [rsp + 0x160]
call fcn.1800bdc50
mov r8, rax
mov edx, 3
mov rcx, qword [rsp + 0x140]
call fcn.1800bd310
xor eax, eax
test eax, eax
jne 0x1800afd36
mov eax, 1
jmp 0x1800aff2a
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x118], rax
mov edx, 1
mov rcx, qword [rsp + 0x118]
call fcn.1800adc60
mov eax, dword [rax]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x148], 8
jne 0x1800afde2
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x120], rax
mov edx, 1
mov rcx, qword [rsp + 0x120]
call fcn.1800adc60
mov eax, dword [rax]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 2
jne 0x1800afe19
mov dword [rsp + 0x38], 0
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x168]
call fcn.1800b9940
mov byte [rsp + 0x3c], al
movzx eax, byte [rsp + 0x3c]
test eax, eax
jne 0x1800afea9
mov rcx, qword [rsp + 0x140]
call fcn.1800bad00
movzx eax, al
test eax, eax
jne 0x1800afe4d
jmp 0x1800afe75
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0xb8]
call fcn.18002f910
lea rdx, [0x180560778]
lea rcx, [rsp + 0xb8]
call fcn.18025d6f0
mov rcx, qword [rsp + 0x160]
call fcn.1800bdc50
mov r8, rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x140]
call fcn.1800bd310
xor eax, eax
test eax, eax
jne 0x1800afe37
mov eax, 1
jmp 0x1800aff2a
mov rcx, qword [rsp + 0x160]
call fcn.1800bdba0
mov eax, dword [rsp + 0x38]
jmp 0x1800aff2a
cmp dword [rsp + 0x158], 0xa
jne 0x1800afec8
jmp 0x1800afef0
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0xd0]
call fcn.18002f910
lea rdx, [0x180560778]
lea rcx, [rsp + 0xd0]
call fcn.18025d6f0
mov r8, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
call fcn.1800ada50
mov rcx, qword [rsp + 0x140]
call fcn.1800bad00
movzx eax, al
test eax, eax
je 0x1800aff28
mov eax, 1
jmp 0x1800aff2a
xor eax, eax
add rsp, 0x130
pop rdi
ret