Function at 0x140001540
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 [0x14004a040]
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 0x14000195e
xorps xmm0, xmm0
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x108
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 [0x14004adb4]
lea r13, [0x14004adc0]
xor r14d, r14d
lea rbx, [0x14004adc8]
lea r12, [fcn.140002150]
mov r8d, r14d
test r9d, r9d
jle 0x14000160a
mov rdx, rbx
mov rcx, qword [rdx - 8]
cmp rcx, r12
ja 0x1400015e2
add rcx, qword [rdx]
cmp rcx, r12
jae 0x1400015f0
inc r8d
add rdx, 0x18
cmp r8d, r9d
jl 0x1400015d1
jmp 0x14000160a
cmp r8d, 0xffffffff
jle 0x14000160a
movsxd rax, r8d
lea rcx, [rax + rax*2]
cmp byte [r13 + rcx*8 + 0x11], 1
jne 0x14000160a
mov byte [r13 + rcx*8 + 0x11], r14b
mov r9d, 0x40
lea r8, [rsp + 0x40]
mov rdx, r15
lea ecx, [r9 - 0x3c]
call fcn.140002150
mov r9d, dword [0x14004adb4]
mov r8d, r14d
mov edi, 5
test r9d, r9d
jle 0x140001695
mov rdx, rbx
nop dword [rax + rax]
mov rcx, qword [rdx - 8]
cmp rcx, r12
ja 0x140001651
add rcx, qword [rdx]
cmp rcx, r12
jae 0x14000165f
inc r8d
add rdx, 0x18
cmp r8d, r9d
jl 0x140001640
jmp 0x140001695
cmp r8d, 0xffffffff
jle 0x140001695
movsxd rax, r8d
lea rcx, [rax + rax*2]
lea rdx, [rcx*8]
cmp byte [rdx + r13 + 0x11], r14b
jne 0x140001695
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 0x14000195e
mov r8d, r14d
test r9d, r9d
jle 0x1400016e9
mov rdx, rbx
mov rcx, qword [rdx - 8]
cmp rcx, r12
ja 0x1400016c1
add rcx, qword [rdx]
cmp rcx, r12
jae 0x1400016cf
inc r8d
add rdx, 0x18
cmp r8d, r9d
jl 0x1400016b0
jmp 0x1400016e9
cmp r8d, 0xffffffff
jle 0x1400016e9
movsxd rax, r8d
lea rcx, [rax + rax*2]
cmp byte [r13 + rcx*8 + 0x11], 1
jne 0x1400016e9
mov byte [r13 + rcx*8 + 0x11], r14b
movsxd rdx, dword [rsp + 0x7c]
lea r8, [rsp + 0x80]
add rdx, r15
mov r9d, 0x108
mov ecx, 4
call fcn.140002150
mov r9d, dword [0x14004adb4]
mov r8d, r14d
test r9d, r9d
jle 0x140001775
mov rdx, rbx
nop dword [rax + rax]
mov rcx, qword [rdx - 8]
cmp rcx, r12
ja 0x140001731
add rcx, qword [rdx]
cmp rcx, r12
jae 0x14000173f
inc r8d
add rdx, 0x18
cmp r8d, r9d
jl 0x140001720
jmp 0x140001775
cmp r8d, 0xffffffff
jle 0x140001775
movsxd rax, r8d
lea rcx, [rax + rax*2]
lea rdx, [rcx*8]
cmp byte [rdx + r13 + 0x11], r14b
jne 0x140001775
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 0x14000195e
mov esi, dword [rsp + 0x108]
test esi, esi
je 0x14000195e
mov eax, dword [rsp + 0x10c]
test eax, eax
je 0x14000195e
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 [0x14004adb4]
mov r8d, r14d
mov rdi, rax
test r9d, r9d
jle 0x140001819
mov rdx, rbx
nop
mov rcx, qword [rdx - 8]
cmp rcx, r12
ja 0x1400017f1
add rcx, qword [rdx]
cmp rcx, r12
jae 0x1400017ff
inc r8d
add rdx, 0x18
cmp r8d, r9d
jl 0x1400017e0
jmp 0x140001819
cmp r8d, 0xffffffff
jle 0x140001819
movsxd rax, r8d
lea rdx, [rax + rax*2]
cmp byte [r13 + rdx*8 + 0x11], 1
jne 0x140001819
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.140002150
mov r8d, dword [0x14004adb4]
mov edx, r14d
test r8d, r8d
jle 0x14000189f
nop
mov rcx, qword [rbx - 8]
cmp rcx, r12
ja 0x140001851
add rcx, qword [rbx]
cmp rcx, r12
jae 0x14000185e
inc edx
add rbx, 0x18
cmp edx, r8d
jl 0x140001840
jmp 0x14000189f
cmp edx, 0xffffffff
jle 0x14000189f
movsxd rax, edx
lea r8, [0x14004adc0]
lea rcx, [rax + rax*2]
lea rdx, [rcx*8]
cmp byte [rdx + r8 + 0x11], r14b
jne 0x14000189f
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 0x1400018e0
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 0x14000191e
inc r14d
cmp r14d, dword [rdi + 0x18]
jb 0x1400018c0
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.140037ac0
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 0x140001948
mov rax, qword [rsp + 0x30]
add rax, r13
add rax, rcx
cmp rbx, rax
jbe 0x1400018e0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbx
jmp 0x1400018f3
xor eax, eax
jmp 0x1400018fb