Function at 0x180012c9c
Capabilities:
Access peb ldr_data
Parse pe header
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
xor r14d, r14d
mov r12d, r14d
mov qword [rsp + 0x78], r14
mov r13d, r14d
mov r15d, r14d
mov edi, r14d
call fcn.1800130fc
mov rbx, rax
lea esi, [r14 + 1]
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x180012d01
movsxd rdx, dword [rbx + 0x3c]
lea rcx, [rdx - 0x40]
cmp rcx, 0x3bf
ja 0x180012d01
lea rbp, [rdx + rbx]
cmp dword [rbp], 0x4550
mov qword [rsp + 0x88], rbp
je 0x180012d06
sub rbx, rsi
jmp 0x180012cd1
mov rax, qword gs:[0x60]
mov qword [rsp + 0x80], rbx
mov rcx, qword [rax + 0x18]
mov r11, qword [rcx + 0x20]
test r11, r11
je 0x180012ee7
mov ebx, 3
mov r9d, 0xffff
mov rdx, qword [r11 + 0x50]
mov rax, r14
movzx r8d, word [r11 + 0x48]
movzx ecx, byte [rdx]
ror eax, 0xd
cmp cl, 0x61
jb 0x180012d4e
add rax, 0xffffffffffffffe0
add rax, rcx
add rdx, rsi
add r8w, r9w
jne 0x180012d3f
cmp eax, 0x6a4abc5b
jne 0x180012e22
mov rdx, qword [r11 + 0x20]
movzx esi, bx
mov ebp, 0xffff
movsxd rax, dword [rdx + 0x3c]
mov r14d, dword [rax + rdx + 0x88]
mov r10d, dword [r14 + rdx + 0x20]
mov edi, dword [r14 + rdx + 0x24]
add r10, rdx
add rdi, rdx
xor r9d, r9d
mov r8d, dword [r10]
mov ecx, r9d
add r8, rdx
mov al, byte [r8]
inc r8
ror ecx, 0xd
movsx eax, al
add ecx, eax
mov al, byte [r8]
test al, al
jne 0x180012d9c
cmp ecx, 0xec0e4e8e
je 0x180012dc6
cmp ecx, 0x7c0dfcaa
je 0x180012dc6
cmp ecx, 0x91afca54
jne 0x180012e09
mov r9d, dword [r14 + rdx + 0x1c]
movzx r8d, word [rdi]
add r9, rdx
cmp ecx, 0xec0e4e8e
jne 0x180012de3
mov r12d, dword [r9 + r8*4]
add r12, rdx
jmp 0x180012e03
cmp ecx, 0x7c0dfcaa
jne 0x180012df4
mov r13d, dword [r9 + r8*4]
add r13, rdx
jmp 0x180012e03
cmp ecx, 0x91afca54
jne 0x180012e03
mov r15d, dword [r9 + r8*4]
add r15, rdx
add si, bp
xor r9d, r9d
add r10, 4
add rdi, 2
test si, si
jne 0x180012d90
xor r14d, r14d
jmp 0x180012eaa
cmp eax, 0x3cfa685d
jne 0x180012eb7
mov r8, qword [r11 + 0x20]
mov ebp, 0xffff
movsxd rax, dword [r8 + 0x3c]
mov edi, dword [rax + r8 + 0x88]
add rdi, r8
mov r9d, dword [rdi + 0x20]
mov r10d, dword [rdi + 0x24]
add r9, r8
add r10, r8
mov edx, dword [r9]
mov ecx, r14d
add rdx, r8
mov r8d, 1
mov al, byte [rdx]
add rdx, r8
ror ecx, 0xd
movsx eax, al
add ecx, eax
mov al, byte [rdx]
test al, al
jne 0x180012e64
mov r8, qword [r11 + 0x20]
cmp ecx, 0x534c0ab8
jne 0x180012e9d
mov ecx, dword [rdi + 0x1c]
add si, bp
movzx edx, word [r10]
add rcx, r8
mov r14d, dword [rcx + rdx*4]
add r14, r8
mov qword [rsp + 0x78], r14
xor r14d, r14d
add r9, 4
add r10, 2
test si, si
jne 0x180012e53
mov rdi, qword [rsp + 0x78]
mov r9d, ebp
mov esi, 1
test r12, r12
je 0x180012ecb
test r13, r13
je 0x180012ecb
test r15, r15
je 0x180012ecb
test rdi, rdi
jne 0x180012ed7
mov r11, qword [r11]
test r11, r11
jne 0x180012d33
mov rbx, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov edx, dword [rbp + 0x50]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call r15
mov edx, dword [rbp + 0x54]
mov rdi, rax
mov rax, rbx
test rdx, rdx
je 0x180012f1b
mov r8, rdi
sub r8, rbx
mov cl, byte [rax]
mov byte [r8 + rax], cl
add rax, rsi
sub rdx, rsi
jne 0x180012f0d
movzx r9d, word [rbp + 6]
movzx eax, word [rbp + 0x14]
test r9, r9
je 0x180012f61
lea rcx, [rbp + 0x2c]
add rcx, rax
mov edx, dword [rcx - 8]
sub r9, rsi
mov r8d, dword [rcx]
add rdx, rdi
mov r10d, dword [rcx - 4]
add r8, rbx
test r10, r10
je 0x180012f58
mov al, byte [r8]
add r8, rsi
mov byte [rdx], al
add rdx, rsi
sub r10, rsi
jne 0x180012f48
add rcx, 0x28
test r9, r9
jne 0x180012f30
mov ebx, dword [rbp + 0x90]
add rbx, rdi
jmp 0x180012fef
mov ecx, dword [rbx + 0xc]
add rcx, rdi
call r12
mov esi, dword [rbx]
mov r15, rax
mov r14d, dword [rbx + 0x10]
add rsi, rdi
add r14, rdi
xor ecx, ecx
jmp 0x180012fe3
test rsi, rsi
je 0x180012fbc
cmp qword [rsi], rcx
jge 0x180012fbc
movsxd rax, dword [r15 + 0x3c]
movzx edx, word [rsi]
mov ecx, dword [rax + r15 + 0x88]
mov eax, dword [rcx + r15 + 0x10]
mov ecx, dword [rcx + r15 + 0x1c]
sub rdx, rax
add rcx, r15
mov eax, dword [rcx + rdx*4]
add rax, r15
jmp 0x180012fcc
mov rdx, qword [r14]
mov rcx, r15
add rdx, 2
add rdx, rdi
call r13
mov qword [r14], rax
xor ecx, ecx
lea rax, [rsi + 8]
add r14, 8
test rsi, rsi
cmove rax, rsi
mov rsi, rax
cmp qword [r14], rcx
jne 0x180012f8b
add rbx, 0x14
xor r14d, r14d
cmp dword [rbx + 0xc], r14d
jne 0x180012f6f
mov r9, rdi
sub r9, qword [rbp + 0x30]
cmp dword [rbp + 0xb4], r14d
je 0x1800130c4
mov r8d, dword [rbp + 0xb0]
add r8, rdi
mov eax, dword [r8 + 4]
test eax, eax
je 0x1800130c4
mov ebp, 2
mov esi, 0xfff
lea r12d, [rbp + 1]
mov edx, dword [r8]
lea rbx, [r8 + 8]
mov r11d, eax
add rdx, rdi
sub r11, 8
shr r11, 1
je 0x1800130a9
mov r15d, 1
movzx r10d, word [rbx]
sub r11, r15
movzx eax, r10w
movzx ecx, r10w
shr ax, 0xc
cmp ax, 0xa
jne 0x18001306f
and r10, rsi
add qword [r10 + rdx], r9
jmp 0x1800130a1
cmp ax, r12w
jne 0x18001307e
and rcx, rsi
add dword [rcx + rdx], r9d
jmp 0x1800130a1
cmp ax, r15w
jne 0x180013094
and rcx, rsi
mov rax, r9
shr rax, 0x10
add word [rcx + rdx], ax
jmp 0x1800130a1
cmp ax, bp
jne 0x1800130a1
and rcx, rsi
add word [rcx + rdx], r9w
add rbx, rbp
test r11, r11
jne 0x18001304d
mov eax, dword [r8 + 4]
add r8, rax
mov eax, dword [r8 + 4]
test eax, eax
jne 0x180013031
mov rbp, qword [rsp + 0x88]
mov ebx, dword [rbp + 0x28]
xor r8d, r8d
xor edx, edx
or rcx, 0xffffffffffffffff
add rbx, rdi
call qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, rdi
call rbx
mov rax, rbx
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret