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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, 0xfffffffa
mov r12d, dword [rsp + 0x90]
mov r13d, dword [rsp + 0x98]
mov ebp, edx
mov rdx, qword [rsp + 0xa0]
mov rsi, rcx
mov edi, r9d
test rdx, rdx
je 0x5e73c3
cmp byte [rdx], 0x31
jne 0x5e73c3
cmp dword [rsp + 0xa8], 0x58
jne 0x5e73c3
test rcx, rcx
je 0x5e7430
mov rax, qword [rcx + 0x30]
mov qword [rcx + 0x20], 0
test rax, rax
je 0x5e7450
cmp qword [rsi + 0x38], 0
je 0x5e7440
cmp ebp, 0xffffffff
mov edx, 6
cmove ebp, edx
test edi, edi
js 0x5e7410
cmp edi, 0xf
mov r15d, 1
jg 0x5e73d4
lea edx, [r12 - 1]
cmp edx, 8
ja 0x5e7430
cmp r8d, 8
jne 0x5e7430
lea edx, [rdi - 8]
cmp edx, 7
ja 0x5e7430
cmp ebp, 9
ja 0x5e7430
cmp r13d, 4
ja 0x5e7430
cmp edi, 8
mov r14d, edi
je 0x5e7420
mov rcx, qword [rsi + 0x40]
mov r8d, 0x1720
mov edx, 1
call rax
test rax, rax
mov rbx, rax
je 0x5e7494
mov qword [rsi + 0x28], rax
mov dword [rax + 0x48], r14d
mov r14d, 1
mov qword [rax], rsi
mov dword [rax + 0x2c], r15d
mov ecx, edi
mov qword [rax + 0x30], 0
mov eax, r14d
mov edx, 0xaaaaaaab
shl eax, cl
lea ecx, [r12 + 7]
mov r8d, 2
mov edi, eax
mov dword [rbx + 0x44], eax
lea eax, [rax - 1]
mov dword [rbx + 0x78], ecx
mov dword [rbx + 0x4c], eax
mov eax, r14d
shl eax, cl
mov ecx, eax
mov dword [rbx + 0x74], eax
lea eax, [r12 + 9]
sub ecx, 1
mul edx
mov dword [rbx + 0x7c], ecx
mov rcx, qword [rsi + 0x40]
shr edx, 1
mov dword [rbx + 0x80], edx
mov edx, edi
call qword [rsi + 0x30]
mov edx, dword [rbx + 0x44]
mov rcx, qword [rsi + 0x40]
mov r8d, 2
mov qword [rbx + 0x50], rax
call qword [rsi + 0x30]
mov edx, dword [rbx + 0x74]
mov rcx, qword [rsi + 0x40]
mov r8d, 2
mov qword [rbx + 0x60], rax
call qword [rsi + 0x30]
lea ecx, [r12 + 6]
mov edx, r14d
mov qword [rbx + 0x68], rax
mov dword [rbx + 0x1718], 0
mov r8d, 4
shl edx, cl
mov rcx, qword [rsi + 0x40]
mov dword [rbx + 0x16f0], edx
call qword [rsi + 0x30]
mov edx, dword [rbx + 0x16f0]
cmp qword [rbx + 0x50], 0
mov qword [rbx + 0x10], rax
lea ecx, [rdx*4]
mov dword [rbx + 0x18], ecx
je 0x5e7470
cmp qword [rbx + 0x60], 0
je 0x5e7470
cmp qword [rbx + 0x68], 0
je 0x5e7470
test rax, rax
je 0x5e7470
mov ecx, edx
lea rdx, [rdx + rdx*2]
mov dword [rbx + 0xac], ebp
shr ecx, 1
mov dword [rbx + 0xb0], r13d
mov byte [rbx + 0x3c], 8
lea rcx, [rax + rcx*2]
add rax, rdx
mov qword [rbx + 0x16e8], rax
mov qword [rbx + 0x16f8], rcx
mov rbx, qword [rsi + 0x28]
test rbx, rbx
je 0x5e7430
cmp qword [rsi + 0x30], 0
je 0x5e7430
cmp qword [rsi + 0x38], 0
je 0x5e7430
mov rax, qword [rbx + 0x10]
mov dword [rsi + 0x1c], 0
mov dword [rsi + 0xc], 0
mov qword [rsi + 0x20], 0
mov dword [rsi + 0x48], 2
mov dword [rbx + 0x28], 0
mov qword [rbx + 0x20], rax
mov eax, dword [rbx + 0x2c]
test eax, eax
js 0x5e73e0
jne 0x5e73e5
mov dword [rbx + 8], 0x71
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.005e7b30
mov dword [rsi + 0x4c], eax
mov rcx, rbx
mov dword [rbx + 0x40], 0
call fcn.005eb1f0
mov rbx, qword [rsi + 0x28]
xor r10d, r10d
xor edx, edx
mov eax, dword [rbx + 0x44]
mov r8d, dword [rbx + 0x74]
mov rcx, qword [rbx + 0x68]
add eax, eax
sub r8d, 1
mov dword [rbx + 0x58], eax
mov word [rcx + r8*2], r10w
add r8, r8
call sub.msvcrt.dll_memset
movsxd rax, dword [rbx + 0xac]
lea rdx, [0x007b1aa0]
mov dword [rbx + 0x94], 0
mov dword [rbx + 0x84], 0
mov dword [rbx + 0x9c], 0
mov dword [rbx + 0x170c], 0
mov dword [rbx + 0xa0], 2
mov dword [rbx + 0x88], 2
mov dword [rbx + 0x90], 0
shl rax, 4
mov dword [rbx + 0x70], 0
add rax, rdx
movzx edx, word [rax + 2]
mov dword [rbx + 0xa8], edx
movzx edx, word [rax]
mov dword [rbx + 0xb4], edx
movzx edx, word [rax + 4]
movzx eax, word [rax + 6]
mov dword [rbx + 0xb8], edx
mov dword [rbx + 0xa4], eax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
sub edi, 0x10
mov r15b, 2
jmp 0x5e7100
neg eax
mov dword [rbx + 0x2c], eax
cmp eax, 2
mov dword [rbx + 8], 0x2a
jne 0x5e72f0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.005e81f0
jmp 0x5e72fc
neg edi
xor r15d, r15d
jmp 0x5e7100
mov r14d, 9
mov edi, 9
jmp 0x5e7143
mov eax, 0xfffffffe
jmp 0x5e73c3
lea rcx, [0x005e0c80]
mov qword [rsi + 0x38], rcx
jmp 0x5e70de
lea rax, [0x005e0c70]
mov qword [rcx + 0x40], 0
mov qword [rcx + 0x30], rax
jmp 0x5e70d3
mov rax, qword [str.insufficient_memory]
mov dword [rbx + 8], 0x29a
mov rcx, rsi
mov qword [rsi + 0x20], rax
call fcn.005e6f70
mov eax, 0xfffffffc
jmp 0x5e73c3
mov eax, 0xfffffffc
jmp 0x5e73c3