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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
xor ebx, ebx
mov r10, r9
mov r14, rcx
mov rcx, qword [rdx + 0x20]
mov r9, r8
mov r13, rdx
movzx r12d, bx
mov r11d, ebx
lea esi, [rbx + 1]
cmp dword [rdx + 0x14], ebx
jle 0x1400b4d14
mov r8d, dword [r10 + 0x44]
add rcx, 0x28
mov edx, dword [rdx + 0x14]
cmp dword [rcx - 0xc], r8d
jne 0x1400b4d0b
test qword [rcx], r9
jne 0x1400b4d0b
movzx eax, word [rcx - 0x14]
test eax, 0xfffff7ff
je 0x1400b4d0b
add r11d, esi
add rcx, 0x38
sub rdx, rsi
jne 0x1400b4cf2
mov r15, qword [rsp + 0x90]
mov ebp, ebx
test r15, r15
je 0x1400b4d64
mov r8d, ebx
cmp dword [r15], ebx
jle 0x1400b4d5d
movsxd rdi, dword [r15]
lea rcx, [r15 + 0x18]
mov rdx, rbx
mov r9, qword [rcx - 0x10]
cmp byte [r9], 0xa4
jne 0x1400b4d5d
mov eax, dword [r10 + 0x44]
cmp dword [r9 + 0x2c], eax
jne 0x1400b4d5d
test byte [rcx], 2
jne 0x1400b4d5d
add r8d, esi
add rdx, rsi
add rcx, 0x20
cmp rdx, rdi
jl 0x1400b4d35
cmp r8d, dword [r15]
cmove ebp, dword [r15]
mov rcx, qword [r14]
movsxd rdi, r11d
movsxd rsi, ebp
lea rdx, [rdi + rdi*4]
shl rdx, 2
add rdx, 0x70
lea rdx, [rdx + rsi*8]
call fcn.1400de50c
mov qword [rsp + 0x70], rax
mov r9, rax
test rax, rax
jne 0x1400b4da5
lea rdx, str.out_of_memory
mov rcx, r14
call fcn.1400e02c4
xor eax, eax
jmp 0x1400b4f3a
lea r8, [rax + 0x70]
mov dword [r9 + 0x10], ebp
lea rax, [rdi + rdi*2]
mov qword [r9 + 8], r8
lea rdi, [r8 + rax*4]
mov qword [r9 + 0x60], r13
lea rax, [rdi + rsi*8]
mov qword [r9 + 0x18], rdi
mov qword [r9 + 0x20], rax
mov r11d, ebx
mov qword [r9 + 0x68], r14
mov esi, ebx
mov r10, qword [r13 + 0x20]
mov qword [rsp + 0x78], rdi
cmp dword [r13 + 0x14], ebx
jle 0x1400b4ef2
mov r14, qword [rsp + 0x88]
mov edi, 2
mov r15, qword [rsp + 0x80]
add r8, 4
lea r9d, [rdi - 1]
mov eax, dword [r14 + 0x44]
cmp dword [r10 + 0x1c], eax
jne 0x1400b4ecf
test qword [r10 + 0x28], r15
jne 0x1400b4ecf
movzx eax, word [r10 + 0x14]
test eax, 0xfffff7ff
je 0x1400b4ecf
test byte [r14 + 0x3c], 8
je 0x1400b4e3e
mov rax, qword [r10]
test byte [rax + 4], r9b
je 0x1400b4ecf
mov eax, dword [r10 + 0x20]
mov dword [r8 - 4], eax
mov eax, 0x1fff
mov dword [r8 + 4], esi
movzx edx, word [r10 + 0x14]
and dx, ax
cmp dx, r9w
jne 0x1400b4e96
movzx edx, di
mov byte [r8], dl
test dl, 0x3c
je 0x1400b4ec8
mov rcx, qword [r10]
mov rcx, qword [rcx + 0x18]
call fcn.1400e423c
cmp eax, r9d
jle 0x1400b4ec8
mov ecx, 0x10
cmp r11d, ecx
jge 0x1400b4e8b
movzx r12d, r12w
bts r12d, r11d
cmp dx, cx
jne 0x1400b4ebe
mov byte [r8], 8
jmp 0x1400b4ec8
cmp dx, 0x40
jne 0x1400b4ea2
mov al, byte [r10 + 0x17]
jmp 0x1400b4eb9
mov eax, 0x180
test ax, dx
je 0x1400b4e60
mov eax, 0x100
cmp dx, ax
setne al
add al, 0x47
mov byte [r8], al
jmp 0x1400b4ec8
cmp dx, 4
jne 0x1400b4ec8
mov byte [r8], 0x20
add r11d, r9d
add r8, 0xc
add esi, r9d
add r10, 0x38
cmp esi, dword [r13 + 0x14]
jl 0x1400b4e02
mov r9, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x90]
mov dword [r9], r11d
movsxd r8, ebp
test ebp, ebp
jle 0x1400b4f2b
lea rdx, [r15 + 0x18]
mov r9d, 1
mov rax, qword [rdx - 0x10]
movsx ecx, word [rax + 0x30]
mov dword [rdi + rbx*8], ecx
mov al, byte [rdx]
lea rdx, [rdx + 0x20]
and al, r9b
mov byte [rdi + rbx*8 + 4], al
add rbx, r9
cmp rbx, r8
jl 0x1400b4f06
mov r9, qword [rsp + 0x70]
mov rax, qword [rsp + 0x98]
mov word [rax], r12w
mov rax, r9
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret