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

Disassembly:
mov rax, rsp
sub rsp, 0x78
mov r8, qword [0x14012fe18]
mov rcx, qword [0x14012fe20]
cmp r8, rcx
je 0x14005a796
cmp byte [0x14012fe6e], 0
je 0x14005a796
mov qword [rax - 8], rdi
xor edi, edi
cmp byte [0x1401300c0], dil
mov qword [rax + 8], rbx
je 0x14005a73a
mov qword [rax + 0x18], rsi
sub rcx, r8
mov qword [rax - 0x20], r14
mov sil, 1
mov qword [rax - 0x28], r15
mov r10d, edi
mov qword [rsp + 0x88], rbp
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
mov qword [rsp + 0x68], r12
mov r9d, edi
mov rcx, rdx
mov dword [rsp + 0x24], edi
sar rcx, 2
mov rax, rcx
mov byte [rsp + 0x21], dil
shr rax, 0x3f
add rcx, rax
mov dword [rsp + 0x34], esi
xor al, al
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x20], al
xor dl, dl
mov byte [rsp + 0x30], al
mov r11, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x60], r13
mov ebx, edi
nop dword [rax + rax]
movsxd r15, r10d
cmp r15, rcx
jb 0x14005a1e0
test ebx, ebx
jns 0x14005a70f
lea rax, [r9 + r9*2]
lea r13, [r8 + rax*8]
test ebx, ebx
jne 0x14005a201
test dl, dl
jne 0x14005a201
xor al, al
mov sil, 1
mov byte [rsp + 0x20], al
mov byte [rsp + 0x30], al
mov dword [rsp + 0x34], esi
mov rcx, qword [r13]
xor dl, dl
mov dword [rsp + 0x3c], edx
cmp rcx, qword [r13 + 8]
je 0x14005a6f5
movsx r10d, byte [0x140130078]
movsxd r14, ebx
lea rax, [r14 + r14*2]
lea r12, [rax*4]
movzx ebp, byte [r12 + rcx]
cmp ebp, r10d
je 0x14005a25d
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
movzx r10d, byte [0x140130078]
test eax, eax
mov r11, qword [rsp + 0x28]
mov eax, 0
movzx esi, sil
cmove esi, eax
mov dword [rsp + 0x34], esi
mov r9, qword [r13]
movabs rax, 0x2aaaaaaaaaaaaaab
mov rcx, qword [r13 + 8]
sub rcx, r9
imul rcx
mov rsi, rdx
mov edx, 1
sar rsi, 1
mov rax, rsi
shr rax, 0x3f
add rsi, rax
lea eax, [rsi - 1]
cmp ebx, eax
jne 0x14005a2a9
mov ecx, dword [rsp + 0x3c]
lea rax, [rsi + rsi*2]
cmp byte [r9 + rax*4 - 0xc], 0x5c
movzx ecx, cl
cmove ecx, edx
mov dword [rsp + 0x3c], ecx
cmp r11, r15
jb 0x14005a2bb
jne 0x14005a2b6
cmp dword [rsp + 0x24], ebx
jle 0x14005a2bb
xor r8b, r8b
jmp 0x14005a2be
mov r8b, 2
cmp byte [rsp + 0x21], 0
je 0x14005a3cd
movzx eax, byte [r12 + r9 + 8]
and al, 0xfd
or al, r8b
mov byte [r12 + r9 + 8], al
cmp bpl, 0x22
jne 0x14005a37d
mov r9, qword [r13]
lea r10d, [rbx + 1]
mov rcx, qword [r13 + 8]
movabs rax, 0x2aaaaaaaaaaaaaab
sub rcx, r9
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r10d, edx
jge 0x14005a376
lea rax, [r14 + 1]
lea rax, [rax + rax*2]
cmp byte [r9 + rax*4], bpl
lea rcx, [r9 + rax*4]
jne 0x14005a376
movzx eax, byte [rcx + 8]
mov ebx, r10d
and al, 0xfd
or al, r8b
mov byte [rcx + 8], al
movabs r14, 0x2aaaaaaaaaaaaaab
xor edi, edi
movsxd rax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [r13]
lea rdx, [rax + rcx*4]
movzx ecx, byte [rsp + 0x30]
shl cl, 2
movzx eax, bpl
xor cl, byte [rdx + 8]
and al, 0xfe
and cl, 4
xor byte [rdx + 8], cl
cmp al, 0xfc
jne 0x14005a653
mov eax, 6
jmp 0x14005a695
mov byte [rsp + 0x21], 0
jmp 0x14005a332
movabs r14, 0x2aaaaaaaaaaaaaab
cmp bpl, 0x5c
jne 0x14005a33c
mov r9, qword [r13]
mov rax, r14
mov rcx, qword [r13 + 8]
inc ebx
sub rcx, r9
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp ebx, edx
jge 0x14005a33c
movsxd rax, ebx
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 0x14005a33c
cmp byte [rsp + 0x34], 0
je 0x14005a3e8
mov ecx, dword [rsp + 0x30]
movsx eax, r10b
cmp ebp, eax
movzx ecx, cl
cmove ecx, edx
mov dword [rsp + 0x30], ecx
cmp bpl, 0x22
jne 0x14005a408
movzx eax, byte [r12 + r9 + 8]
and al, 0xfd
mov byte [rsp + 0x21], 1
or al, r8b
mov byte [r12 + r9 + 8], al
jmp 0x14005a332
mov rcx, qword [0x140130068]
add r9, r12
test rcx, rcx
je 0x14005a49e
lea rax, [r14 + rcx]
cmp rax, rsi
ja 0x14005a49e
cmp qword [0x140130070], 0xf
lea rax, [rcx + rcx*2]
lea rdi, [0x140130058]
mov r8, rdi
lea rdx, [r9 + rax*4]
cmova r8, qword [0x140130058]
mov rax, r9
add r8, rcx
mov rcx, rdi
cmp qword [0x140130070], 0xf
cmova rcx, qword [0x140130058]
cmp rcx, r8
je 0x14005a482
cmp rax, rdx
je 0x14005a499
movzx r11d, byte [rax]
movsx r10d, byte [rcx]
cmp r10d, r11d
jne 0x14005a499
inc rcx
add rax, 0xc
cmp rcx, r8
jne 0x14005a464
mov r11, qword [rsp + 0x28]
cmp rax, rdx
jne 0x14005a49e
mov r10b, 1
mov byte [rsp + 0x20], r10b
jmp 0x14005a619
mov r11, qword [rsp + 0x28]
movzx r10d, byte [rsp + 0x20]
test r10b, r10b
jne 0x14005a619
mov rcx, qword [0x140130028]
lea rax, [r14 + rcx]
cmp rax, rsi
ja 0x14005a619
cmp qword [0x140130030], 0xf
lea rax, [rcx + rcx*2]
lea rdi, [0x140130018]
mov r8, rdi
lea rdx, [r9 + rax*4]
cmova r8, qword [0x140130018]
mov rax, r9
add r8, rcx
mov rcx, rdi
cmp qword [0x140130030], 0xf
cmova rcx, qword [0x140130018]
cmp rcx, r8
je 0x14005a527
cmp rax, rdx
je 0x14005a60e
movzx r11d, byte [rax]
movsx r10d, byte [rcx]
cmp r10d, r11d
jne 0x14005a60e
inc rcx
add rax, 0xc
cmp rcx, r8
jne 0x14005a501
cmp rax, rdx
jne 0x14005a60e
mov r11, r15
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x24], ebx
movzx r10d, byte [rsp + 0x20]
mov cl, 2
movzx eax, byte [r9 + 8]
and al, 0xfd
or al, cl
mov byte [r9 + 8], al
lea eax, [rbx + 1]
mov rdx, qword [r13]
movzx ecx, byte [rdx + r12 + 8]
xor cl, r10b
and cl, 1
xor byte [rdx + r12 + 8], cl
cmp eax, dword [0x140130048]
jl 0x14005a332
mov r8, qword [0x140130048]
lea r12, [0x140130038]
imul rax, r8, 0xfffffffffffffff4
lea rdx, [r9 + 0xc]
mov rcx, r12
add rax, rdx
cmp qword [0x140130050], 0xf
cmova rcx, qword [0x140130038]
add r8, rcx
mov rcx, r12
cmp qword [0x140130050], 0xf
cmova rcx, qword [0x140130038]
cmp rcx, r8
je 0x14005a5e6
nop dword [rax]
cmp rax, rdx
je 0x14005a332
movsx r10d, byte [rcx]
movzx r9d, byte [rax]
cmp r10d, r9d
jne 0x14005a332
inc rcx
add rax, 0xc
cmp rcx, r8
jne 0x14005a5c0
xor edi, edi
movabs r14, 0x2aaaaaaaaaaaaaab
cmp rax, rdx
jne 0x14005a33e
mov r11, qword [rsp + 0x48]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x24], edi
jmp 0x14005a33e
mov r11, qword [rsp + 0x28]
movzx r10d, byte [rsp + 0x20]
cmp r11, r15
jb 0x14005a53c
mov edx, dword [rsp + 0x24]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], r11
mov byte [rsp + 0x20], r10b
jne 0x14005a64c
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x24], edx
mov byte [rsp + 0x20], r10b
cmp edx, ebx
jle 0x14005a53c
xor cl, cl
jmp 0x14005a544
movzx eax, bpl
and al, 0xfc
cmp al, 0xf8
jne 0x14005a664
mov eax, 5
jmp 0x14005a695
movzx eax, bpl
and al, 0xf8
cmp al, 0xf0
jne 0x14005a675
mov eax, 4
jmp 0x14005a695
movzx eax, bpl
and al, 0xf0
cmp al, 0xe0
jne 0x14005a686
mov eax, 3
jmp 0x14005a695
and bpl, 0xe0
mov eax, edi
cmp bpl, 0xc0
sete al
inc eax
mov rcx, qword [r13 + 8]
lea r8d, [rax + rbx]
sub rcx, qword [r13]
mov rax, r14
mov r10d, dword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8d, edx
jl 0x14005a6d3
inc r10d
inc r9
mov dword [rsp + 0x38], r10d
mov qword [rsp + 0x40], r9
mov esi, dword [rsp + 0x34]
cmp r8d, edx
mov edx, dword [rsp + 0x3c]
mov ebx, edi
mov rcx, qword [rsp + 0x48]
cmovl ebx, r8d
mov r8, qword [0x14012fe18]
jmp 0x14005a1d0
mov rcx, qword [rsp + 0x48]
inc r10d
inc r9
mov dword [rsp + 0x38], r10d
mov qword [rsp + 0x40], r9
jmp 0x14005a1c9
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov byte [0x1401300c0], 0
mov edx, dword [0x14012fe7c]
mov ecx, dword [0x14012fe80]
cmp edx, ecx
jge 0x14005a789
cmp qword [0x140130080], 0
mov r8d, 0xa
mov ebx, 0x2710
cmove ebx, r8d
add ebx, edx
cmp ecx, ebx
cmovl ebx, ecx
mov r8d, ebx
call fcn.140059a50
cmp dword [0x14012fe80], ebx
mov dword [0x14012fe7c], ebx
jne 0x14005a789
mov qword [0x14012fe7c], 0x7fffffff
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x70]
add rsp, 0x78
ret