Function at 0x100154f64
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov dword [r11 + 0x20], r9d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor eax, eax
xor r10d, r10d
mov rdi, r8
mov r8d, dword [rdx]
mov dword [r11 - 0x58], r10d
mov dword [r11 - 0x48], r10d
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
mov eax, r8d
mov esi, r9d
mov rbp, rdx
and eax, 0xfff00000
mov rbx, rcx
cmp eax, 0x50000000
je 0x100155165
cmp eax, 0x70800000
je 0x100155165
mov r11, qword [rsp + 0xa0]
mov r9d, r10d
lea edx, [r10 + 1]
cmp esi, r10d
jbe 0x1001550e7
mov rcx, qword [rcx + 0x20]
mov r13, rdi
mov rbx, r11
sub r13, r11
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x10], r13
mov eax, dword [r13 + rbx]
mov dword [rsp + 0x88], r10d
mov rcx, qword [rcx + rax*8]
mov qword [rsp + 8], rcx
cmp dword [rsp + 0xb8], r10d
je 0x10015502c
mov eax, dword [rbx]
cmp eax, 4
jae 0x1001550d2
jmp 0x10015502f
mov eax, r9d
cdqe
mov r12d, r10d
mov qword [rsp], rax
cmp dword [rbp + 0x10], r10d
jbe 0x1001551db
mov r8, qword [rbp + 0x18]
mov esi, dword [rdi + rax*4]
mov r11, qword [rsp + 8]
mov r13d, dword [rsp + 0xb0]
lea rcx, [rsp + 0x20]
mov r14, r10
sub r8, rcx
lea r15, [rsp + r14 + 0x20]
cmp esi, dword [r8 + r15]
jne 0x100155072
cmp dword [r11 + 0x3c], r13d
je 0x10015508a
mov rax, qword [rbp + 0x18]
mov ecx, dword [r14 + rax]
mov rax, qword [rsp]
cmp dword [r11 + 0x38], ecx
jne 0x10015509d
cmp dword [r11 + 0x3c], r13d
jne 0x10015509d
mov ecx, edx
mov dword [rsp + 0x88], edx
mov dword [rsp + rax*4 + 0x30], r12d
mov dword [r15], edx
jmp 0x1001550a4
mov ecx, dword [rsp + 0x88]
add r12d, edx
add r14, 4
cmp r12d, dword [rbp + 0x10]
jb 0x100155061
mov r8d, dword [rbp]
mov r11, qword [rsp + 0xa0]
mov esi, dword [rsp + 0x98]
mov r13, qword [rsp + 0x10]
cmp ecx, r10d
je 0x1001551db
mov rcx, qword [rsp + 0x18]
add r9d, edx
add rbx, 4
cmp r9d, esi
jb 0x100154fff
cmp dword [rsp + 0xb8], r10d
jne 0x100155116
and r8d, 0xfffff
mov ecx, r10d
jbe 0x100155116
lea rax, [rsp + 0x20]
cmp dword [rax], r10d
je 0x1001551db
add ecx, edx
add rax, 4
cmp ecx, r8d
jb 0x100155102
mov r8, qword [rsp + 0xa8]
mov r9d, 4
sub r11, r8
cmp dword [r11 + r8], 4
jae 0x10015513b
mov eax, dword [r11 + r8]
mov ecx, dword [rsp + rax*4 + 0x30]
mov dword [r8], ecx
jmp 0x100155142
mov dword [r8], 0xff
add r8, 4
sub r9, rdx
jne 0x100155127
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r9, qword [rsp + 0xa8]
and r8d, 0xfffff
mov ecx, r10d
mov edx, 1
cmp ecx, r8d
mov eax, 0xff
cmovb eax, ecx
add ecx, edx
mov dword [r9], eax
add r9, 4
cmp ecx, 4
jb 0x10015517c
cmp esi, r10d
jbe 0x10015514b
mov rax, qword [rbp + 0x18]
mov r11, qword [rbx + 0x20]
mov r8d, dword [rsp + 0xb0]
mov r9d, dword [rax]
mov eax, dword [rdi]
mov rcx, qword [r11 + rax*8]
cmp eax, r9d
jne 0x1001551be
cmp dword [rcx + 0x3c], r8d
je 0x1001551ca
cmp dword [rcx + 0x38], r9d
jne 0x1001551db
cmp dword [rcx + 0x3c], r8d
jne 0x1001551db
add r10d, edx
add rdi, 4
cmp r10d, esi
jb 0x1001551ad
jmp 0x10015514b
mov eax, edx
jmp 0x10015514d