Function at 0x140043020
Capabilities:
Parse pe header

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14004304a
mov rcx, qword [rcx + 0x10]
cmp rdx, rcx
je 0x14004304a
test rcx, rcx
jle 0x140043046
call qword [0x1400bf200]
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x14004305f
mov eax, 0xc0000141
add rsp, 0x58
pop rdi
pop rbx
ret
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400432ef
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
mov qword [rbx + 0x20], rdx
mov qword [rbx + 0x28], rdx
cmp dword [rdx], 0x4550
jne 0x1400432ef
mov eax, 0x20b
mov qword [rsp + 0x78], rsi
cmp word [rdx + 0x18], ax
jne 0x1400430ac
mov byte [rbx + 0x19], 1
lea rdi, [rdx + 0x108]
mov rax, qword [rdx + 0x30]
mov r8b, 1
jmp 0x1400430bd
mov byte [rbx + 0x19], 0
lea rdi, [rdx + 0xf8]
mov eax, dword [rdx + 0x34]
xor r8b, r8b
mov qword [rbx + 0x30], rax
mov eax, dword [rdx + 0x50]
mov dword [rbx + 0x38], eax
mov eax, dword [rdx + 0x54]
mov dword [rbx + 0x40], eax
mov eax, dword [rdx + 0x28]
mov dword [rbx + 0x3c], eax
mov rax, rdx
movzx r9d, word [rdx + 0x5c]
mov dword [rbx + 0x54], r9d
movzx eax, word [rdx + 0x5e]
mov dword [rbx + 0x5c], eax
movzx eax, word [rdx + 0x16]
shr ax, 0xd
not al
and al, 1
mov byte [rbx + 0x1a], al
test r8b, r8b
je 0x140043103
add rdx, 0xf8
jmp 0x14004310a
add rdx, 0xe8
mov eax, dword [rdx]
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x50], r15
test eax, eax
je 0x140043273
mov edx, eax
mov r8d, 1
mov rcx, rbx
call fcn.140043be0
test rax, rax
je 0x140043273
test byte [rax + 0x10], 1
je 0x140043273
sub eax, dword [rbx + 0x10]
lea rsi, [rbx + 0x138]
add eax, 0x10
mov byte [rbx + 0x1b], 1
lea rdx, [rbx + 0xf8]
mov dword [rbx + 0x58], eax
cmp rsi, rdx
je 0x14004317a
cmp qword [rdx + 0x18], 8
mov r8, qword [rdx + 0x10]
jb 0x140043172
mov rdx, qword [rdx]
mov rcx, rsi
call fcn.14002a2d0
cmp qword [rsi + 0x30], 0
lea r14, [rsi + 0x30]
jne 0x1400431bc
xor ecx, ecx
call qword [0x1400bf798]
test eax, eax
js 0x140043277
xor edx, edx
mov qword [rsp + 0x20], r14
lea r9, [0x1400dd050]
lea rcx, [0x1400dd020]
lea r8d, [rdx + 1]
call qword [0x1400bf7a0]
test eax, eax
js 0x140043277
cmp qword [rsi + 0x38], 0
lea r15, [rsi + 0x38]
jne 0x14004324b
cmp qword [rsi + 0x18], 8
mov rdx, rsi
mov rcx, qword [r14]
mov rax, qword [rcx]
jb 0x1400431de
mov rdx, qword [rsi]
lea r9, [0x1400dd010]
mov qword [rsp + 0x20], r15
xor r8d, r8d
call qword [rax + 0x20]
cmp eax, 0x80131110
jne 0x140043247
mov rcx, qword [r14]
lea r8, [rsp + 0x30]
mov eax, 0x13
mov dword [rsp + 0x38], 4
mov word [rsp + 0x30], ax
lea rdx, [0x1400dd040]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
js 0x140043277
cmp qword [rsi + 0x18], 8
mov rdx, rsi
mov rcx, qword [r14]
mov rax, qword [rcx]
jb 0x140043235
mov rdx, qword [rsi]
lea r9, [0x1400dd010]
mov qword [rsp + 0x20], r15
xor r8d, r8d
call qword [rax + 0x20]
test eax, eax
js 0x140043277
cmp qword [rsi + 0x40], 0
lea r8, [rsi + 0x40]
jne 0x140043269
mov rcx, qword [r15]
lea rdx, [0x1400dd060]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x140043277
mov rcx, rsi
call fcn.140042150
jmp 0x140043277
mov byte [rbx + 0x1b], 0
mov rax, qword [rbx + 0x20]
xor esi, esi
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x80]
cmp si, word [rax + 6]
jae 0x1400432e1
mov qword [rsp + 0x70], rbp
mov rdx, qword [rbx + 0x68]
cmp rdx, qword [rbx + 0x70]
je 0x1400432be
movups xmm0, xmmword [rdi]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rdx + 0x10], xmm1
movsd xmm0, qword [rdi + 0x20]
movsd qword [rdx + 0x20], xmm0
add qword [rbx + 0x68], 0x28
jmp 0x1400432ca
mov r8, rdi
lea rcx, [rbx + 0x60]
call fcn.140044310
mov rax, qword [rbx + 0x20]
inc esi
add rdi, 0x28
movzx ecx, word [rax + 6]
cmp esi, ecx
jl 0x140043295
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
xor eax, eax
add rsp, 0x58
pop rdi
pop rbx
ret
mov eax, 0xc000007b
add rsp, 0x58
pop rdi
pop rbx
ret