Function at 0x140008780
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
mov r12d, r8d
mov r15, rdx
mov rsi, rcx
cmp word [rcx], ax
jne 0x1400088f9
test rdx, rdx
je 0x1400087cc
mov rcx, rdx
call qword [fcn.140048328]
cmp eax, 0x104
jge 0x1400088f9
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x1400088f9
mov ecx, 0x10b
cmp word [rax + rsi + 0x18], cx
jne 0x1400088f9
mov rbp, qword [rax + rsi + 0x30]
xor r13d, r13d
mov r14d, dword [rax + rsi + 0x50]
test r15, r15
je 0x14000884a
lea rcx, [0x140071cb0]
call qword [fcn.140048348]
mov rbx, qword [0x140071ca8]
test rbx, rbx
je 0x14000883d
nop dword [rax + rax]
lea rcx, [rbx + 8]
mov rdx, r15
call qword [0x140048258]
test eax, eax
je 0x14000888c
mov rbx, qword [rbx + 0x114]
test rbx, rbx
jne 0x140008820
lea rcx, [0x140071cb0]
call qword [fcn.140048340]
mov rbx, r13
mov edi, r13d
mov eax, 4
cmp edi, 0x2f
jge 0x140008918
mov rdx, r14
mov ecx, ebp
mov r9d, eax
mov r8d, 0x3000
call qword [0x140048288]
add ebp, 0x1000000
inc edi
mov rbx, rax
test rax, rax
mov eax, 4
je 0x140008855
jmp 0x14000891d
lea rcx, [0x140071cb0]
call qword [fcn.140048340]
mov rbx, qword [rbx]
test rbx, rbx
je 0x14000884d
lea rcx, [0x140071cb0]
call qword [fcn.140048348]
mov rax, qword [0x140071ca8]
test rax, rax
je 0x1400088d5
nop word [rax + rax]
cmp qword [rax], rbx
je 0x140008ab4
mov rax, qword [rax + 0x114]
test rax, rax
jne 0x1400088c0
mov ecx, 0x11c
call qword [0x1400489d8]
mov rdi, rax
test rax, rax
jne 0x140008abc
lea rcx, [0x140071cb0]
call qword [fcn.140048340]
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test rbx, rbx
je 0x1400088f9
movsxd rax, dword [rsi + 0x3c]
mov rdx, rsi
mov rcx, rbx
mov r8d, dword [rax + rsi + 0x54]
movzx ebp, word [rax + rsi + 6]
call fcn.140044b52
movsxd rdi, dword [rsi + 0x3c]
add rdi, 0x11c
cmp r13w, bp
jae 0x14000896e
add rdi, rsi
nop word [rax + rax]
mov edx, dword [rdi]
mov ecx, dword [rdi - 8]
add rdx, rsi
movsxd r8, dword [rdi - 4]
add rcx, rbx
call fcn.140044b52
lea rdi, [rdi + 0x28]
sub rbp, 1
jne 0x140008950
test r12b, 2
jne 0x1400088a1
mov r8d, r12d
mov edx, r14d
not r8d
mov rcx, rbx
and r8d, 1
call fcn.140008b20
test eax, eax
je 0x140008a9e
test r12b, 1
jne 0x1400089c8
movsxd rax, dword [rbx + 0x3c]
mov ecx, 0x2000
test word [rax + rbx + 0x16], cx
je 0x1400089c8
mov r9d, dword [rax + rbx + 0x28]
xor r8d, r8d
add r9d, ebx
mov rcx, rbx
lea edx, [r8 + 1]
call r9
test eax, eax
je 0x140008a9e
movsxd rax, dword [rbx + 0x3c]
mov esi, r13d
movzx ebp, word [rax + rbx + 6]
test ebp, ebp
je 0x1400088a1
mov r8d, 0x40
lea rdi, [rbx + 0x118]
add rdi, rax
lea r14d, [r8 - 0x3c]
mov eax, dword [rdi + 0x14]
mov ecx, r13d
mov r10d, dword [rdi - 4]
mov edx, eax
and edx, 0x40000000
add r10d, ebx
test eax, eax
jns 0x140008a22
test edx, edx
je 0x140008a33
bt eax, 0x1d
jae 0x140008a46
bt eax, 0x1c
mov ecx, 0x80
cmovb ecx, r8d
jmp 0x140008a5e
test edx, edx
je 0x140008a33
bt eax, 0x1d
jae 0x140008a46
mov ecx, 0x20
jmp 0x140008a5e
bt eax, 0x1d
jae 0x140008a40
mov ecx, 0x10
jmp 0x140008a5e
bt eax, 0x1e
jae 0x140008a5e
test eax, eax
jns 0x140008a59
bt eax, 0x1c
mov ecx, 8
cmovb ecx, r14d
jmp 0x140008a5e
mov ecx, 2
mov r8d, ecx
bts r8d, 9
and eax, 0x4000000
cmove r8d, ecx
test r8d, r8d
je 0x140008a9e
movsxd rdx, dword [rdi]
lea r9, [rsp + 0x50]
mov rcx, r10
call qword [0x140048280]
add rdi, 0x28
inc esi
mov r8d, 0x40
cmp esi, ebp
jl 0x1400089f0
jmp 0x1400088a1
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [0x140048470]
jmp 0x1400088f9
inc dword [rax + 0x110]
jmp 0x140008b03
mov qword [rax], rbx
test r15, r15
je 0x140008ad9
mov r8d, 0x104
lea rcx, [rax + 8]
mov rdx, r15
call qword [0x140048250]
jmp 0x140008add
mov byte [rax + 8], r13b
mov dword [rdi + 0x110], 1
mov dword [rdi + 0x10c], r12d
mov rax, qword [0x140071ca8]
mov qword [rdi + 0x114], rax
mov qword [0x140071ca8], rdi
lea rcx, [0x140071cb0]
call qword [fcn.140048340]
mov rax, rbx
jmp 0x1400088fb