Function at 0x180154c10
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, [0x180605502]
call fcn.180278fb0
nop
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.0x180154c7d.2
movsxd rax, dword [rsp + 0xe8]
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x155304]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x158]
jmp 0x1801552fb
mov eax, dword [rsp + 0x148]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x148], 7
je 0x180154caa
cmp dword [rsp + 0x148], 0xb
jne 0x180154cb4
mov dword [rsp + 0x20], 8
jmp 0x180154cc6
cmp dword [rsp + 0x148], 0xd
jne 0x180154cc6
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.1800c1bd0
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.1800c1bd0
mov dword [rax], 0
cmp dword [rsp + 0x158], 3
jne 0x180154d36
mov rcx, qword [rsp + 0x168]
call fcn.1800d1630
mov byte [rsp + 0x100], al
jmp 0x180154d4a
mov rcx, qword [rsp + 0x168]
call fcn.1800d1550
mov byte [rsp + 0x100], al
movzx eax, byte [rsp + 0x100]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
test eax, eax
jne 0x180154dcd
mov rcx, qword [rsp + 0x140]
call fcn.1800cea80
movzx eax, al
test eax, eax
jne 0x180154d75
jmp 0x180154d98
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x40]
call fcn.180037f70
lea rdx, [0x18058e260]
lea rcx, [rsp + 0x40]
call fcn.18027c5f0
nop
mov rcx, qword [rsp + 0x160]
call fcn.180156e20
mov r8, rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x140]
call fcn.1800d10f0
nop
xor eax, eax
test eax, eax
jne 0x180154d5f
mov eax, 1
jmp 0x1801552fb
mov rcx, qword [rsp + 0x160]
call fcn.180156d30
mov eax, dword [rsp + 0x158]
jmp 0x1801552fb
mov r9b, 1
mov r8, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
call fcn.180153090
nop
mov rcx, qword [rsp + 0x140]
call fcn.1800cea80
movzx eax, al
test eax, eax
je 0x180154e27
mov eax, 1
jmp 0x1801552fb
mov eax, dword [rsp + 0x158]
jmp 0x1801552fb
cmp dword [rsp + 0x150], 5
jne 0x180154e3f
jmp 0x180154e62
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x58]
call fcn.180037f70
lea rdx, [0x18058e260]
lea rcx, [rsp + 0x58]
call fcn.18027c5f0
nop
mov rcx, qword [rsp + 0x160]
call fcn.180156d30
mov eax, dword [rsp + 0x158]
jmp 0x1801552fb
mov r8, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
call fcn.1801543a0
nop
mov rcx, qword [rsp + 0x140]
call fcn.1800cea80
movzx eax, al
test eax, eax
je 0x180154eb7
mov eax, 1
jmp 0x1801552fb
mov eax, dword [rsp + 0x158]
jmp 0x1801552fb
mov r8, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
call fcn.1801543a0
nop
mov rcx, qword [rsp + 0x140]
call fcn.1800cea80
movzx eax, al
test eax, eax
je 0x180154eff
mov eax, 1
jmp 0x1801552fb
mov eax, dword [rsp + 0x158]
jmp 0x1801552fb
mov rcx, qword [rsp + 0x160]
call fcn.180156d30
mov rax, qword [rsp + 0x140]
mov rcx, rax
call fcn.1800c33b0
mov eax, dword [rax]
inc eax
mov dword [rsp + 0x104], eax
mov rax, qword [rsp + 0x140]
mov rcx, rax
call fcn.1800c33b0
mov ecx, dword [rsp + 0x104]
mov dword [rax], ecx
mov eax, dword [rsp + 0x158]
jmp 0x1801552fb
xor eax, eax
cmp eax, 1
je 0x180154fd5
cmp dword [rsp + 0x148], 0xc
jne 0x180154fd5
mov rcx, qword [rsp + 0x140]
call fcn.1800cea80
movzx eax, al
test eax, eax
jne 0x180154f7f
jmp 0x180154fa2
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x70]
call fcn.180037f70
lea rdx, [0x18058e260]
lea rcx, [rsp + 0x70]
call fcn.18027c5f0
nop
mov rcx, qword [rsp + 0x160]
call fcn.180156e20
mov r8, rax
mov edx, 4
mov rcx, qword [rsp + 0x140]
call fcn.1800d10f0
nop
xor eax, eax
test eax, eax
jne 0x180154f69
mov eax, 1
jmp 0x1801552fb
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x108], rax
mov edx, 1
mov rcx, qword [rsp + 0x108]
call fcn.1800c1950
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x148], 5
jne 0x180155011
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.1800c1950
mov eax, dword [rax]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 2
jne 0x180155048
mov dword [rsp + 0x2c], 0
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x168]
call fcn.1800cd8d0
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x1801550da
mov rcx, qword [rsp + 0x140]
call fcn.1800cea80
movzx eax, al
test eax, eax
jne 0x18015507c
jmp 0x1801550a5
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x88]
call fcn.180037f70
lea rdx, [0x18058e260]
lea rcx, [rsp + 0x88]
call fcn.18027c5f0
nop
mov rcx, qword [rsp + 0x160]
call fcn.180156e20
mov r8, rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x140]
call fcn.1800d10f0
nop
xor eax, eax
test eax, eax
jne 0x180155066
mov eax, 1
jmp 0x1801552fb
mov rcx, qword [rsp + 0x160]
call fcn.180156d30
mov eax, dword [rsp + 0x2c]
jmp 0x1801552fb
xor eax, eax
cmp eax, 1
je 0x180155173
cmp dword [rsp + 0x148], 0xb
jne 0x180155173
mov rcx, qword [rsp + 0x140]
call fcn.1800cea80
movzx eax, al
test eax, eax
jne 0x180155117
jmp 0x180155140
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0xa0]
call fcn.180037f70
lea rdx, [0x18058e260]
lea rcx, [rsp + 0xa0]
call fcn.18027c5f0
nop
mov rcx, qword [rsp + 0x160]
call fcn.180156e20
mov r8, rax
mov edx, 3
mov rcx, qword [rsp + 0x140]
call fcn.1800d10f0
nop
xor eax, eax
test eax, eax
jne 0x180155101
mov eax, 1
jmp 0x1801552fb
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x118], rax
mov edx, 1
mov rcx, qword [rsp + 0x118]
call fcn.1800c1950
mov eax, dword [rax]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x148], 8
jne 0x1801551af
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.1800c1950
mov eax, dword [rax]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 2
jne 0x1801551e6
mov dword [rsp + 0x38], 0
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x168]
call fcn.1800cd690
mov byte [rsp + 0x3c], al
movzx eax, byte [rsp + 0x3c]
test eax, eax
jne 0x180155278
mov rcx, qword [rsp + 0x140]
call fcn.1800cea80
movzx eax, al
test eax, eax
jne 0x18015521a
jmp 0x180155243
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0xb8]
call fcn.180037f70
lea rdx, [0x18058e260]
lea rcx, [rsp + 0xb8]
call fcn.18027c5f0
nop
mov rcx, qword [rsp + 0x160]
call fcn.180156e20
mov r8, rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x140]
call fcn.1800d10f0
nop
xor eax, eax
test eax, eax
jne 0x180155204
mov eax, 1
jmp 0x1801552fb
mov rcx, qword [rsp + 0x160]
call fcn.180156d30
mov eax, dword [rsp + 0x38]
jmp 0x1801552fb
cmp dword [rsp + 0x158], 0xa
jne 0x180155297
jmp 0x1801552c0
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0xd0]
call fcn.180037f70
lea rdx, [0x18058e260]
lea rcx, [rsp + 0xd0]
call fcn.18027c5f0
nop
mov r8, qword [rsp + 0x168]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
call fcn.1801543a0
nop
mov rcx, qword [rsp + 0x140]
call fcn.1800cea80
movzx eax, al
test eax, eax
je 0x1801552f9
mov eax, 1
jmp 0x1801552fb
xor eax, eax
add rsp, 0x130
pop rdi
ret