Function at 0x140001760
Capabilities:
Parse pe header

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a0
mov rax, qword [0x14004a010]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov qword [rsp + 0x20], rdx
mov r15, rcx
mov qword [rsp + 0x28], rcx
test rcx, rcx
je 0x140001b7e
xorps xmm0, xmm0
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, pe_nt_image_headers64
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [0x14004b0a0]
lea r13, [0x14004abf0]
xor r14d, r14d
lea rbx, [0x14004abf8]
lea r12, [fcn.140002370]
mov r8d, r14d
test r9d, r9d
jle 0x14000182a
mov rdx, rbx
mov rcx, qword [rdx - 8]
cmp rcx, r12
ja 0x140001802
add rcx, qword [rdx]
cmp rcx, r12
jae 0x140001810
inc r8d
add rdx, 0x18
cmp r8d, r9d
jl 0x1400017f1
jmp 0x14000182a
cmp r8d, 0xffffffff
jle 0x14000182a
movsxd rax, r8d
lea rcx, [rax + rax*2]
cmp byte [r13 + rcx*8 + 0x11], 1
jne 0x14000182a
mov byte [r13 + rcx*8 + 0x11], r14b
mov r9d, 0x40
lea r8, [rsp + 0x40]
mov rdx, r15
lea ecx, [r9 - 0x3c]
call fcn.140002370
mov r9d, dword [0x14004b0a0]
mov r8d, r14d
mov edi, 5
test r9d, r9d
jle 0x1400018b5
mov rdx, rbx
nop dword [rax + rax]
mov rcx, qword [rdx - 8]
cmp rcx, r12
ja 0x140001871
add rcx, qword [rdx]
cmp rcx, r12
jae 0x14000187f
inc r8d
add rdx, 0x18
cmp r8d, r9d
jl 0x140001860
jmp 0x1400018b5
cmp r8d, 0xffffffff
jle 0x1400018b5
movsxd rax, r8d
lea rcx, [rax + rax*2]
lea rdx, [rcx*8]
cmp byte [rdx + r13 + 0x11], r14b
jne 0x1400018b5
movzx eax, byte [rdx + r13 + 0x10]
cmp al, 0xf3
mov byte [rdx + r13 + 0x11], 1
mov ecx, eax
cmova ecx, edi
inc cl
mov byte [rdx + r13 + 0x10], cl
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x140001b7e
mov r8d, r14d
test r9d, r9d
jle 0x140001909
mov rdx, rbx
mov rcx, qword [rdx - 8]
cmp rcx, r12
ja 0x1400018e1
add rcx, qword [rdx]
cmp rcx, r12
jae 0x1400018ef
inc r8d
add rdx, 0x18
cmp r8d, r9d
jl 0x1400018d0
jmp 0x140001909
cmp r8d, 0xffffffff
jle 0x140001909
movsxd rax, r8d
lea rcx, [rax + rax*2]
cmp byte [r13 + rcx*8 + 0x11], 1
jne 0x140001909
mov byte [r13 + rcx*8 + 0x11], r14b
movsxd rdx, dword [rsp + 0x7c]
lea r8, [rsp + 0x80]
add rdx, r15
mov r9d, pe_nt_image_headers64
mov ecx, 4
call fcn.140002370
mov r9d, dword [0x14004b0a0]
mov r8d, r14d
test r9d, r9d
jle 0x140001995
mov rdx, rbx
nop dword [rax + rax]
mov rcx, qword [rdx - 8]
cmp rcx, r12
ja 0x140001951
add rcx, qword [rdx]
cmp rcx, r12
jae 0x14000195f
inc r8d
add rdx, 0x18
cmp r8d, r9d
jl 0x140001940
jmp 0x140001995
cmp r8d, 0xffffffff
jle 0x140001995
movsxd rax, r8d
lea rcx, [rax + rax*2]
lea rdx, [rcx*8]
cmp byte [rdx + r13 + 0x11], r14b
jne 0x140001995
movzx eax, byte [rdx + r13 + 0x10]
cmp al, 0xf3
mov byte [rdx + r13 + 0x11], 1
mov ecx, eax
cmova ecx, edi
inc cl
mov byte [rdx + r13 + 0x10], cl
cmp dword [rsp + 0x80], 0x4550
jne 0x140001b7e
mov esi, dword [rsp + 0x108]
test esi, esi
je 0x140001b7e
mov eax, dword [rsp + 0x10c]
test eax, eax
je 0x140001b7e
mov qword [rsp + 0x1f0], rbp
mov r9d, 4
mov r8d, 0x3000
mov qword [rsp + 0x30], rax
mov edx, eax
xor ecx, ecx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, dword [0x14004b0a0]
mov r8d, r14d
mov rdi, rax
test r9d, r9d
jle 0x140001a39
mov rdx, rbx
nop
mov rcx, qword [rdx - 8]
cmp rcx, r12
ja 0x140001a11
add rcx, qword [rdx]
cmp rcx, r12
jae 0x140001a1f
inc r8d
add rdx, 0x18
cmp r8d, r9d
jl 0x140001a00
jmp 0x140001a39
cmp r8d, 0xffffffff
jle 0x140001a39
movsxd rax, r8d
lea rdx, [rax + rax*2]
cmp byte [r13 + rdx*8 + 0x11], 1
jne 0x140001a39
mov byte [r13 + rdx*8 + 0x11], r14b
lea rdx, [r15 + rsi]
mov r9, rbp
mov r8, rdi
mov ecx, 4
mov r13, rsi
call fcn.140002370
mov r8d, dword [0x14004b0a0]
mov edx, r14d
test r8d, r8d
jle 0x140001abf
nop
mov rcx, qword [rbx - 8]
cmp rcx, r12
ja 0x140001a71
add rcx, qword [rbx]
cmp rcx, r12
jae 0x140001a7e
inc edx
add rbx, 0x18
cmp edx, r8d
jl 0x140001a60
jmp 0x140001abf
cmp edx, 0xffffffff
jle 0x140001abf
movsxd rax, edx
lea r8, [0x14004abf0]
lea rcx, [rax + rax*2]
lea rdx, [rcx*8]
cmp byte [rdx + r8 + 0x11], r14b
jne 0x140001abf
movzx eax, byte [rdx + r8 + 0x10]
cmp al, 0xf3
mov byte [rdx + r8 + 0x11], 1
mov ecx, eax
mov eax, 5
cmova ecx, eax
inc cl
mov byte [rdx + r8 + 0x10], cl
mov ebp, dword [rdi + 0x20]
mov rsi, rdi
mov r15d, dword [rdi + 0x24]
sub rsi, r13
mov r12d, dword [rdi + 0x1c]
add rbp, rsi
add r15, rsi
add r12, rsi
cmp dword [rdi + 0x18], r14d
jbe 0x140001b00
nop
mov ecx, dword [rbp + r14*4]
mov rdx, qword [rsp + 0x20]
add rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140001b3e
inc r14d
cmp r14d, dword [rdi + 0x18]
jb 0x140001ae0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14003aa80
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
movzx eax, word [r15 + r14*2]
mov rcx, qword [rsp + 0x28]
mov ebx, dword [r12 + rax*4]
add rbx, rcx
lea rax, [rcx + r13]
cmp rbx, rax
jb 0x140001b68
mov rax, qword [rsp + 0x30]
add rax, r13
add rax, rcx
cmp rbx, rax
jbe 0x140001b00
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbx
jmp 0x140001b13
xor eax, eax
jmp 0x140001b1b