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

Disassembly:
mov rax, rsp
sub rsp, 0x78
mov r8, qword [0x1401420a8]
mov rcx, qword [0x1401420b0]
cmp r8, rcx
je 0x140058ca6
cmp byte [0x1401420fe], 0
je 0x140058ca6
mov qword [rax - 8], rdi
xor edi, edi
cmp byte [0x140142350], dil
mov qword [rax + 8], rbx
je 0x140058c4a
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 0x1400586f0
test ebx, ebx
jns 0x140058c1f
lea rax, [r9 + r9*2]
lea r13, [r8 + rax*8]
test ebx, ebx
jne 0x140058711
test dl, dl
jne 0x140058711
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 0x140058c05
movsx r10d, byte [0x140142308]
movsxd r14, ebx
lea rax, [r14 + r14*2]
lea r12, [rax*4]
movzx ebp, byte [r12 + rcx]
cmp ebp, r10d
je 0x14005876d
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
movzx r10d, byte [0x140142308]
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 0x1400587b9
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 0x1400587cb
jne 0x1400587c6
cmp dword [rsp + 0x24], ebx
jle 0x1400587cb
xor r8b, r8b
jmp 0x1400587ce
mov r8b, 2
cmp byte [rsp + 0x21], 0
je 0x1400588dd
movzx eax, byte [r12 + r9 + 8]
and al, 0xfd
or al, r8b
mov byte [r12 + r9 + 8], al
cmp bpl, 0x22
jne 0x14005888d
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 0x140058886
lea rax, [r14 + 1]
lea rax, [rax + rax*2]
cmp byte [r9 + rax*4], bpl
lea rcx, [r9 + rax*4]
jne 0x140058886
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 0x140058b63
mov eax, 6
jmp 0x140058ba5
mov byte [rsp + 0x21], 0
jmp 0x140058842
movabs r14, 0x2aaaaaaaaaaaaaab
cmp bpl, 0x5c
jne 0x14005884c
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 0x14005884c
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 0x14005884c
cmp byte [rsp + 0x34], 0
je 0x1400588f8
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 0x140058918
movzx eax, byte [r12 + r9 + 8]
and al, 0xfd
mov byte [rsp + 0x21], 1
or al, r8b
mov byte [r12 + r9 + 8], al
jmp 0x140058842
mov rcx, qword [0x1401422f8]
add r9, r12
test rcx, rcx
je 0x1400589ae
lea rax, [r14 + rcx]
cmp rax, rsi
ja 0x1400589ae
cmp qword [0x140142300], 0xf
lea rax, [rcx + rcx*2]
lea rdi, [0x1401422e8]
mov r8, rdi
lea rdx, [r9 + rax*4]
cmova r8, qword [0x1401422e8]
mov rax, r9
add r8, rcx
mov rcx, rdi
cmp qword [0x140142300], 0xf
cmova rcx, qword [0x1401422e8]
cmp rcx, r8
je 0x140058992
cmp rax, rdx
je 0x1400589a9
movzx r11d, byte [rax]
movsx r10d, byte [rcx]
cmp r10d, r11d
jne 0x1400589a9
inc rcx
add rax, 0xc
cmp rcx, r8
jne 0x140058974
mov r11, qword [rsp + 0x28]
cmp rax, rdx
jne 0x1400589ae
mov r10b, 1
mov byte [rsp + 0x20], r10b
jmp 0x140058b29
mov r11, qword [rsp + 0x28]
movzx r10d, byte [rsp + 0x20]
test r10b, r10b
jne 0x140058b29
mov rcx, qword [0x1401422b8]
lea rax, [r14 + rcx]
cmp rax, rsi
ja 0x140058b29
cmp qword [0x1401422c0], 0xf
lea rax, [rcx + rcx*2]
lea rdi, [0x1401422a8]
mov r8, rdi
lea rdx, [r9 + rax*4]
cmova r8, qword [0x1401422a8]
mov rax, r9
add r8, rcx
mov rcx, rdi
cmp qword [0x1401422c0], 0xf
cmova rcx, qword [0x1401422a8]
cmp rcx, r8
je 0x140058a37
cmp rax, rdx
je 0x140058b1e
movzx r11d, byte [rax]
movsx r10d, byte [rcx]
cmp r10d, r11d
jne 0x140058b1e
inc rcx
add rax, 0xc
cmp rcx, r8
jne 0x140058a11
cmp rax, rdx
jne 0x140058b1e
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 [0x1401422d8]
jl 0x140058842
mov r8, qword [0x1401422d8]
lea r12, [0x1401422c8]
imul rax, r8, 0xfffffffffffffff4
lea rdx, [r9 + 0xc]
mov rcx, r12
add rax, rdx
cmp qword [0x1401422e0], 0xf
cmova rcx, qword [0x1401422c8]
add r8, rcx
mov rcx, r12
cmp qword [0x1401422e0], 0xf
cmova rcx, qword [0x1401422c8]
cmp rcx, r8
je 0x140058af6
nop dword [rax]
cmp rax, rdx
je 0x140058842
movsx r10d, byte [rcx]
movzx r9d, byte [rax]
cmp r10d, r9d
jne 0x140058842
inc rcx
add rax, 0xc
cmp rcx, r8
jne 0x140058ad0
xor edi, edi
movabs r14, 0x2aaaaaaaaaaaaaab
cmp rax, rdx
jne 0x14005884e
mov r11, qword [rsp + 0x48]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x24], edi
jmp 0x14005884e
mov r11, qword [rsp + 0x28]
movzx r10d, byte [rsp + 0x20]
cmp r11, r15
jb 0x140058a4c
mov edx, dword [rsp + 0x24]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], r11
mov byte [rsp + 0x20], r10b
jne 0x140058b5c
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x24], edx
mov byte [rsp + 0x20], r10b
cmp edx, ebx
jle 0x140058a4c
xor cl, cl
jmp 0x140058a54
movzx eax, bpl
and al, 0xfc
cmp al, 0xf8
jne 0x140058b74
mov eax, 5
jmp 0x140058ba5
movzx eax, bpl
and al, 0xf8
cmp al, 0xf0
jne 0x140058b85
mov eax, 4
jmp 0x140058ba5
movzx eax, bpl
and al, 0xf0
cmp al, 0xe0
jne 0x140058b96
mov eax, 3
jmp 0x140058ba5
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 0x140058be3
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 [0x1401420a8]
jmp 0x1400586e0
mov rcx, qword [rsp + 0x48]
inc r10d
inc r9
mov dword [rsp + 0x38], r10d
mov qword [rsp + 0x40], r9
jmp 0x1400586d9
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 [0x140142350], 0
mov edx, dword [0x14014210c]
mov ecx, dword [0x140142110]
cmp edx, ecx
jge 0x140058c99
cmp qword [0x140142310], 0
mov r8d, 0xa
mov ebx, 0x2710
cmove ebx, r8d
add ebx, edx
cmp ecx, ebx
cmovl ebx, ecx
mov r8d, ebx
call fcn.140057f60
cmp dword [0x140142110], ebx
mov dword [0x14014210c], ebx
jne 0x140058c99
mov qword [0x14014210c], 0x7fffffff
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x70]
add rsp, 0x78
ret