Function at 0x140003d19
Capabilities:
Create thread

Disassembly:
test rcx, rcx
je 0x140004314
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x240], rbx
mov rax, qword [0x140066d48]
xor rax, rsp
mov qword [rbp + 0xe8], rax
movsxd rbx, edx
mov rdi, rcx
test edx, edx
je 0x1400042eb
or esi, 0xffffffff
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
xor r13d, r13d
mov qword [rbp - 0x68], r13
mov byte [rbp - 0x78], r13b
xor r8d, r8d
lea rdx, [0x140058e80]
lea rcx, [rbp - 0x78]
call fcn.140002550
nop
mov r12d, r13d
mov qword [rbp - 0x20], r13
lea ecx, [rsi + 0x11]
call fcn.1400388b4
test rax, rax
je 0x1400042b9
mov qword [rbp - 0x20], rax
mov qword [rax], r13
mov qword [rax + 8], r13
lea rcx, [rbp - 0x20]
mov rax, qword [rbp - 0x20]
mov qword [rax], rcx
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
mov qword [rbp], r13
lea rcx, [rbp + 0x10]
call fcn.14000a640
mov qword [rbp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x50], r13
mov byte [rbp + 0x40], r13b
mov qword [rbp + 0xa8], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0xa0], r13
mov byte [rbp + 0x90], r13b
mov word [rbp + 0xb8], 1
and dword [rsp + 0x38], 0xfffffe00
mov qword [rsp + 0x40], r13
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x40], r13
mov byte [rbp - 0x50], r13b
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140002550
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x40]
call fcn.140002750
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rdx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x50]
lea r8, [rdx + rax]
lea r9, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140007950
test al, al
je 0x140004272
lea rax, [0x140058ed4]
lea r14, [0x14006a150]
movzx ebx, byte [rsp + 0x38]
test bl, bl
je 0x140003efc
cmp bl, 7
je 0x140003ec8
cmp qword [rbp - 0x38], 0x10
jb 0x140003e9e
mov rcx, qword [rbp - 0x50]
call fcn.140038850
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x40], r13
mov byte [rbp - 0x50], 0
lea rcx, [rsp + 0x30]
call fcn.140005ba0
nop
lea rcx, [rbp - 0x20]
call fcn.140003240
nop
jmp 0x1400042a7
test bl, bl
je 0x140003efc
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], r13d
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.1400068b0
mov rax, qword [rax]
cmp rax, qword [rdi + 8]
je 0x140003f01
add rax, 0x28
jmp 0x140003f04
mov rdi, qword [rsp + 0x30]
mov rax, r14
cmp rax, r14
setne al
test al, al
je 0x14000420e
lea rax, [0x140058ed8]
test bl, bl
je 0x140003f7b
cmp bl, 7
je 0x140003f4c
mov r8d, 0x497
lea rdx, str.jsonjson_value.cpp
lea rcx, str.type___nullValue__type___objectValue
call fcn.14003cf40
movzx ebx, byte [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
lea rax, [0x140058ed8]
test bl, bl
je 0x140003f7b
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], r13d
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400068b0
mov rax, qword [rax]
cmp rax, qword [rdi + 8]
je 0x140003f7b
add rax, 0x28
jmp 0x140003f7e
mov rax, r14
cmp rax, r14
setne al
test al, al
je 0x14000420e
lea r15, [0x140058eb0]
test bl, bl
je 0x140003fee
cmp bl, 7
je 0x140003fbf
mov r8d, 0x497
lea rdx, str.jsonjson_value.cpp
lea rcx, str.type___nullValue__type___objectValue
call fcn.14003cf40
movzx ebx, byte [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
test bl, bl
je 0x140003fee
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], r13d
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400068b0
mov rax, qword [rax]
cmp rax, qword [rdi + 8]
je 0x140003fee
add rax, 0x28
jmp 0x140003ff1
mov rax, r14
cmp rax, r14
setne al
test al, al
je 0x14000420e
lea rdx, [0x140058ed4]
lea rcx, [rsp + 0x30]
call fcn.140006210
cmp byte [rax + 8], 1
jne 0x140004031
lea rdx, [0x140058ed4]
lea rcx, [rsp + 0x30]
call fcn.140006210
mov rcx, rax
call fcn.140005e10
mov esi, eax
lea rdx, [0x140058ed8]
lea rcx, [rsp + 0x30]
call fcn.140006210
cmp byte [rax + 8], 4
jne 0x1400040f3
lea rdx, [0x140058ed8]
lea rcx, [rsp + 0x30]
call fcn.140006210
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.140005cf0
mov rbx, rax
lea rax, [rbp - 0x78]
cmp rax, rbx
je 0x1400040dd
cmp qword [rbp - 0x60], 0x10
jb 0x140004088
mov rcx, qword [rbp - 0x78]
call fcn.140038850
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x68], r13
mov byte [rbp - 0x78], 0
cmp qword [rbx + 0x18], 0x10
jae 0x1400040b4
mov r8, qword [rbx + 0x10]
inc r8
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.140038c20
jmp 0x1400040be
mov rax, qword [rbx]
mov qword [rbp - 0x78], rax
mov qword [rbx], r13
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x68], rax
mov rax, qword [rbx + 0x18]
mov qword [rbp - 0x60], rax
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r13
mov byte [rbx], 0
cmp qword [rbp + 0xd8], 0x10
jb 0x1400040f3
mov rcx, qword [rbp + 0xc0]
call fcn.140038850
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.140006210
cmp byte [rax + 8], 1
jne 0x14000411e
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.140006210
mov rcx, rax
call fcn.140005e10
mov r12d, eax
cmp esi, 0xffffffff
je 0x1400041d4
cmp qword [rbp - 0x68], 0
je 0x1400041d4
test r12d, r12d
je 0x1400041d4
cmp esi, 1
jne 0x140004187
lea ecx, [rsi + 0x2f]
call fcn.1400388b4
mov rbx, rax
test rax, rax
je 0x140004161
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rax + 0x10], r13
mov byte [rax], 0
jmp 0x140004164
mov rbx, r13
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov rcx, rbx
call fcn.140002750
mov dword [rbx + 0x28], r12d
mov dword [rbx + 0x2c], 1
jmp 0x140004245
cmp esi, 2
jne 0x140004272
lea ecx, [rsi + 0x2e]
call fcn.1400388b4
mov rbx, rax
test rax, rax
je 0x1400041b1
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rax + 0x10], r13
mov byte [rax], 0
jmp 0x1400041b4
mov rbx, r13
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov rcx, rbx
call fcn.140002750
mov dword [rbx + 0x28], r12d
mov dword [rbx + 0x2c], 2
jmp 0x140004245
cmp qword [rbp - 0x38], 0x10
jb 0x1400041e4
mov rcx, qword [rbp - 0x50]
call fcn.140038850
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x40], r13
mov byte [rbp - 0x50], 0
lea rcx, [rsp + 0x30]
call fcn.140005ba0
nop
lea rcx, [rbp - 0x20]
call fcn.140003240
nop
jmp 0x1400042a7
cmp qword [rbp - 0x38], 0x10
jb 0x14000421e
mov rcx, qword [rbp - 0x50]
call fcn.140038850
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x40], r13
mov byte [rbp - 0x50], 0
lea rcx, [rsp + 0x30]
call fcn.140005ba0
nop
lea rcx, [rbp - 0x20]
call fcn.140003240
nop
jmp 0x1400042a7
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9, rbx
lea r8, [0x140003900]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140004272
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp - 0x38], 0x10
jb 0x140004282
mov rcx, qword [rbp - 0x50]
call fcn.140038850
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x40], r13
mov byte [rbp - 0x50], 0
lea rcx, [rsp + 0x30]
call fcn.140005ba0
nop
lea rcx, [rbp - 0x20]
call fcn.140003240
nop
cmp qword [rbp - 0x60], 0x10
jb 0x1400042eb
mov rcx, qword [rbp - 0x78]
call fcn.140038850
jmp 0x1400042eb
mov qword [rsp + 0x60], r13
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140038b20
lea r11, vtable.std::bad_alloc.0
mov qword [rsp + 0x68], r11
lea rdx, [0x14005ddf0]
lea rcx, [rsp + 0x68]
call fcn.14003d950
nop
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.140038600
mov rbx, qword [rsp + 0x240]
add rsp, 0x1f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
repz ret