Function at 0x180015460
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x380
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x180047520]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov r14, r9
mov rdi, r8
cmp ecx, 0x8b0
jne 0x18001557e
mov byte [rsp + 0x70], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x71]
call fcn.18002add0
mov r8d, r14d
lea rdx, [0x18007d550]
lea rcx, [rsp + 0x70]
call fcn.180007960
xor esi, esi
mov word [rsp + 0x170], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x172]
call fcn.18002add0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x70]
call fcn.180007080
mov r15, rax
test rax, rax
je 0x180015adc
mov rcx, rax
call fcn.180006f90
mov r14, rax
or rbx, 0xffffffffffffffff
mov rcx, rbx
inc rcx
cmp byte [rax + rcx + 1], sil
jne 0x180015522
sub edi, ecx
nop
inc rbx
cmp byte [rax + rbx + 1], sil
jne 0x180015530
movsxd rbx, ebx
lea rcx, [rax + 1]
call fcn.1800141b0
test rax, rax
je 0x180015560
lea r8d, [rdi - 2]
lea rdx, [r14 + 2]
add rdx, rbx
mov rcx, rax
call fcn.180013b60
mov esi, eax
mov byte [r14], sil
mov rcx, r14
call fcn.180007010
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180015ade
cmp ecx, 0x8b5
jne 0x18001562b
mov byte [rsp + 0x70], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x71]
call fcn.18002add0
mov r8d, r14d
lea rdx, [0x18007d550]
lea rcx, [rsp + 0x70]
call fcn.180007960
xor esi, esi
mov word [rsp + 0x170], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x172]
call fcn.18002add0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x70]
call fcn.180007080
mov rsi, rax
test rax, rax
je 0x180015adc
mov rcx, rax
call fcn.180006f90
mov rbx, rax
lea r8d, [rdi - 9]
lea rdx, [rax + 9]
mov rcx, qword [rax + 1]
call fcn.180013b60
mov byte [rbx], al
mov rcx, rbx
call fcn.180007010
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180015ade
cmp ecx, 0x8b1
jne 0x1800156f7
mov byte [rsp + 0x70], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x71]
call fcn.18002add0
mov r8d, r14d
lea rdx, [0x18007d650]
lea rcx, [rsp + 0x70]
call fcn.180007960
xor esi, esi
mov word [rsp + 0x170], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x172]
call fcn.18002add0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x70]
call fcn.180007080
mov r15, rax
test rax, rax
je 0x180015adc
mov rcx, rax
call fcn.180006f90
mov r14, rax
or rbx, 0xffffffffffffffff
mov rcx, rbx
inc rcx
cmp byte [rax + rcx + 1], sil
jne 0x1800156b1
sub edi, ecx
nop dword [rax]
inc rbx
cmp byte [rax + rbx + 1], sil
jne 0x1800156c0
movsxd rbx, ebx
lea rcx, [rax + 1]
call fcn.1800141b0
test rax, rax
je 0x180015560
lea r8d, [rdi - 2]
lea rdx, [r14 + 2]
add rdx, rbx
mov rcx, rax
call fcn.180013ba0
jmp 0x18001555e
cmp ecx, 0x8b6
jne 0x180015799
mov byte [rsp + 0x70], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x71]
call fcn.18002add0
mov r8d, r14d
lea rdx, [0x18007d650]
lea rcx, [rsp + 0x70]
call fcn.180007960
xor esi, esi
mov word [rsp + 0x170], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x172]
call fcn.18002add0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x70]
call fcn.180007080
mov rsi, rax
test rax, rax
je 0x180015adc
mov rcx, rax
call fcn.180006f90
mov rbx, rax
lea r8d, [rdi - 9]
lea rdx, [rax + 9]
mov rcx, qword [rax + 1]
call fcn.180013ba0
mov byte [rbx], al
mov rcx, rbx
call fcn.180007010
mov rcx, rsi
jmp 0x18001556e
cmp ecx, 0x8b2
jne 0x18001595b
mov rax, r8
shr rax, 0x10
movzx eax, ax
mov dword [rsp + 0x40], eax
movzx r13d, r8w
btr r13d, 0xc
mov dword [rsp + 0x44], r13d
mov byte [rsp + 0x70], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x71]
call fcn.18002add0
mov r8d, r14d
lea rdx, [0x18007d750]
lea rcx, [rsp + 0x70]
call fcn.180007960
xor esi, esi
mov word [rsp + 0x170], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x172]
call fcn.18002add0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x70]
call fcn.180007080
mov r12, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x180015adc
mov rcx, rax
call fcn.180006f90
mov rdi, rax
mov qword [rsp + 0x58], rax
or rbx, 0xffffffffffffffff
mov rcx, rbx
inc rcx
cmp byte [rax + rcx], sil
jne 0x180015845
lea r15, [rax + 1]
add r15, rcx
mov rax, rbx
nop dword [rax + rax]
lea rax, [rax + 1]
cmp byte [r15 + rax], sil
jne 0x180015860
lea rsi, [rax + r15]
cmp r13d, 4
jne 0x18001587a
lea r13, [rsi + 3]
jmp 0x180015891
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rsi + rax + 1], 0
jne 0x180015880
lea r13, [rsi + 2]
add r13, rax
mov r8d, r14d
lea rdx, [0x18007d450]
lea rcx, [rsp + 0x70]
call fcn.180007960
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xf4248
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbx, rax
test rax, rax
jne 0x1800158e7
mov rcx, rdi
call fcn.180007010
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180015adc
mov rcx, rax
call fcn.180006f90
mov r14, rax
mov qword [rsp + 0x48], rax
mov qword [rax], rbx
lea rbx, [rax + 8]
mov rcx, r15
call fcn.180026820
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x40]
mov r8, r13
lea rdx, [rsi + 1]
mov rcx, rdi
call fcn.180014c90
nop
jmp 0x18001593d
mov rcx, rdi
call fcn.180007010
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.180007010
jmp 0x180015574
cmp ecx, 0x8b4
jne 0x18001597e
shl rdi, 0x20
or rdi, r9
je 0x180015adc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180015ade
cmp ecx, 0x8b3
jne 0x180015a40
mov byte [rsp + 0x70], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x71]
call fcn.18002add0
mov r8d, r14d
lea rdx, [0x18007d850]
lea rcx, [rsp + 0x70]
call fcn.180007960
xor esi, esi
mov word [rsp + 0x170], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x172]
call fcn.18002add0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x70]
call fcn.180007080
mov rdi, rax
test rax, rax
je 0x180015adc
mov rcx, rax
call fcn.180006f90
mov rbx, rax
lea rcx, [rax + 0xc]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbx], rax
mov dword [rbx + 8], esi
test rax, rax
je 0x180015a30
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180015a30
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x180015a30
mov eax, dword [rcx + rax + 0x50]
mov dword [rbx + 8], eax
mov rcx, rbx
call fcn.180007010
mov rcx, rdi
jmp 0x18001556e
cmp ecx, 0x8b7
jne 0x180015adc
mov byte [rsp + 0x70], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x71]
call fcn.18002add0
mov r8d, r14d
lea rdx, [0x18007d950]
lea rcx, [rsp + 0x70]
call fcn.180007960
xor esi, esi
mov word [rsp + 0x170], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x172]
call fcn.18002add0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x70]
call fcn.180007080
mov rdi, rax
test rax, rax
je 0x180015adc
mov rcx, rax
call fcn.180006f90
mov rbx, rax
lea rdx, [rax + 0x10]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
mov rcx, rbx
call fcn.180007010
mov rcx, rdi
jmp 0x18001556e
xor eax, eax
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.180024b60
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret