Function at 0x140008cb4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov ebx, edx
mov r9w, 1
mov r10, r8
mov r11, rcx
cmp word [r8 + 0x10], r9w
ja 0x140008cde
test byte [r8], 4
jne 0x140008cde
xor dl, dl
jmp 0x140008ce1
mov dl, r9b
movzx ecx, word [r10 + 0xc]
mov eax, 0x12c
mov r8d, 0x6e
cmp ecx, eax
ja 0x140008f69
je 0x140008f51
cmp ecx, 0xc
ja 0x140008e44
je 0x140008e2c
cmp ecx, 6
ja 0x140008dbf
je 0x140008fcb
test ecx, ecx
je 0x140008da7
sub ecx, 1
je 0x140008d97
sub ecx, 1
je 0x140008d76
sub ecx, 1
je 0x140008fb6
sub ecx, 1
je 0x140008d5e
cmp ecx, 1
jne 0x140008f85
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x4c
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x55
jmp 0x140008ff3
xor dl, r9b
movzx ecx, dl
shl cx, 5
add cx, 0x53
mov r9d, ebx
mov r8, r11
mov rdx, r10
call fcn.140008bb4
jmp 0x140009036
xor dl, r9b
movzx ecx, dl
shl cx, 5
add cx, 0x5a
jmp 0x140008d84
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x4e
jmp 0x140008ff3
sub ecx, 7
je 0x140008f39
sub ecx, 1
je 0x140008e14
sub ecx, 1
je 0x140008f21
sub ecx, 1
je 0x140008dfc
cmp ecx, 1
jne 0x140008f85
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x46
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x58
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x51
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x47
jmp 0x140008ff3
cmp ecx, 0x13
ja 0x140008eec
je 0x140008f8c
sub ecx, 0xd
je 0x140008ed4
sub ecx, 1
je 0x140008ec1
sub ecx, 1
je 0x140008ea9
sub ecx, 1
je 0x140008fa1
sub ecx, 1
je 0x140008e91
cmp ecx, 1
jne 0x140008f85
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x59
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x4d
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x4a
jmp 0x140008ff3
xor dl, r9b
movzx ecx, dl
shl cx, 5
add cx, 0x42
jmp 0x140008d84
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x54
jmp 0x140008ff3
sub ecx, 0x14
je 0x140008f39
sub ecx, 1
je 0x140008f21
sub ecx, 1
je 0x140008f51
sub ecx, 1
je 0x140008fe0
cmp ecx, 2
jne 0x140008f85
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x45
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x49
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x44
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x57
jmp 0x140008ff3
sub ecx, 0x12d
je 0x140008fe0
sub ecx, 5
je 0x140008fcb
sub ecx, 1
je 0x140008fb6
sub ecx, 1
je 0x140008fa1
cmp ecx, 2
je 0x140008f8c
mov edi, 0x57
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x4b
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x50
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x43
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x48
jmp 0x140008ff3
mov al, dl
xor al, r9b
movzx r8d, al
shl r8w, 5
add r8w, 0x41
movzx r9d, r8w
mov rcx, r11
test dl, dl
je 0x140009027
test byte [r10], 4
lea rdx, str._c_d
movzx eax, word [r10 + 0x10]
lea r8, str._cR_d
cmove r8, rdx
mov dword [rsp + 0x20], eax
mov rdx, rbx
call fcn.140013b30
jmp 0x140009036
lea r8, [0x14006c8b4]
mov rdx, rbx
call fcn.140013b30
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret