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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, 0xfffffffa
test r8, r8
mov rsi, rcx
mov edi, edx
je 0x5e777d
cmp byte [r8], 0x31
jne 0x5e777d
cmp r9d, 0x58
jne 0x5e777d
test rcx, rcx
je 0x5e77f0
mov rax, qword [rcx + 0x30]
mov qword [rcx + 0x20], 0
test rax, rax
je 0x5e77d0
cmp qword [rsi + 0x38], 0
je 0x5e77c0
cmp edi, 0xffffffff
je 0x5e77b0
cmp edi, 9
ja 0x5e77f0
mov rcx, qword [rsi + 0x40]
mov r8d, 0x1720
mov edx, 1
call rax
test rax, rax
mov rbx, rax
je 0x5e7824
mov qword [rsi + 0x28], rax
mov rcx, qword [rsi + 0x40]
mov r8d, 2
mov edx, 0x8000
mov qword [rax], rsi
mov dword [rax + 0x2c], 1
mov qword [rax + 0x30], 0
mov dword [rax + 0x48], 0xf
mov dword [rax + 0x44], 0x8000
mov dword [rax + 0x4c], 0x7fff
mov dword [rax + 0x78], 0xf
mov dword [rax + 0x74], 0x8000
mov dword [rax + 0x7c], 0x7fff
mov dword [rax + 0x80], 5
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]
mov rcx, qword [rsi + 0x40]
mov edx, 0x4000
mov qword [rbx + 0x68], rax
mov dword [rbx + 0x1718], 0
mov dword [rbx + 0x16f0], 0x4000
mov r8d, 4
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 0x5e7800
cmp qword [rbx + 0x60], 0
je 0x5e7800
cmp qword [rbx + 0x68], 0
je 0x5e7800
test rax, rax
je 0x5e7800
mov ecx, edx
lea rdx, [rdx + rdx*2]
mov dword [rbx + 0xac], edi
shr ecx, 1
mov dword [rbx + 0xb0], 0
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 0x5e77f0
cmp qword [rsi + 0x30], 0
je 0x5e77f0
cmp qword [rsi + 0x38], 0
je 0x5e77f0
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 0x5e7785
jne 0x5e778a
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 r11d, r11d
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], r11w
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, 0x20
pop rbx
pop rsi
pop rdi
ret
neg eax
mov dword [rbx + 0x2c], eax
cmp eax, 2
mov dword [rbx + 8], 0x2a
jne 0x5e76aa
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.005e81f0
jmp 0x5e76b6
mov edi, 6
jmp 0x5e7509
lea rdx, [0x005e0c80]
mov qword [rsi + 0x38], rdx
jmp 0x5e74f7
lea rax, [0x005e0c70]
mov qword [rcx + 0x40], 0
mov qword [rcx + 0x30], rax
jmp 0x5e74ec
mov eax, 0xfffffffe
jmp 0x5e777d
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 0x5e777d
mov eax, 0xfffffffc
jmp 0x5e777d