Function at 0x140008610
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140047060]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x60], rax
xor esi, esi
mov qword [r11 - 0x58], rsi
mov qword [r11 - 0x48], rsi
mov r15, qword [0x1400503e0]
mov qword [rsp + 0x38], r15
mov eax, 0x5a4d
cmp word [0x14004ca70], ax
jne 0x1400086e5
movsxd rdi, dword [0x14004caac]
lea rax, [0x14004ca70]
add rdi, rax
cmp dword [rdi], 0x4550
jne 0x1400086e5
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x1400086e5
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rsi + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x1400086e5
movzx ecx, word [rdi + 0x14]
mov r13d, dword [rcx + rdi + 0x24]
sub ebx, r13d
mov r12d, ebx
jne 0x140008718
mov rbp, rsi
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, rbp
mov rcx, r15
call fcn.140002aa0
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14000c610
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14005041c], eax
jle 0x1400087df
lea rcx, [0x14005041c]
call fcn.14000c7c0
cmp dword [0x14005041c], 0xffffffff
jne 0x1400087df
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x15
lea rdx, [0x1400388b0]
lea rcx, [rsp + 0x40]
call fcn.140007560
nop
lea r8, [rsp + 0x40]
mov rdx, qword [0x1400503d8]
mov rcx, r15
call fcn.140002bb0
mov qword [0x140050490], rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400087d3
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400087cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000895a
call fcn.14000c630
nop
lea rcx, [0x14005041c]
call fcn.14000c760
cmp qword [0x140050490], 0
je 0x1400086c6
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140006810
test al, al
je 0x1400086c6
mov rbp, qword [rsp + 0x30]
test rbp, rbp
je 0x1400086c9
mov r8d, dword [rdi + 0x54]
lea rdx, [0x14004ca70]
mov rcx, r14
call fcn.14000e740
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x140008877
add rbx, rdi
lea r15, [0x14004ca70]
test dword [rbx + 0x14], 0x80
ja 0x140008864
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r15
mov ecx, dword [rbx - 4]
add rcx, r14
call fcn.14000e740
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x140008847
mov r15, qword [rsp + 0x38]
mov rsi, rbp
sub rsi, r13
mov rbx, rsi
sub rbx, qword [rdi + 0x30]
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.1400099c0
mov rdx, rbx
mov rcx, rax
call fcn.140008960
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140009b10
mov rdx, rax
mov rcx, r15
call fcn.140008a60
test al, al
je 0x1400086c9
lea r8, [r14 + r13]
mov r9, r12
mov rdx, rbp
mov rcx, r15
call fcn.140002880
test al, al
je 0x1400086c9
mov ebx, dword [rdi + 0x28]
add rbx, rsi
xor edi, edi
mov qword [rsp + 0x20], rdi
mov r9, r12
mov r8, rbp
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.140005b50
test al, al
je 0x1400086c9
mov dword [rsp + 0x30], edi
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x80]
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140008e30
test al, al
je 0x1400086c9
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140008941
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbp
jmp 0x1400086e7
call fcn.140014dfc
int3