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

Disassembly:
mov rax, rsp
sub rsp, 0x78
mov r8, qword [0x18019f6a8]
mov rcx, qword [0x18019f6b0]
cmp r8, rcx
je 0x18007cb76
cmp byte [0x18019f6fe], 0
je 0x18007cb76
mov qword [rax - 8], rdi
xor edi, edi
cmp byte [0x18019fb48], dil
mov qword [rax + 8], rbx
je 0x18007cb1a
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 0x18007c5c0
test ebx, ebx
jns 0x18007caef
lea rax, [r9 + r9*2]
lea r13, [r8 + rax*8]
test ebx, ebx
jne 0x18007c5e1
test dl, dl
jne 0x18007c5e1
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 0x18007cad5
movsx r10d, byte [0x18019fb00]
movsxd r14, ebx
lea rax, [r14 + r14*2]
lea r12, [rax*4]
movzx ebp, byte [r12 + rcx]
cmp ebp, r10d
je 0x18007c63d
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
movzx r10d, byte [0x18019fb00]
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 0x18007c689
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 0x18007c69b
jne 0x18007c696
cmp dword [rsp + 0x24], ebx
jle 0x18007c69b
xor r8b, r8b
jmp 0x18007c69e
mov r8b, 2
cmp byte [rsp + 0x21], 0
je 0x18007c7ad
movzx eax, byte [r12 + r9 + 8]
and al, 0xfd
or al, r8b
mov byte [r12 + r9 + 8], al
cmp bpl, 0x22
jne 0x18007c75d
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 0x18007c756
lea rax, [r14 + 1]
lea rax, [rax + rax*2]
cmp byte [r9 + rax*4], bpl
lea rcx, [r9 + rax*4]
jne 0x18007c756
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 0x18007ca33
mov eax, 6
jmp 0x18007ca75
mov byte [rsp + 0x21], 0
jmp 0x18007c712
movabs r14, 0x2aaaaaaaaaaaaaab
cmp bpl, 0x5c
jne 0x18007c71c
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 0x18007c71c
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 0x18007c71c
cmp byte [rsp + 0x34], 0
je 0x18007c7c8
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 0x18007c7e8
movzx eax, byte [r12 + r9 + 8]
and al, 0xfd
mov byte [rsp + 0x21], 1
or al, r8b
mov byte [r12 + r9 + 8], al
jmp 0x18007c712
mov rcx, qword [0x18019faf0]
add r9, r12
test rcx, rcx
je 0x18007c87e
lea rax, [r14 + rcx]
cmp rax, rsi
ja 0x18007c87e
cmp qword [0x18019faf8], 0xf
lea rax, [rcx + rcx*2]
lea rdi, [0x18019fae0]
mov r8, rdi
lea rdx, [r9 + rax*4]
cmova r8, qword [0x18019fae0]
mov rax, r9
add r8, rcx
mov rcx, rdi
cmp qword [0x18019faf8], 0xf
cmova rcx, qword [0x18019fae0]
cmp rcx, r8
je 0x18007c862
cmp rax, rdx
je 0x18007c879
movsx r11d, byte [rcx]
movzx r10d, byte [rax]
cmp r11d, r10d
jne 0x18007c879
inc rcx
add rax, 0xc
cmp rcx, r8
jne 0x18007c844
mov r11, qword [rsp + 0x28]
cmp rax, rdx
jne 0x18007c87e
mov r10b, 1
mov byte [rsp + 0x20], r10b
jmp 0x18007c9f9
mov r11, qword [rsp + 0x28]
movzx r10d, byte [rsp + 0x20]
test r10b, r10b
jne 0x18007c9f9
mov rcx, qword [0x18019fab0]
lea rax, [r14 + rcx]
cmp rax, rsi
ja 0x18007c9f9
cmp qword [0x18019fab8], 0xf
lea rax, [rcx + rcx*2]
lea rdi, [0x18019faa0]
mov r8, rdi
lea rdx, [r9 + rax*4]
cmova r8, qword [0x18019faa0]
mov rax, r9
add r8, rcx
mov rcx, rdi
cmp qword [0x18019fab8], 0xf
cmova rcx, qword [0x18019faa0]
cmp rcx, r8
je 0x18007c907
cmp rax, rdx
je 0x18007c9ee
movzx r11d, byte [rax]
movsx r10d, byte [rcx]
cmp r10d, r11d
jne 0x18007c9ee
inc rcx
add rax, 0xc
cmp rcx, r8
jne 0x18007c8e1
cmp rax, rdx
jne 0x18007c9ee
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 [0x18019fad0]
jl 0x18007c712
mov r8, qword [0x18019fad0]
lea r12, [0x18019fac0]
imul rax, r8, 0xfffffffffffffff4
lea rdx, [r9 + 0xc]
mov rcx, r12
add rax, rdx
cmp qword [0x18019fad8], 0xf
cmova rcx, qword [0x18019fac0]
add r8, rcx
mov rcx, r12
cmp qword [0x18019fad8], 0xf
cmova rcx, qword [0x18019fac0]
cmp rcx, r8
je 0x18007c9c6
nop dword [rax]
cmp rax, rdx
je 0x18007c712
movsx r10d, byte [rcx]
movzx r9d, byte [rax]
cmp r10d, r9d
jne 0x18007c712
inc rcx
add rax, 0xc
cmp rcx, r8
jne 0x18007c9a0
xor edi, edi
movabs r14, 0x2aaaaaaaaaaaaaab
cmp rax, rdx
jne 0x18007c71e
mov r11, qword [rsp + 0x48]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x24], edi
jmp 0x18007c71e
mov r11, qword [rsp + 0x28]
movzx r10d, byte [rsp + 0x20]
cmp r11, r15
jb 0x18007c91c
mov edx, dword [rsp + 0x24]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], r11
mov byte [rsp + 0x20], r10b
jne 0x18007ca2c
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x24], edx
mov byte [rsp + 0x20], r10b
cmp edx, ebx
jle 0x18007c91c
xor cl, cl
jmp 0x18007c924
movzx eax, bpl
and al, 0xfc
cmp al, 0xf8
jne 0x18007ca44
mov eax, 5
jmp 0x18007ca75
movzx eax, bpl
and al, 0xf8
cmp al, 0xf0
jne 0x18007ca55
mov eax, 4
jmp 0x18007ca75
movzx eax, bpl
and al, 0xf0
cmp al, 0xe0
jne 0x18007ca66
mov eax, 3
jmp 0x18007ca75
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 0x18007cab3
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 [0x18019f6a8]
jmp 0x18007c5b0
mov rcx, qword [rsp + 0x48]
inc r10d
inc r9
mov dword [rsp + 0x38], r10d
mov qword [rsp + 0x40], r9
jmp 0x18007c5a9
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 [0x18019fb48], 0
mov edx, dword [0x18019f70c]
mov ecx, dword [0x18019f710]
cmp edx, ecx
jge 0x18007cb69
cmp qword [0x18019fb08], 0
mov r8d, 0xa
mov ebx, 0x2710
cmove ebx, r8d
add ebx, edx
cmp ecx, ebx
cmovl ebx, ecx
mov r8d, ebx
call fcn.18007bed0
cmp dword [0x18019f710], ebx
mov dword [0x18019f70c], ebx
jne 0x18007cb69
mov qword [0x18019f70c], 0x7fffffff
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x70]
add rsp, 0x78
ret