Function at 0x140055380
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xc0
mov rax, qword [0x140075040]
xor rax, rsp
mov qword [rbp - 9], rax
mov r12, rdx
mov rsi, rcx
mov qword [rbp - 0x69], rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x61], rax
xor r13d, r13d
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x19], r13
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140055714
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x140055714
test rdi, rdi
je 0x140055714
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x140055714
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x140055714
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rbp - 0x59], eax
sub ebx, eax
mov edx, ebx
mov qword [rbp - 0x71], rdx
je 0x140055703
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x1400795fc], eax
jle 0x140055530
lea rcx, [0x1400795fc]
call fcn.140057c4c
cmp dword [0x1400795fc], 0xffffffff
jne 0x14005552c
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
mov ecx, 0x20
call fcn.140057780
mov qword [rbp - 0x51], rax
movdqa xmm0, xmmword [0x14006ad00]
movdqu xmmword [rbp - 0x41], xmm0
movups xmm0, xmmword [0x14006a6e0]
movups xmmword [rax], xmm0
mov ecx, dword [0x14006a6f0]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x14006a6f4]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], r13b
lea r8, [rbp - 0x51]
mov rdx, qword [0x140079498]
mov rcx, rsi
call fcn.140051570
mov qword [0x140079660], rax
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x140055520
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005551a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005551a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400577bc
nop
lea rcx, [0x1400795fc]
call fcn.140057be0
mov rdx, qword [rbp - 0x71]
cmp qword [0x140079660], 0
je 0x140055703
mov qword [rbp - 0x79], r13
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x79]
mov rcx, rsi
call fcn.140054380
test al, al
je 0x140055703
mov r15, qword [rbp - 0x79]
test r15, r15
je 0x140055703
mov r8d, dword [rdi + 0x54]
mov rdx, r12
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
mov esi, r13d
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x1400555bb
add rbx, rdi
nop dword [rax]
test dword [rbx + 0x14], 0x80
ja 0x1400555ad
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r12
mov ecx, dword [rbx - 4]
add rcx, r14
call sub.VCRUNTIME140.dll_memcpy
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x140055590
mov r13d, dword [rbp - 0x59]
mov r12, r15
sub r12, r13
mov rbx, r12
sub rbx, qword [rdi + 0x30]
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.140055f70
mov rdx, rbx
mov rcx, rax
call fcn.140055740
mov rdx, r12
mov rcx, r14
call fcn.140055840
test al, al
je 0x140055714
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.1400560d0
mov rdx, rax
mov rsi, qword [rbp - 0x69]
mov rcx, rsi
call fcn.140055900
test al, al
je 0x1400556e5
lea rax, [r14 + r13]
test rax, rax
je 0x1400556e5
xor ecx, ecx
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x51], 0x33
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], r15
mov r13, qword [rbp - 0x71]
mov qword [rbp - 0x31], r13
mov dword [rbp - 0x59], ecx
mov qword [rsp + 0x38], rcx
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov r9d, 0x28
lea r8, [rbp - 0x51]
mov edx, 0x80862007
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400556e5
mov ebx, dword [rdi + 0x28]
add rbx, r12
xor edi, edi
mov qword [rsp + 0x20], rdi
mov r9, r13
mov r8, r15
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.14004e100
test al, al
je 0x1400556e5
mov dword [rbp - 0x59], edi
mov rax, qword [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x19]
mov r8, rbx
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.140055b60
test al, al
je 0x1400556e5
mov rax, qword [rbp - 0x61]
test rax, rax
je 0x1400556cf
mov ecx, dword [rbp - 0x59]
mov dword [rax], ecx
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r15
jmp 0x140055716
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r15
mov rcx, rsi
call fcn.140051450
jmp 0x140055714
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140057760
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret