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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [r9 + 0x20]
mov r12, rdx
mov r15, qword [rcx]
xor edx, edx
mov rsi, qword [rcx + 0x10]
mov r13, r9
mov r11, rcx
mov qword [rsp + 0x38], r15
mov edi, edx
mov r9, qword [r12 + 0x20]
lea ebp, [rdx + 1]
mov word [rsp + 0xa8], dx
mov ebx, edx
mov qword [rsp + 0x40], rsi
mov r10d, edx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], edx
cmp dword [r12 + 0x14], edx
jle 0x1402e48a0
mov ecx, 0xffbf
and cx, word [r9 + 0x12]
mov word [r9 + 0x12], cx
mov edx, dword [r13 + 0x44]
cmp dword [r9 + 0x1c], edx
jne 0x1402e488c
test qword [r9 + 0x28], r8
jne 0x1402e488c
movzx eax, word [r9 + 0x14]
test eax, 0xfffff7ff
je 0x1402e488c
test cl, cl
js 0x1402e488c
test byte [r13 + 0x3c], 0x58
je 0x1402e4881
mov rax, qword [r9]
test byte [rax + 4], 3
je 0x1402e488c
cmp dword [rax + 0x34], edx
jne 0x1402e488c
add ebx, ebp
or cx, 0x40
mov word [r9 + 0x12], cx
add r10d, ebp
add r9, 0x38
cmp r10d, dword [r12 + 0x14]
jl 0x1402e483d
mov dword [rsp + 0x20], ebx
xor edx, edx
mov dword [rsp + 0x2c], edx
mov ecx, edx
mov r8d, 2
test rsi, rsi
je 0x1402e49d1
movsxd rbp, dword [rsi]
mov r14d, edx
mov r12, rbp
test ebp, ebp
jle 0x1402e49a2
mov rdi, qword [rsp + 0x30]
add rsi, 0x18
xor ebp, ebp
mov r15, rdx
lea eax, [rbp + 1]
mov rbx, qword [rsi - 0x10]
xor r8d, r8d
mov rcx, rbx
mov edx, eax
call fcn.1402f2a18
test eax, eax
jne 0x1402e496a
test byte [rsi], 2
jne 0x1402e4982
cmp byte [rbx], 0xa7
jne 0x1402e4903
mov eax, dword [r13 + 0x44]
cmp dword [rbx + 0x2c], eax
jmp 0x1402e4968
cmp byte [rbx], 0x71
jne 0x1402e4982
mov rcx, qword [rbx + 0x10]
cmp byte [rcx], 0xa7
jne 0x1402e4982
mov eax, dword [r13 + 0x44]
cmp dword [rcx + 0x2c], eax
jne 0x1402e4982
movzx eax, word [rcx + 0x30]
mov word [rbx + 0x30], ax
cmp word [rcx + 0x30], bp
jl 0x1402e496a
movsx rax, word [rcx + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rcx, [rax + rcx*8]
call fcn.14033686c
mov rcx, qword [rbx + 8]
lea rdx, [0x1404d5c74]
test rax, rax
cmovne rdx, rax
test rcx, rcx
jne 0x1402e495c
neg rdx
sbb eax, eax
jmp 0x1402e4966
test rdx, rdx
je 0x1402e4982
call fcn.14035d854
test eax, eax
jne 0x1402e4982
mov eax, 1
add rsi, 0x20
add r14d, eax
add r15, rax
cmp r15, r12
jl 0x1402e48d7
mov ecx, dword [rsp + 0x2c]
mov edi, ebp
mov r15, qword [rsp + 0x38]
mov ebp, r12d
mov r11, qword [rsp + 0x90]
mov r8d, 2
mov ebx, dword [rsp + 0x20]
mov r12, qword [rsp + 0x98]
cmp r14d, ebp
jne 0x1402e49d1
movzx eax, word [r11 + 0x44]
mov ecx, ebp
test al, al
jns 0x1402e49c7
mov edi, eax
shr edi, 9
and edi, 1
add edi, r8d
jmp 0x1402e49d1
test al, 0x40
mov eax, 1
cmovne edi, eax
movsxd rbp, ecx
mov rcx, qword [r15]
movsxd rsi, ebx
imul rdx, rsi, 0x1c
mov qword [rsp + 0x90], rbp
add rdx, 0x88
lea rdx, [rdx + rbp*8]
call fcn.140339184
xor r13d, r13d
mov rbx, rax
test rax, rax
jne 0x1402e4a17
lea rdx, str.out_of_memory
mov rcx, r15
call fcn.14033b284
xor eax, eax
jmp 0x1402e4bca
lea r8, [rax + 0x80]
mov qword [rbx + 0x60], r12
lea r8, [r8 + rsi*8]
mov qword [rbx + 0x68], r15
mov qword [rbx + 8], r8
lea rax, [rsi + rsi*2]
lea r14, [r8 + rax*4]
mov dword [rbx + 0x70], edi
mov qword [rbx + 0x18], r14
lea rax, [r14 + rbp*8]
mov qword [rbx + 0x20], rax
mov r10d, r13d
mov dword [rbx + 0x74], r13d
mov r11d, r13d
mov ecx, 1
mov r9, qword [r12 + 0x20]
mov qword [rsp + 0x98], r14
cmp dword [r12 + 0x14], r13d
jle 0x1402e4b65
mov r14d, dword [rsp + 0xa8]
lea edi, [rcx + 0xf]
add r8, 4
lea ebp, [rcx + 1]
test byte [r9 + 0x12], 0x40
je 0x1402e4b3b
mov eax, dword [r9 + 0x20]
mov dword [r8 - 4], eax
mov eax, 0x3fff
mov dword [r8 + 4], r11d
movzx edx, word [r9 + 0x14]
and dx, ax
cmp dx, cx
jne 0x1402e4b02
cmp word [r9 + 0x12], r13w
jl 0x1402e4aca
mov ecx, r10d
mov edx, 1
shl edx, cl
mov eax, r13d
cmp r10d, 0x1f
mov ecx, 1
cmovle eax, edx
or dword [rbx + 0x74], eax
movzx edx, bp
mov byte [r8], dl
test dl, 0x3c
je 0x1402e4b34
mov rcx, qword [r9]
mov rcx, qword [rcx + 0x18]
call fcn.14033f58c
mov ecx, 1
cmp eax, ecx
jle 0x1402e4b34
cmp r10d, edi
jge 0x1402e4af7
movzx r14d, r14w
bts r14d, r10d
cmp dx, di
jne 0x1402e4b2a
mov byte [r8], 8
jmp 0x1402e4b34
cmp dx, 0x40
jne 0x1402e4b0e
mov al, byte [r9 + 0x17]
jmp 0x1402e4b25
mov eax, 0x180
test ax, dx
je 0x1402e4acd
mov eax, 0x100
cmp dx, ax
setne al
add al, 0x47
mov byte [r8], al
jmp 0x1402e4b34
cmp dx, 4
jne 0x1402e4b34
mov byte [r8], 0x20
add r10d, ecx
add r8, 0xc
add r11d, ecx
add r9, 0x38
cmp r11d, dword [r12 + 0x14]
jl 0x1402e4a7e
mov rbp, qword [rsp + 0x90]
mov dword [rsp + 0xa8], r14d
mov r14, qword [rsp + 0x98]
mov dword [rbx], r10d
mov esi, r13d
test rbp, rbp
jle 0x1402e4bb2
mov rdi, qword [rsp + 0x40]
add rdi, 0x18
mov r15, qword [rdi - 0x10]
mov edx, ecx
mov rcx, r15
xor r8d, r8d
call fcn.1402f2a18
mov ecx, 1
test eax, eax
jne 0x1402e4ba9
movsx eax, word [r15 + 0x30]
add esi, ecx
mov dword [r14], eax
mov al, byte [rdi]
and al, cl
mov byte [r14 + 4], al
add r14, 8
add rdi, 0x20
sub rbp, rcx
jne 0x1402e4b79
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0xa8]
mov dword [rbx + 0x10], esi
mov word [rax], cx
mov rax, rbx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret