Function at 0x180001040
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, 0x38
xor ebp, ebp
mov r13d, ebp
mov qword [rsp + 0x90], rbp
mov r15d, ebp
mov qword [rsp + 0x20], rbp
mov r14d, ebp
mov r12d, ebp
call fcn.180001038
mov rdi, rax
lea esi, [rbp + 1]
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x18000109f
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax - 0x40]
cmp rcx, 0x3bf
ja 0x18000109f
cmp dword [rax + rdi], 0x4550
je 0x1800010a4
sub rdi, rsi
jmp 0x18000107b
mov rax, qword gs:[0x60]
mov qword [rsp + 0x98], rdi
mov rcx, qword [rax + 0x18]
mov r11, qword [rcx + 0x20]
mov qword [rsp + 0x88], r11
test r11, r11
je 0x1800012a5
mov r9d, 0xffff
mov rdx, qword [r11 + 0x50]
mov rcx, rbp
movzx r8d, word [r11 + 0x48]
ror ecx, 0xd
cmp byte [rdx], 0x61
jb 0x1800010f2
movzx eax, byte [rdx]
sub eax, 0x20
cdqe
jmp 0x1800010f5
movzx eax, byte [rdx]
add rcx, rax
add rdx, rsi
add r8w, r9w
jne 0x1800010e0
cmp ecx, 0x6a4abc5b
jne 0x1800011d7
mov rdx, qword [r11 + 0x20]
mov edi, 0xffff
movsxd rax, dword [rdx + 0x3c]
mov ebp, dword [rax + rdx + 0x88]
mov eax, 3
movzx esi, ax
mov r10d, dword [rbp + rdx + 0x20]
lea r11d, [rax - 1]
mov ebx, dword [rbp + rdx + 0x24]
add r10, rdx
add rbx, 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 0x18000114b
cmp ecx, 0xec0e4e8e
je 0x180001175
cmp ecx, 0x7c0dfcaa
je 0x180001175
cmp ecx, 0x91afca54
jne 0x1800011b8
mov eax, dword [rbp + rdx + 0x1c]
movzx r8d, word [rbx]
lea r9, [rdx + rax]
cmp ecx, 0xec0e4e8e
jne 0x180001192
mov r13d, dword [r9 + r8*4]
add r13, rdx
jmp 0x1800011b2
cmp ecx, 0x7c0dfcaa
jne 0x1800011a3
mov r15d, dword [r9 + r8*4]
add r15, rdx
jmp 0x1800011b2
cmp ecx, 0x91afca54
jne 0x1800011b2
mov r14d, dword [r9 + r8*4]
add r14, rdx
add si, di
xor r9d, r9d
add r10, 4
add rbx, r11
test si, si
jne 0x18000113f
mov qword [rsp + 0x90], r15
xor ebp, ebp
jmp 0x180001265
cmp ecx, 0x3cfa685d
jne 0x180001275
mov r8, qword [r11 + 0x20]
mov r15d, 1
mov edi, 0xffff
movsxd rax, dword [r8 + 0x3c]
lea r11d, [r15 + 1]
mov ebx, dword [rax + r8 + 0x88]
mov r9d, dword [rbx + r8 + 0x20]
mov r10d, dword [rbx + r8 + 0x24]
add r9, r8
add r10, r8
mov ecx, dword [r9]
mov edx, ebp
add rcx, r8
mov al, byte [rcx]
add rcx, r15
ror edx, 0xd
movsx eax, al
add edx, eax
mov al, byte [rcx]
test al, al
jne 0x18000121c
cmp edx, 0x534c0ab8
jne 0x18000124c
mov eax, dword [rbx + r8 + 0x1c]
movzx edx, word [r10]
lea rcx, [r8 + rax]
mov r12d, dword [rcx + rdx*4]
add r12, r8
add si, di
add r9, 4
add r10, r11
test si, si
jne 0x180001212
mov r15, qword [rsp + 0x90]
mov qword [rsp + 0x20], r12
mov r11, qword [rsp + 0x88]
mov r9d, edi
mov esi, 1
test r13, r13
je 0x180001289
test r15, r15
je 0x180001289
test r14, r14
je 0x180001289
test r12, r12
jne 0x18000129d
mov r11, qword [r11]
mov qword [rsp + 0x88], r11
test r11, r11
jne 0x1800010d4
mov rdi, qword [rsp + 0x98]
movsxd rbx, dword [rdi + 0x3c]
xor ecx, ecx
add rbx, rdi
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
mov edx, dword [rbx + 0x50]
call r14
mov edx, dword [rbx + 0x54]
mov rsi, rax
mov rax, rdi
mov r11d, 1
test rdx, rdx
je 0x1800012e6
mov r8, rsi
sub r8, rdi
mov cl, byte [rax]
mov byte [r8 + rax], cl
add rax, r11
sub rdx, r11
jne 0x1800012d8
movzx r9d, word [rbx + 6]
movzx eax, word [rbx + 0x14]
test r9, r9
je 0x18000132c
lea rcx, [rbx + 0x2c]
add rcx, rax
mov edx, dword [rcx - 8]
sub r9, r11
mov r8d, dword [rcx]
add rdx, rsi
mov r10d, dword [rcx - 4]
add r8, rdi
test r10, r10
je 0x180001323
mov al, byte [r8]
add r8, r11
mov byte [rdx], al
add rdx, r11
sub r10, r11
jne 0x180001313
add rcx, 0x28
test r9, r9
jne 0x1800012fb
mov edi, dword [rbx + 0x90]
add rdi, rsi
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x1800013d5
mov rbp, qword [rsp + 0x90]
mov ecx, eax
add rcx, rsi
call r13
mov r14d, dword [rdi]
mov r12, rax
mov r15d, dword [rdi + 0x10]
add r14, rsi
add r15, rsi
xor r8d, r8d
jmp 0x1800013bf
test r14, r14
je 0x180001398
cmp qword [r14], r8
jge 0x180001398
movsxd rax, dword [r12 + 0x3c]
movzx edx, word [r14]
mov ecx, dword [rax + r12 + 0x88]
mov eax, dword [rcx + r12 + 0x10]
mov ecx, dword [rcx + r12 + 0x1c]
sub rdx, rax
add rcx, r12
mov eax, dword [rcx + rdx*4]
add rax, r12
jmp 0x1800013aa
mov rdx, qword [r15]
mov rcx, r12
add rdx, 2
add rdx, rsi
call rbp
xor r8d, r8d
mov qword [r15], rax
lea rax, [r14 + 8]
add r15, 8
test r14, r14
cmove rax, r14
mov r14, rax
cmp qword [r15], r8
jne 0x180001365
mov eax, dword [rdi + 0x20]
add rdi, 0x14
test eax, eax
jne 0x180001348
xor ebp, ebp
mov r9, rsi
sub r9, qword [rbx + 0x30]
cmp dword [rbx + 0xb4], ebp
je 0x180001491
mov edx, dword [rbx + 0xb0]
add rdx, rsi
mov eax, dword [rdx + 4]
test eax, eax
je 0x180001491
mov r15d, 2
mov edi, 0xfff
lea r12d, [r15 + 1]
mov r8d, dword [rdx]
lea r11, [rdx + 8]
mov r10d, eax
add r8, rsi
sub r10, 8
shr r10, 1
je 0x180001480
mov r14d, 1
movzx ecx, word [r11]
sub r10, r14
movzx eax, cx
shr ax, 0xc
cmp ax, 0xa
jne 0x180001444
and rcx, rdi
add qword [rcx + r8], r9
jmp 0x180001478
cmp ax, r12w
jne 0x180001453
and rcx, rdi
add dword [rcx + r8], r9d
jmp 0x180001478
cmp ax, r14w
jne 0x18000146a
and rcx, rdi
mov rax, r9
shr rax, 0x10
add word [rcx + r8], ax
jmp 0x180001478
cmp ax, r15w
jne 0x180001478
and rcx, rdi
add word [rcx + r8], r9w
add r11, r15
test r10, r10
jne 0x180001427
mov eax, dword [rdx + 4]
add rdx, rax
mov eax, dword [rdx + 4]
test eax, eax
jne 0x18000140b
mov ebx, dword [rbx + 0x28]
xor r8d, r8d
xor edx, edx
or rcx, 0xffffffffffffffff
add rbx, rsi
call qword [rsp + 0x20]
mov r8, qword [rsp + 0x80]
mov edx, 1
mov rcx, rsi
call rbx
mov rax, rbx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret