Function at 0x180050900
Capabilities:
Parse pe header

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x3e8], rbx
mov rax, qword [0x1800ec278]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x70], rcx
xor ecx, ecx
mov qword [rbp - 0x78], rcx
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov word [rbp - 0x30], cx
mov qword [rbp - 0x2e], rax
mov qword [rbp - 0x26], rax
mov qword [rbp - 0x1e], rax
mov qword [rbp - 0x16], rax
mov qword [rbp - 0xe], rax
mov qword [rbp - 6], rax
mov qword [rbp + 2], rax
mov dword [rbp + 0xa], eax
mov word [rbp + 0xe], ax
mov dword [rsp + 0x44], ecx
mov word [rbp + 0xb0], cx
mov qword [rbp + 0xb2], rax
mov qword [rbp + 0xba], rax
mov word [rbp + 0xc2], ax
mov word [rbp + 0x1b0], cx
xor edx, edx
mov r8d, 0xee
lea rcx, [rbp + 0x1b2]
call fcn.180079d60
xor eax, eax
mov word [rbp + 0xd0], ax
xor edx, edx
mov r8d, 0xde
lea rcx, [rbp + 0xd2]
call fcn.180079d60
xor eax, eax
mov dword [rbp - 0x58], eax
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x3c], rax
mov dword [rbp - 0x34], eax
test rsi, rsi
je 0x18005125f
lea r9d, [rax + 0x18]
lea r8, [rbp - 0x78]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
test eax, eax
je 0x18005125f
mov rdi, qword [rbp - 0x78]
mov qword [rsp + 0x78], rdi
xor eax, eax
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x40]
lea r8, [rbp - 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18005125f
mov eax, 0x5a4d
cmp word [rbp - 0x30], ax
jne 0x18005125f
movsxd rdx, dword [rbp + 0xc]
add rdx, rdi
xor eax, eax
mov qword [rsp + 0x20], rax
lea r9d, [rax + 4]
lea r8, [rsp + 0x44]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18005125f
cmp dword [rsp + 0x44], 0x4550
jne 0x18005125f
movsxd rax, dword [rbp + 0xc]
lea rdx, [rdi + 4]
add rdx, rax
xor eax, eax
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x14]
lea r8, [rbp + 0xb0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18005125f
mov r9d, 0xf0
movzx eax, word [rbp + 0xc0]
cmp ax, r9w
je 0x180050b0e
mov r9d, 0xe0
cmp ax, r9w
jne 0x18005125f
movsxd rax, dword [rbp + 0xc]
lea rdx, [rdi + 0x18]
add rdx, rax
xor eax, eax
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0xd0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18005125f
mov eax, 0x10b
cmp word [rbp + 0xd0], ax
jne 0x18005125f
jmp 0x180050b61
movsxd rax, dword [rbp + 0xc]
lea rdx, [rdi + 0x18]
add rdx, rax
xor eax, eax
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x1b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18005125f
mov eax, 0x20b
cmp word [rbp + 0x1b0], ax
jne 0x18005125f
cmp dword [rbp + 0x21c], 1
jb 0x180050b61
mov eax, dword [rbp + 0x220]
mov ecx, dword [rbp + 0x224]
jmp 0x180050b7a
cmp dword [rbp + 0x12c], 1
jb 0x18005125f
mov eax, dword [rbp + 0x130]
mov ecx, dword [rbp + 0x134]
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x40], eax
mov edx, eax
add rdx, rdi
xor eax, eax
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x28]
lea r8, [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18005125f
mov eax, dword [rbp - 0x3c]
add rax, rdi
mov qword [rsp + 0x48], rax
mov eax, dword [rbp - 0x38]
add rax, rdi
mov qword [rbp - 0x80], rax
mov eax, dword [rbp - 0x34]
add rax, rdi
mov qword [rsp + 0x68], rax
mov ecx, dword [rbp - 0x44]
mov eax, 4
mul rcx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.180074ad0
mov qword [rsp + 0x58], rax
mov ecx, dword [rbp - 0x40]
mov eax, 4
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.180074ad0
mov rdi, rax
mov qword [rsp + 0x38], rax
mov ecx, dword [rbp - 0x40]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180074ad0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x180051240
test rdi, rdi
je 0x180051236
test rax, rax
je 0x180051236
mov r9d, dword [rbp - 0x44]
shl r9, 2
xor eax, eax
mov qword [rsp + 0x20], rax
mov r8, rcx
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180051236
mov r9d, dword [rbp - 0x40]
shl r9, 2
xor eax, eax
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, qword [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180051236
mov r9d, dword [rbp - 0x40]
add r9, r9
xor eax, eax
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180051236
xor r8d, r8d
mov ecx, r8d
mov dword [rsp + 0x48], ecx
cmp dword [rbp - 0x40], ecx
jbe 0x180051236
lea r9d, [r8 + 1]
nop dword [rax + rax]
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r8
mov qword [rbp + 0x28], 0xf
mov qword [rbp + 0x20], r8
mov byte [rbp + 0x10], 0
mov ebx, r8d
mov qword [rbp + 0x20], r8
lea rax, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rax, qword [rbp + 0x10]
mov byte [rax], 0
mov rdi, r8
mov eax, ecx
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x68], rax
jmp 0x180050d33
xor r8d, r8d
mov edx, dword [rax]
add rdx, rdi
add rdx, qword [rsp + 0x78]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180051210
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rdx, qword [rbp + 0x10]
lea rax, [rbp + 0x10]
cmovae rax, qword [rbp + 0x10]
add rdx, qword [rbp + 0x20]
jne 0x180050d7d
xor eax, eax
mov edx, eax
jmp 0x180050d80
sub rdx, rax
movzx r9d, byte [rsp + 0x30]
mov r8d, 1
lea rcx, [rbp + 0x10]
call fcn.180027150
cmp byte [rsp + 0x30], 0
mov r9d, 1
cmove ebx, r9d
inc rdi
test ebx, ebx
mov rax, qword [rsp + 0x68]
je 0x180050d30
cmp byte [rsi], 0
jne 0x180050dbc
xor eax, eax
mov r9d, eax
jmp 0x180050dca
or r9, 0xffffffffffffffff
inc r9
cmp byte [rsi + r9], 0
jne 0x180050dc0
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 0x10]
call fcn.18001e1c0
cmp rax, 0xffffffffffffffff
jne 0x180050e1e
cmp qword [rbp + 0x28], 0x10
jb 0x180050def
mov rcx, qword [rbp + 0x10]
call fcn.18007588c
mov qword [rbp + 0x28], 0xf
xor r8d, r8d
mov qword [rbp + 0x20], r8
mov byte [rbp + 0x10], r8b
mov ecx, dword [rsp + 0x48]
inc ecx
mov dword [rsp + 0x48], ecx
cmp ecx, dword [rbp - 0x40]
lea r9d, [r8 + 1]
jb 0x180050ce0
jmp 0x180051231
mov edx, dword [rsp + 0x48]
mov rdi, qword [rsp + 0x60]
movzx eax, word [rdi + rdx*2]
mov r9, qword [rsp + 0x58]
mov ecx, dword [r9 + rax*4]
mov eax, dword [rsp + 0x40]
cmp ecx, eax
jb 0x1800511c7
add eax, dword [rsp + 0x50]
cmp ecx, eax
ja 0x1800511c7
xor ecx, ecx
mov ebx, ecx
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x48], 0xf
mov qword [rbp + 0x40], rcx
mov byte [rbp + 0x30], cl
mov qword [rbp + 0x40], rcx
lea rax, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rax, qword [rbp + 0x30]
mov byte [rax], cl
mov edi, ecx
lea rsi, [r9 + rdx*4]
lea eax, [rcx + 1]
jmp 0x180050e92
xor ecx, ecx
mov edx, dword [rsi]
add rdx, rdi
add rdx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18005118c
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rdx, qword [rbp + 0x30]
lea rax, [rbp + 0x30]
cmovae rax, qword [rbp + 0x30]
add rdx, qword [rbp + 0x40]
jne 0x180050edf
xor eax, eax
mov edx, eax
jmp 0x180050ee2
sub rdx, rax
movzx r9d, byte [rsp + 0x30]
mov r8d, 1
lea rcx, [rbp + 0x30]
call fcn.180027150
cmp byte [rsp + 0x30], 0
mov eax, 1
cmove ebx, eax
inc rdi
test ebx, ebx
je 0x180050e90
mov rsi, qword [rbp + 0x40]
test rsi, rsi
je 0x18005118c
cmp rsi, rax
jb 0x18005118c
lea rdi, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rdi, qword [rbp + 0x30]
nop
test rsi, rsi
je 0x18005118c
mov r8, rsi
mov edx, 0x2e
mov rcx, rdi
call fcn.1800756d4
mov rbx, rax
test rax, rax
je 0x18005118c
cmp byte [rax], 0x2e
je 0x180050f69
sub rdi, rax
dec rdi
add rsi, rdi
lea rdi, [rax + 1]
jmp 0x180050f30
lea rax, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rax, qword [rbp + 0x30]
sub rbx, rax
cmp rbx, 0xffffffffffffffff
je 0x18005118c
xor esi, esi
mov qword [rbp + 0x60], rsi
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x68], 0xf
mov qword [rbp + 0x60], rsi
mov byte [rbp + 0x50], sil
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x88], 0xf
mov qword [rbp + 0x80], rsi
mov byte [rbp + 0x70], sil
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x30]
call fcn.18001de30
mov rdi, rax
lea rax, [rbp + 0x50]
cmp rax, rdi
je 0x180051011
cmp qword [rbp + 0x68], 0x10
jb 0x180050ff4
mov rcx, qword [rbp + 0x50]
call fcn.18007588c
mov qword [rbp + 0x68], 0xf
mov qword [rbp + 0x60], rsi
mov byte [rbp + 0x50], 0
mov rdx, rdi
lea rcx, [rbp + 0x50]
call fcn.180005bc0
nop
cmp qword [rbp + 0xa8], 0x10
jb 0x180051027
mov rcx, qword [rbp + 0x90]
call fcn.18007588c
mov qword [rbp + 0xa8], 0xf
mov qword [rbp + 0xa0], rsi
mov byte [rbp + 0x90], 0
lea r8, [rbx + 1]
or r9, 0xffffffffffffffff
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x30]
call fcn.18001de30
mov rbx, rax
lea rax, [rbp + 0x70]
cmp rax, rbx
je 0x18005109a
cmp qword [rbp + 0x88], 0x10
jb 0x180051077
mov rcx, qword [rbp + 0x70]
call fcn.18007588c
mov qword [rbp + 0x88], 0xf
mov qword [rbp + 0x80], rsi
mov byte [rbp + 0x70], 0
mov rdx, rbx
lea rcx, [rbp + 0x70]
call fcn.180005bc0
nop
cmp qword [rbp + 0xa8], 0x10
jb 0x1800510b0
mov rcx, qword [rbp + 0x90]
call fcn.18007588c
mov qword [rbp + 0xa8], 0xf
mov qword [rbp + 0xa0], rsi
mov byte [rbp + 0x90], 0
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rdx, qword [rbp + 0x50]
mov rcx, qword [rsp + 0x70]
call fcn.1800506e0
lea r8, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae r8, qword [rbp + 0x70]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.180050900
mov rbx, rax
mov rcx, qword [rsp + 0x58]
call fcn.180075858
mov rcx, qword [rsp + 0x38]
call fcn.180075858
mov rcx, qword [rsp + 0x60]
call fcn.180075858
nop
cmp qword [rbp + 0x88], 0x10
jb 0x180051134
mov rcx, qword [rbp + 0x70]
call fcn.18007588c
mov qword [rbp + 0x88], 0xf
mov qword [rbp + 0x80], rsi
mov byte [rbp + 0x70], 0
cmp qword [rbp + 0x68], 0x10
jb 0x18005115a
mov rcx, qword [rbp + 0x50]
call fcn.18007588c
mov qword [rbp + 0x68], 0xf
mov qword [rbp + 0x60], rsi
mov byte [rbp + 0x50], 0
cmp qword [rbp + 0x48], 0x10
jb 0x18005117a
mov rcx, qword [rbp + 0x30]
call fcn.18007588c
mov qword [rbp + 0x48], 0xf
mov qword [rbp + 0x40], rsi
mov byte [rbp + 0x30], 0
jmp 0x1800511eb
cmp qword [rbp + 0x48], 0x10
jb 0x18005119c
mov rcx, qword [rbp + 0x30]
call fcn.18007588c
mov qword [rbp + 0x48], 0xf
xor ebx, ebx
mov qword [rbp + 0x40], rbx
mov byte [rbp + 0x30], bl
cmp qword [rbp + 0x28], 0x10
jb 0x1800511bd
mov rcx, qword [rbp + 0x10]
call fcn.18007588c
mov qword [rbp + 0x20], rbx
mov byte [rbp + 0x10], 0
jmp 0x180051229
mov rbx, rcx
add rbx, qword [rsp + 0x78]
mov rcx, r9
call fcn.180075858
mov rcx, qword [rsp + 0x38]
call fcn.180075858
mov rcx, rdi
call fcn.180075858
xor esi, esi
cmp qword [rbp + 0x28], 0x10
jb 0x1800511fb
mov rcx, qword [rbp + 0x10]
call fcn.18007588c
mov qword [rbp + 0x28], 0xf
mov qword [rbp + 0x20], rsi
mov byte [rbp + 0x10], 0
mov rax, rbx
jmp 0x180051261
cmp qword [rbp + 0x28], 0x10
jb 0x180051220
mov rcx, qword [rbp + 0x10]
call fcn.18007588c
xor eax, eax
mov qword [rbp + 0x20], rax
mov byte [rbp + 0x10], al
mov qword [rbp + 0x28], 0xf
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
call fcn.180075858
test rdi, rdi
je 0x18005124d
mov rcx, rdi
call fcn.180075858
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x18005125f
mov rcx, rax
call fcn.180075858
xor eax, eax
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.180074e80
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x3b0
pop rdi
pop rsi
pop rbp
ret