Function at 0x180066a30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r9, rcx
lea r11, [0x180000000]
movzx ecx, byte [rcx]
mov rdi, rdx
lea eax, [rcx - 9]
cmp eax, 0x75
ja case.0x180066a71.34
cdqe
mov ebx, 1
movzx eax, byte [r11 + rax + 0x67208]
mov r8d, dword [r11 + rax*4 + 0x671a0]
add r8, r11
jmp r8
movzx eax, byte [r9 + 1]
inc r9
test byte [rax + r11 + 0xca230], bl
je 0x180066aa6
nop word [rax + rax]
movzx eax, byte [r9 + 1]
lea r9, [r9 + 1]
inc ebx
test byte [rax + r11 + 0xca230], 1
jne 0x180066a90
mov dword [rdx], 0x95
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp byte [r9 + 1], 0x2d
jne 0x180066af6
mov edx, 2
add r9, rdx
movzx eax, byte [r9]
test eax, eax
je 0x180066ae3
cmp eax, 0xa
je 0x180066ae3
movzx eax, byte [r9 + 1]
inc r9
inc edx
test eax, eax
jne 0x180066ad0
mov dword [rdi], 0x95
mov eax, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x57
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x16
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x17
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x56
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x58
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp byte [r9 + 1], 0x2a
jne 0x180066bb3
movzx eax, byte [r9 + 2]
test al, al
je 0x180066bb3
mov ecx, 3
movzx eax, al
add r9, rcx
cmp eax, 0x2a
jne 0x180066b8f
cmp byte [r9], 0x2f
je 0x180066b9e
movzx eax, byte [r9]
test eax, eax
je 0x180066ba0
inc ecx
inc r9
jmp 0x180066b84
inc ecx
mov dword [rdx], 0x95
mov eax, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x59
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x5a
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x4c
xor edx, edx
cmp byte [r9 + 1], 0x3d
sete dl
lea eax, [rdx + 1]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [r9 + 1]
cmp eax, 0x3d
jne 0x180066c19
mov dword [rdx], 0x4e
mov eax, 2
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0x3e
jne 0x180066c34
mov dword [rdx], 0x4b
mov eax, 2
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0x3c
jne 0x180066c4f
mov dword [rdx], 0x54
mov eax, 2
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x4f
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [r9 + 1]
cmp eax, 0x3d
jne 0x180066c83
mov dword [rdx], 0x50
mov eax, 2
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0x3e
jne 0x180066c9e
mov dword [rdx], 0x55
mov eax, 2
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x4d
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp byte [r9 + 1], 0x3d
mov eax, 2
je 0x180066cd2
mov r8d, 0x94
mov dword [rdx], r8d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x4b
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp byte [r9 + 1], 0x7c
je 0x180066cfe
mov dword [rdx], 0x53
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x5b
mov eax, 2
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x19
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x52
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x5d
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx r8d, byte [r9 + 1]
lea rdx, [r9 + 1]
test r8d, r8d
je 0x180066d89
add r9, 2
cmp r8d, ecx
jne 0x180066d77
movzx eax, byte [r9]
cmp eax, ecx
jne 0x180066d89
inc ebx
inc r9
inc rdx
movzx r8d, byte [rdx + 1]
inc rdx
inc ebx
inc r9
test r8d, r8d
jne 0x180066d62
cmp r8d, 0x27
jne 0x180066da3
mov dword [rdi], 0x5e
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test r8d, r8d
je 0x180066dbd
mov eax, 0x1a
mov dword [rdi], eax
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8d, 0x94
mov eax, ebx
mov dword [rdi], r8d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [r9 + 1]
test byte [rax + r11 + 0xca230], 4
jne case.0x180066a71.24
mov dword [rdx], 0x76
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdx], 0x81
xor edx, edx
movzx eax, byte [r9]
test byte [rax + r11 + 0xca230], 4
je 0x180066e26
mov rcx, r9
movzx eax, byte [rcx + 1]
lea rcx, [rcx + 1]
inc edx
test byte [rax + r11 + 0xca230], 4
jne 0x180066e11
movsxd rax, edx
cmp byte [rax + r9], 0x2e
jne 0x180066e61
inc edx
movsxd rcx, edx
add rcx, r9
movzx eax, byte [rcx]
test byte [rax + r11 + 0xca230], 4
je 0x180066e5b
movzx eax, byte [rcx + 1]
lea rcx, [rcx + 1]
inc edx
test byte [rax + r11 + 0xca230], 4
jne 0x180066e46
mov dword [rdi], 0x82
movsxd rax, edx
movzx ecx, byte [rax + r9]
sub cl, 0x45
test cl, 0xdf
jne 0x180066edb
lea eax, [rdx + 1]
movsxd rcx, eax
movzx eax, byte [rcx + r9]
test byte [rax + r11 + 0xca230], 4
jne 0x180066ea3
sub al, 0x2b
test al, 0xfd
jne 0x180066edb
lea eax, [rdx + 2]
movsxd rcx, eax
movzx eax, byte [rcx + r9]
test byte [rax + r11 + 0xca230], 4
je 0x180066edb
add edx, 2
movsxd rcx, edx
add rcx, r9
movzx eax, byte [rcx]
test byte [rax + r11 + 0xca230], 4
je 0x180066ed5
nop word [rax + rax]
movzx eax, byte [rcx + 1]
lea rcx, [rcx + 1]
inc edx
test byte [rax + r11 + 0xca230], 4
jne 0x180066ec0
mov dword [rdi], 0x82
movsxd r10, edx
add r10, r9
movzx eax, byte [r10]
test byte [rax + r11 + 0xca230], 0x46
je 0x180066f18
mov r8d, 0x94
nop word [rax + rax]
lea r10, [r10 + 1]
mov dword [rdi], r8d
movzx ecx, byte [r10]
inc edx
test byte [rcx + r11 + 0xca230], 0x46
jne 0x180066f00
mov eax, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp ecx, 0x5d
je 0x180066f42
inc r9
nop dword [rax]
movzx ecx, byte [r9]
test ecx, ecx
je 0x180066f42
inc ebx
inc r9
cmp ecx, 0x5d
jne 0x180066f30
mov eax, 0x1a
cmp ecx, 0x5d
mov r8d, 0x94
cmove r8d, eax
mov eax, ebx
mov dword [rdx], r8d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
inc r9
mov dword [rdx], 0x85
movzx eax, byte [r9]
test byte [rax + r11 + 0xca230], 4
je 0x180067191
movzx eax, byte [r9 + 1]
lea r9, [r9 + 1]
inc ebx
test byte [rax + r11 + 0xca230], 4
jne 0x180066f80
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [r9 + 1]
lea rdx, [r9 + 1]
mov r8d, ebx
test byte [rax + r11 + 0xca230], 4
je case.0x180066a71.13
nop word [rax + rax]
movzx ecx, byte [rdx + 1]
lea rdx, [rdx + 1]
inc r8d
test byte [rcx + r11 + 0xca230], 4
jne 0x180066fc0
cmp r8d, ebx
jle case.0x180066a71.13
mov dword [rdi], 0x84
mov eax, r8d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rdi], 0x85
xor edx, edx
movzx r10d, byte [r9 + 1]
mov r8d, 0x94
test r10d, r10d
je 0x180067097
mov rcx, rbx
nop
movzx eax, r10b
test byte [rax + r11 + 0xca230], 0x46
je 0x180067023
inc edx
jmp 0x18006703b
cmp r10d, 0x28
je 0x18006704d
cmp r10d, 0x3a
jne 0x18006708f
cmp byte [r9 + rcx + 1], r10b
jne 0x18006708f
inc ebx
inc rcx
movzx r10d, byte [rcx + r9 + 1]
inc rcx
inc ebx
test r10d, r10d
jne 0x180067010
jmp 0x18006708f
test edx, edx
jle 0x180067091
lea r10, [rcx + r9]
nop word [rax + rax]
movzx ecx, byte [r10 + 1]
lea r10, [r10 + 1]
inc ebx
test ecx, ecx
je 0x180067083
test byte [rcx + r11 + 0xca230], 1
jne 0x180067083
cmp ecx, 0x29
jne 0x180067060
inc ebx
jmp 0x18006708f
cmp ecx, 0x29
jne 0x18006708c
inc ebx
jmp 0x18006708f
mov dword [rdi], r8d
test edx, edx
jne 0x180067191
mov dword [rdi], r8d
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp byte [r9 + 1], 0x27
jne case.0x180066a71.34
mov dword [rdx], 0x83
lea rcx, [r9 + 2]
movzx eax, byte [rcx]
mov edx, 2
test byte [rax + r11 + 0xca230], 8
je 0x1800670e5
nop
movzx eax, byte [rcx + 1]
lea rcx, [rcx + 1]
inc edx
test byte [rax + r11 + 0xca230], 8
jne 0x1800670d0
movsxd rax, edx
cmp byte [rax + r9], 0x27
lea rcx, [rax + r9]
jne 0x1800670f7
test bl, dl
je 0x180067118
mov r8d, 0x94
mov dword [rdi], r8d
movzx eax, byte [rcx]
test al, al
je 0x180067118
cmp al, 0x27
je 0x180067118
movzx eax, byte [rcx + 1]
inc rcx
inc edx
test al, al
jne 0x180067107
movsxd rax, edx
lea ecx, [rdx + 1]
cmp byte [rax + r9], 0
cmove ecx, edx
mov eax, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test byte [rcx + r11 + 0xca230], 0x46
jne 0x180067157
mov r8d, 0x94
mov eax, 1
mov dword [rdx], r8d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [r9 + 1]
lea rcx, [r9 + 1]
mov ebx, 1
test byte [rax + r11 + 0xca230], 0x46
je 0x180067185
movzx eax, byte [rcx + 1]
lea rcx, [rcx + 1]
inc ebx
test byte [rax + r11 + 0xca230], 0x46
jne 0x180067170
mov edx, ebx
mov rcx, r9
call fcn.180045000
mov dword [rdi], eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret