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

Disassembly:
mov r11, rsp
push r13
sub rsp, 0x90
mov rax, qword [rcx + 8]
mov r13, rcx
mov rcx, qword [rcx + 0x10]
cmp rax, rcx
je 0x140032491
cmp byte [r13 + 0x5e], 0
je 0x140032491
mov qword [r11 + 0x20], rsi
xor esi, esi
mov qword [r11 + 0x10], rbx
cmp byte [r13 + 0x2b0], sil
je 0x14003243a
sub rcx, rax
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x10], rdi
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
mov qword [r11 - 0x18], r12
mov dil, 1
mov rcx, rdx
mov qword [r11 - 0x20], r14
sar rcx, 2
mov r8d, esi
mov rax, rcx
mov dword [rsp + 0x24], esi
shr rax, 0x3f
mov ebx, esi
add rcx, rax
mov byte [rsp + 0x21], sil
xor al, al
mov qword [rsp + 0x50], rcx
mov byte [rsp + 0x20], al
xor dl, dl
mov byte [rsp + 0x30], al
mov r10, rcx
mov qword [rsp + 0x28], rcx
mov r9d, esi
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x48], rsi
mov qword [r11 - 0x28], r15
mov ebp, esi
movsxd r14, ebx
mov dword [rsp + 0x3c], ebx
mov qword [rsp + 0x60], r9
mov dword [rsp + 0x40], ebx
cmp r14, rcx
jb 0x140031f2c
test ebp, ebp
jns 0x140032410
mov rax, qword [r13 + 8]
lea rcx, [r9 + r9*2]
lea r11, [rax + rcx*8]
mov qword [rsp + 0x58], r11
test ebp, ebp
jne 0x140031f56
test dl, dl
jne 0x140031f56
xor al, al
mov dil, 1
mov byte [rsp + 0x20], al
mov byte [rsp + 0x30], al
mov dword [rsp + 0x34], edi
mov rcx, qword [r11]
xor dl, dl
mov dword [rsp + 0x38], edx
cmp rcx, qword [r11 + 8]
je 0x1400323fc
movsxd rsi, ebp
lea rax, [rsi + rsi*2]
lea r12, [rax*4]
movsx eax, byte [r13 + 0x268]
movzx r15d, byte [r12 + rcx]
mov ebx, r15d
cmp r15d, eax
je 0x140031fb6
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
mov r11, qword [rsp + 0x58]
test eax, eax
mov r10, qword [rsp + 0x28]
mov eax, 0
mov r8d, dword [rsp + 0x24]
movzx edi, dil
cmove edi, eax
mov dword [rsp + 0x34], edi
mov r9, qword [r11]
movabs rax, 0x2aaaaaaaaaaaaaab
mov rcx, qword [r11 + 8]
sub rcx, r9
imul rcx
mov rdi, rdx
mov edx, 1
sar rdi, 1
mov rax, rdi
shr rax, 0x3f
add rdi, rax
lea eax, [rdi - 1]
cmp ebp, eax
jne 0x140032001
mov ecx, dword [rsp + 0x38]
lea rax, [rdi + rdi*2]
cmp byte [r9 + rax*4 - 0xc], 0x5c
movzx ecx, cl
cmove ecx, edx
mov dword [rsp + 0x38], ecx
cmp r10, r14
jb 0x140032012
jne 0x14003200d
cmp r8d, ebp
jle 0x140032012
xor r8b, r8b
jmp 0x140032015
mov r8b, 2
cmp byte [rsp + 0x21], 0
je 0x1400320e3
movzx eax, byte [r12 + r9 + 8]
and al, 0xfd
or al, r8b
mov byte [r12 + r9 + 8], al
movabs r12, 0x2aaaaaaaaaaaaaab
cmp r15b, 0x22
jne 0x140032096
mov r9, qword [r11]
lea r10d, [rbp + 1]
mov rcx, qword [r11 + 8]
mov rax, r12
sub rcx, r9
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r10d, edx
jge 0x14003208c
lea rax, [rsi + 1]
lea rax, [rax + rax*2]
cmp byte [r9 + rax*4], r15b
lea rcx, [r9 + rax*4]
jne 0x14003208c
movzx eax, byte [rcx + 8]
mov ebp, r10d
and al, 0xfd
or al, r8b
mov byte [rcx + 8], al
jmp 0x140032324
mov byte [rsp + 0x21], 0
jmp 0x140032324
cmp r15b, 0x5c
jne 0x140032329
mov r9, qword [r11]
mov rax, r12
mov rcx, qword [r11 + 8]
inc ebp
sub rcx, r9
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp ebp, edx
jge 0x140032329
movsxd rax, ebp
lea rcx, [rax + rax*2]
movzx eax, byte [r9 + rcx*4 + 8]
and al, 0xfd
or al, r8b
mov byte [r9 + rcx*4 + 8], al
jmp 0x140032329
cmp byte [rsp + 0x34], 0
je 0x140032102
mov ecx, dword [rsp + 0x30]
movsx eax, byte [r13 + 0x268]
cmp ebx, eax
movzx ecx, cl
cmove ecx, edx
mov dword [rsp + 0x30], ecx
cmp r15b, 0x22
jne 0x14003212c
movzx eax, byte [r12 + r9 + 8]
and al, 0xfd
mov byte [rsp + 0x21], 1
or al, r8b
mov byte [r12 + r9 + 8], al
movabs r12, 0x2aaaaaaaaaaaaaab
jmp 0x140032329
lea rax, [r13 + 0x248]
mov r8, qword [rax + 0x10]
lea r10, [r12 + r9]
lea rcx, [r13 + 0x208]
test r8, r8
je 0x1400321a4
lea rdx, [r8 + rsi]
cmp rdx, rdi
ja 0x1400321a4
cmp qword [rax + 0x18], 0x10
lea rdx, [r8 + r8*2]
lea r9, [r10 + rdx*4]
jb 0x14003216a
mov rdx, qword [rax]
mov rax, rdx
add r8, rdx
jmp 0x14003216d
add r8, rax
mov rdx, r10
cmp rax, r8
je 0x140032192
cmp rdx, r9
je 0x1400321a4
movzx ebx, byte [rdx]
movsx r11d, byte [rax]
cmp r11d, ebx
jne 0x1400321a4
inc rax
add rdx, 0xc
cmp rax, r8
jne 0x140032175
cmp rdx, r9
jne 0x1400321a4
mov r9b, 1
mov byte [rsp + 0x20], r9b
jmp 0x140032288
movzx r9d, byte [rsp + 0x20]
test r9b, r9b
jne 0x140032288
mov rdx, qword [rcx + 0x10]
lea rax, [rdx + rsi]
cmp rax, rdi
ja 0x140032288
cmp qword [rcx + 0x18], 0x10
lea rax, [rdx + rdx*2]
lea r8, [r10 + rax*4]
jb 0x1400321de
mov rax, qword [rcx]
mov rcx, rax
add rdx, rax
jmp 0x1400321e1
add rdx, rcx
mov rax, r10
cmp rcx, rdx
je 0x140032218
nop dword [rax]
cmp rax, r8
je 0x140032282
movzx r11d, byte [rax]
movsx r9d, byte [rcx]
cmp r9d, r11d
jne 0x140032282
inc rcx
add rax, 0xc
cmp rcx, rdx
jne 0x1400321f0
movzx r9d, byte [rsp + 0x20]
cmp rax, r8
jne 0x140032288
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x24], ebp
mov cl, 2
movzx eax, byte [r10 + 8]
mov r11, qword [rsp + 0x58]
and al, 0xfd
or al, cl
mov byte [r10 + 8], al
lea rax, [r13 + 0x228]
mov rdx, qword [r11]
movzx ecx, byte [rdx + r12 + 8]
xor cl, r9b
and cl, 1
xor byte [rdx + r12 + 8], cl
lea ecx, [rbp + 1]
cmp ecx, dword [rax + 0x10]
jl 0x14003231a
mov r9, qword [rax + 0x10]
lea r8, [r10 + 0xc]
imul rcx, r9, 0xfffffffffffffff4
add rcx, r8
cmp qword [rax + 0x18], 0x10
jb 0x1400322cb
mov rdx, qword [rax]
mov rax, rdx
add rdx, r9
jmp 0x1400322cf
movzx r9d, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
cmp rcx, r14
jb 0x140032226
mov r8d, dword [rsp + 0x24]
mov rdx, rcx
mov dword [rsp + 0x24], r8d
mov eax, r8d
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], r9b
jne 0x1400322c4
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x24], eax
mov byte [rsp + 0x20], r9b
cmp eax, ebp
jle 0x140032226
xor cl, cl
jmp 0x140032228
lea rdx, [r9 + rax]
cmp rax, rdx
je 0x1400322f2
cmp rcx, r8
je 0x14003231a
movsx r10d, byte [rax]
movzx r9d, byte [rcx]
cmp r10d, r9d
jne 0x14003231a
inc rax
add rcx, 0xc
cmp rax, rdx
jne 0x1400322d4
xor esi, esi
movabs r12, 0x2aaaaaaaaaaaaaab
cmp rcx, r8
jne 0x140032313
mov r10, qword [rsp + 0x50]
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x24], esi
jmp 0x14003232b
mov r10, qword [rsp + 0x28]
jmp 0x14003232b
movabs r12, 0x2aaaaaaaaaaaaaab
mov r10, qword [rsp + 0x28]
xor esi, esi
movsxd rax, ebp
lea rcx, [rax + rax*2]
mov rax, qword [r11]
lea rdx, [rax + rcx*4]
movzx ecx, byte [rsp + 0x30]
shl cl, 2
movzx eax, r15b
xor cl, byte [rdx + 8]
and al, 0xfe
and cl, 4
xor byte [rdx + 8], cl
cmp al, 0xfc
jne 0x14003235b
mov eax, 6
jmp 0x14003239d
movzx eax, r15b
and al, 0xfc
cmp al, 0xf8
jne 0x14003236c
mov eax, 5
jmp 0x14003239d
movzx eax, r15b
and al, 0xf8
cmp al, 0xf0
jne 0x14003237d
mov eax, 4
jmp 0x14003239d
movzx eax, r15b
and al, 0xf0
cmp al, 0xe0
jne 0x14003238e
mov eax, 3
jmp 0x14003239d
and r15b, 0xe0
mov eax, esi
cmp r15b, 0xc0
sete al
inc eax
mov r9, qword [rsp + 0x48]
lea r8d, [rax + rbp]
mov rcx, qword [r11 + 8]
mov rax, r12
sub rcx, qword [r11]
mov ebp, esi
mov ebx, dword [rsp + 0x3c]
mov edi, dword [rsp + 0x34]
imul rcx
mov rcx, qword [rsp + 0x50]
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
inc ebx
cmp r8d, edx
cmovl ebx, dword [rsp + 0x40]
cmovl ebp, r8d
inc r9
cmp r8d, edx
mov r8d, dword [rsp + 0x24]
mov edx, dword [rsp + 0x38]
cmovl r9, qword [rsp + 0x60]
mov qword [rsp + 0x48], r9
jmp 0x140031f0f
mov rcx, qword [rsp + 0x50]
inc ebx
inc r9
mov qword [rsp + 0x48], r9
jmp 0x140031f0d
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb0]
mov byte [r13 + 0x2b0], 0
mov edx, dword [r13 + 0x6c]
mov ecx, dword [r13 + 0x70]
cmp edx, ecx
jge 0x140032481
cmp qword [r13 + 0x270], 0
mov r8d, 0xa
mov ebx, 0x2710
cmove ebx, r8d
add ebx, edx
cmp ecx, ebx
cmovl ebx, ecx
mov rcx, r13
mov r8d, ebx
call fcn.1400317d0
mov dword [r13 + 0x6c], ebx
cmp dword [r13 + 0x70], ebx
jne 0x140032481
mov qword [r13 + 0x6c], 0x7fffffff
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb8]
add rsp, 0x90
pop r13
ret