Function at 0x18001cd20
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x180385040]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r12d, r12d
mov r13, qword gs:[0x60]
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r12b
jne 0x18001cd74
lea rcx, [rbp - 0x51]
call fcn.180005150
nop
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0xf
cmova rdx, qword [rbp - 0x51]
xor r8d, r8d
xor ecx, ecx
call fcn.18006b518
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001d098
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], r12
xor edx, edx
mov r8, rax
lea rcx, [rbp + 7]
call fcn.180011600
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0xf
cmova rdx, qword [rbp - 0x51]
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rcx, qword [rbp + 7]
mov r8, rbx
call fcn.18006b518
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x18001ce29
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001ce24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001d0b9
call fcn.1800649dc
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r12
mov r11d, 7
mov qword [rbp - 1], r11
mov word [rbp - 0x19], r12w
lea rdi, [rbp + 7]
mov r9, qword [rbp + 7]
mov rsi, qword [rbp + 0x1f]
cmp rsi, r11
cmova rdi, r9
lea rbx, [rbp + 7]
cmova rbx, r9
lea rax, [rbp + 7]
cmova rax, r9
mov rcx, qword [rbp + 0x17]
lea r14, [rax + rcx*2]
cmp rbx, r14
je 0x18001ce9c
sub rdi, rbx
movzx ecx, word [rbx]
call fcn.18006c72c
nop
mov word [rdi + rbx], ax
add rbx, 2
cmp rbx, r14
jne 0x18001ce76
mov rsi, qword [rbp + 0x1f]
mov rcx, qword [rbp + 0x17]
mov r9, qword [rbp + 7]
mov r11, qword [rbp - 1]
test rcx, rcx
je 0x18001cfd0
mov rax, qword [r13 + 0x18]
add rax, 0x20
mov r14, qword [rax]
cmp r14, rax
je 0x18001cfd0
mov r10, qword [rbp - 0x19]
nop dword [rax]
lea r15, [r14 - 0x10]
mov r9, qword [r15 + 0x60]
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x18001ced0
cmp rdx, r11
ja 0x18001cf09
lea rdi, [rbp - 0x19]
cmp r11, 7
cmova rdi, r10
mov qword [rbp - 9], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call fcn.180092f20
mov word [rbx + rdi], r12w
jmp 0x18001cf12
lea rcx, [rbp - 0x19]
call fcn.1800112d0
lea rdi, [rbp - 0x19]
mov r10, qword [rbp - 0x19]
mov r11, qword [rbp - 1]
cmp r11, 7
cmova rdi, r10
lea rbx, [rbp - 0x19]
cmova rbx, r10
lea rcx, [rbp - 0x19]
cmova rcx, r10
mov rax, qword [rbp - 9]
lea rsi, [rcx + rax*2]
cmp rbx, rsi
je 0x18001cf64
sub rdi, rbx
movzx ecx, word [rbx]
call fcn.18006c72c
nop
mov word [rdi + rbx], ax
add rbx, 2
cmp rbx, rsi
jne 0x18001cf46
mov r11, qword [rbp - 1]
mov r10, qword [rbp - 0x19]
mov rsi, qword [rbp + 0x1f]
mov r9, qword [rbp + 7]
cmp qword [r15 + 0x50], 0
je 0x18001cfba
lea rax, [rbp + 7]
cmp rsi, 7
cmova rax, r9
lea r8, [rbp - 0x19]
cmp r11, 7
cmova r8, r10
test r8, r8
je 0x18001cfba
test rax, rax
je 0x18001cfba
sub r8, rax
nop dword [rax + rax]
movsx ecx, word [r8 + rax]
movsx edx, word [rax]
lea rax, [rax + 2]
test cx, cx
je 0x18001cfb6
cmp cx, dx
je 0x18001cfa0
cmp ecx, edx
je 0x18001cfd7
mov r14, qword [r14]
mov rax, qword [r13 + 0x18]
add rax, 0x20
cmp r14, rax
jne 0x18001cec0
jmp 0x18001cfd4
mov r10, qword [rbp - 0x19]
mov r15, r12
cmp r11, 7
jbe 0x18001d01a
lea rdx, [r11*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x18001d00a
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001d0bf
mov rcx, r10
call fcn.1800649dc
mov rsi, qword [rbp + 0x1f]
mov r9, qword [rbp + 7]
mov qword [rbp - 9], r12
mov qword [rbp - 1], 7
mov word [rbp - 0x19], r12w
cmp rsi, 7
jbe 0x18001d062
lea rdx, [rsi*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x18001d05a
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001d092
mov rcx, r9
call fcn.1800649dc
mov rax, r15
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800644f0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18006a954
nop
lea rdx, str.Invalid_multibyte_sequence
lea rcx, [rbp - 0x31]
call fcn.180008a30
lea rdx, [0x1803830c8]
lea rcx, [rbp - 0x31]
call fcn.180066934
nop
call fcn.18006a954
int3
call fcn.18006a954
int3