Function at 0x180027990
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x360
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov r14, r9
mov rdi, r8
cmp ecx, 0x8b0
jne 0x180027a9e
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x61]
call fcn.180008040
mov r8d, r14d
lea rdx, [0x18007d570]
lea rcx, [rsp + 0x60]
call fcn.180001a10
xor esi, esi
mov word [rsp + 0x160], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x162]
call fcn.180008040
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.180013940
mov r15, rax
test rax, rax
je 0x180028002
mov rcx, rax
call fcn.180013ad0
mov r14, rax
or rbx, 0xffffffffffffffff
mov rcx, rbx
inc rcx
cmp byte [rax + rcx + 1], sil
jne 0x180027a44
sub edi, ecx
inc rbx
cmp byte [rax + rbx + 1], sil
jne 0x180027a50
movsxd rbx, ebx
lea rcx, [rax + 1]
call fcn.180026f30
test rax, rax
je 0x180027a80
lea r8d, [rdi - 2]
lea rdx, [r14 + 2]
add rdx, rbx
mov rcx, rax
call fcn.1800276b0
mov esi, eax
mov byte [r14], sil
mov rcx, r14
call fcn.180013a60
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180028004
cmp ecx, 0x8b5
jne 0x180027b4b
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x61]
call fcn.180008040
mov r8d, r14d
lea rdx, [0x18007d570]
lea rcx, [rsp + 0x60]
call fcn.180001a10
xor esi, esi
mov word [rsp + 0x160], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x162]
call fcn.180008040
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.180013940
mov rsi, rax
test rax, rax
je 0x180028002
mov rcx, rax
call fcn.180013ad0
mov rbx, rax
lea r8d, [rdi - 9]
lea rdx, [rax + 9]
mov rcx, qword [rax + 1]
call fcn.1800276b0
mov byte [rbx], al
mov rcx, rbx
call fcn.180013a60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180028004
cmp ecx, 0x8b1
jne 0x180027c1e
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x61]
call fcn.180008040
mov r8d, r14d
lea rdx, [0x18007d670]
lea rcx, [rsp + 0x60]
call fcn.180001a10
xor esi, esi
mov word [rsp + 0x160], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x162]
call fcn.180008040
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.180013940
mov r14, rax
test rax, rax
je 0x180028002
mov rcx, rax
call fcn.180013ad0
mov rsi, rax
or rbx, 0xffffffffffffffff
mov rcx, rbx
inc rcx
cmp byte [rax + rcx + 1], 0
jne 0x180027bd1
sub edi, ecx
nop dword [rax]
inc rbx
cmp byte [rax + rbx + 1], 0
jne 0x180027be0
movsxd rax, ebx
lea rdx, [rsi + 2]
add rdx, rax
lea r8d, [rdi - 2]
lea rcx, [rsi + 1]
call fcn.180026e90
mov byte [rsi], al
mov rcx, rsi
call fcn.180013a60
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180028004
cmp ecx, 0x8b6
jne 0x180027cb3
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x61]
call fcn.180008040
mov r8d, r14d
lea rdx, [0x18007d670]
lea rcx, [rsp + 0x60]
call fcn.180001a10
xor esi, esi
mov word [rsp + 0x160], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x162]
call fcn.180008040
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.180013940
mov rsi, rax
test rax, rax
je 0x180028002
mov rcx, rax
call fcn.180013ad0
mov rbx, rax
lea r8d, [rdi - 9]
lea rdx, [rax + 9]
mov rcx, qword [rax + 1]
call fcn.180027620
jmp 0x180027b2e
cmp ecx, 0x8b2
jne 0x180027e81
mov rax, r8
shr rax, 0x10
movzx eax, ax
mov dword [rsp + 0x398], eax
movzx r13d, r8w
btr r13d, 0xc
mov dword [rsp + 0x390], r13d
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x61]
call fcn.180008040
mov r8d, r14d
lea rdx, [0x18007d770]
lea rcx, [rsp + 0x60]
call fcn.180001a10
xor esi, esi
mov word [rsp + 0x160], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x162]
call fcn.180008040
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.180013940
mov r12, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x180028002
mov rcx, rax
call fcn.180013ad0
mov rdi, rax
mov qword [rsp + 0x48], rax
or rbx, 0xffffffffffffffff
mov rcx, rbx
inc rcx
cmp byte [rax + rcx], sil
jne 0x180027d65
lea r15, [rax + 1]
add r15, rcx
mov rax, rbx
nop dword [rax + rax]
lea rax, [rax + 1]
cmp byte [r15 + rax], sil
jne 0x180027d80
lea rsi, [rax + r15]
cmp r13d, 4
jne 0x180027d9a
lea r13, [rsi + 3]
jmp 0x180027db1
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rsi + rax + 1], 0
jne 0x180027da0
lea r13, [rsi + 2]
add r13, rax
mov r8d, r14d
lea rdx, [0x18007d470]
lea rcx, [rsp + 0x60]
call fcn.180001a10
lea rax, [rsp + 0x60]
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 0x180027e07
mov rcx, rdi
call fcn.180013a60
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180028002
mov rcx, rax
call fcn.180013ad0
mov r14, rax
mov qword [rsp + 0x40], rax
mov qword [rax], rbx
lea rbx, [rax + 8]
mov rcx, r15
call fcn.180003b84
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x390]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x398]
mov r8, r13
lea rdx, [rsi + 1]
mov rcx, rdi
call fcn.180025a50
nop
jmp 0x180027e63
mov rcx, rdi
call fcn.180013a60
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.180013a60
jmp 0x180027b41
cmp ecx, 0x8b4
jne 0x180027ea4
shl rdi, 0x20
or rdi, r9
je 0x180028002
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180028004
cmp ecx, 0x8b3
jne 0x180027f66
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x61]
call fcn.180008040
mov r8d, r14d
lea rdx, [0x18007d870]
lea rcx, [rsp + 0x60]
call fcn.180001a10
xor esi, esi
mov word [rsp + 0x160], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x162]
call fcn.180008040
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.180013940
mov rdi, rax
test rax, rax
je 0x180028002
mov rcx, rax
call fcn.180013ad0
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 0x180027f56
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180027f56
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x180027f56
mov eax, dword [rcx + rax + 0x50]
mov dword [rbx + 8], eax
mov rcx, rbx
call fcn.180013a60
mov rcx, rdi
jmp 0x180027b3b
cmp ecx, 0x8b7
jne 0x180028002
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x61]
call fcn.180008040
mov r8d, r14d
lea rdx, [0x18007d970]
lea rcx, [rsp + 0x60]
call fcn.180001a10
xor esi, esi
mov word [rsp + 0x160], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x162]
call fcn.180008040
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x60]
call fcn.180013940
mov rdi, rax
test rax, rax
je 0x180028002
mov rcx, rax
call fcn.180013ad0
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.180013a60
mov rcx, rdi
jmp 0x180027b3b
xor eax, eax
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret