Function at 0x58b9a0
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, 0x228
mov esi, dword [r9 + 4]
mov r15, rcx
mov rbx, rdx
mov rdi, r8
mov dword [rsp + 0x80], esi
lea r12, [rsp + 0x14f]
lea eax, [rsi - 0x400]
and r12, 0xffffffffffffffc0
cmp eax, 0x7fc00
ja 0x58ba20
mov eax, dword [r9 + 8]
lea edx, [rax - 8]
cmp edx, 0x18
ja 0x58ba20
lea ecx, [rsi - 1]
mov dword [rsp + 0x84], ecx
and ecx, esi
mov dword [rsp + 0x90], ecx
jne 0x58ba20
mov rcx, qword [r9 + 0x18]
mov rbp, qword [r9 + 0x10]
mov qword [rsp + 0x50], rcx
test rbp, rbp
jne 0x58ba70
test rcx, rcx
je 0x58ba70
nop dword [rax + rax]
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
mov rax, qword [rsp + 0x290]
mov qword [rax], 0xffffffffffffffff
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rax + 0x10], 0xffffffffffffffff
mov qword [rax + 0x18], 0xffffffffffffffff
xor eax, eax
add rsp, 0x228
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, dword [rsp + 0x80]
mov qword [rsp + 0x98], rax
shl rax, 7
lea r13, [rax + 0x40]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x100], 0x18000
mov r14, r8
imul r14, rax
lea rsi, [r14 + r13]
add rsi, rax
lea rax, [rsi + 0x18000]
mov qword [rsp + 0x48], rax
cmp qword [r15 + 0x18], rax
jae 0x58bfd0
mov rcx, qword [r15]
test rcx, rcx
je 0x58bacc
call sub.msvcrt.dll_free
pxor xmm0, xmm0
mov qword [r15], 0
lea rcx, [rsi + 0x1803f]
movups xmmword [r15 + 0x10], xmm0
call sub.msvcrt.dll_malloc
test rax, rax
je 0x58cabc
lea rsi, [rax + 0x3f]
movddup xmm0, qword [rsp + 0x48]
mov qword [r15], rax
and rsi, 0xffffffffffffffc0
movups xmmword [r15 + 0x10], xmm0
mov qword [r15 + 8], rsi
je 0x58ba2c
mov rax, qword [rsp + 0x88]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x20
mov rcx, r12
add rax, rsi
add r14, rax
mov qword [rsp + 0x48], rax
add r13, r14
lea rax, [r13 + 0x8000]
mov qword [rsp + 0xe0], r13
add r13, 0x10000
mov qword [rsp + 0xe8], rax
call fcn.0043ef20
mov r8, rdi
mov rdx, rbx
mov rcx, r12
call fcn.0043f130
lea rax, [rsp + 0xc0]
mov rcx, r12
mov rdx, rax
mov qword [rsp + 0xa8], rax
call fcn.0043f1c0
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0xf8], 0
test rbp, rbp
je 0x58bfe0
movsxd rax, dword [rsp + 0x298]
mov rdi, qword [0x006368e0]
shl rax, 7
mov qword [rsp + 0xa0], rax
add rax, qword [rdi]
movzx eax, byte [rax]
test al, al
jne 0x58ba53
mov r9, qword [rsp + 0x50]
mov qword [rsp + 0x28], rsi
mov r8, rbp
mov edx, 0x20
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x30], pe_nt_image_headers64
mov qword [rsp + 0x20], 1
call fcn.0058d270
mov rdi, qword [0x006368e0]
mov rax, qword [rsp + 0xa0]
add rax, qword [rdi]
movzx eax, byte [rax]
test al, al
jne 0x58ba53
movdqu xmm1, xmmword [rsi]
mov edx, 0xaaaaaaab
mov eax, dword [rsp + 0x80]
movups xmmword [rsp + 0xc0], xmm1
movdqu xmm2, xmmword [rsi + 0x10]
mov rbx, qword [rsp + 0xe0]
movups xmmword [rsp + 0xd0], xmm2
mov r15d, dword [rsi]
add eax, 2
mov ecx, dword [rsp + 0x100]
imul rax, rdx
mov dword [rbx + 0x80], r15d
mov edx, dword [rsi + 4]
mov dword [rsp + 0x78], ecx
shr rax, 0x21
mov dword [rbx + 0x84], edx
mov r10d, dword [rsi + 8]
add eax, 1
mov dword [rsp + 0x68], edx
and eax, 0xfffffffe
mov dword [rsp + 0x94], eax
mov eax, ecx
shr eax, 7
mov dword [rbx + 0x88], r10d
mov r8d, dword [rsi + 0xc]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x70], r10d
mov dword [rbx + 0x8c], r8d
mov r13d, dword [rsi + 0x10]
shl r8, 0x20
mov dword [rbx + 0x90], r13d
mov r11d, dword [rsi + 0x14]
mov dword [rbx + 0x94], r11d
mov r9d, dword [rsi + 0x18]
shl r11, 0x20
or r15, r11
mov dword [rbx + 0x98], r9d
mov edx, dword [rsi + 0x1c]
mov dword [rsp + 0x58], r9d
mov dword [rbx + 0x9c], edx
mov ebp, dword [rsi + 0x20]
shl rdx, 0x20
mov dword [rbx + 0xa0], ebp
mov r9d, dword [rsi + 0x24]
mov dword [rbx + 0xa4], r9d
mov r12d, dword [rsi + 0x28]
shl r9, 0x20
or r9, r13
mov dword [rbx + 0xa8], r12d
mov eax, dword [rsi + 0x2c]
mov dword [rsp + 0x60], r12d
mov r11d, dword [rsp + 0x60]
mov dword [rbx + 0xac], eax
mov edi, dword [rsi + 0x30]
shl rax, 0x20
mov dword [rbx + 0xb0], edi
mov ecx, dword [rsi + 0x34]
mov dword [rbx + 0xb4], ecx
mov r12d, dword [rsi + 0x38]
shl rcx, 0x20
or rcx, rbp
mov dword [rbx + 0xb8], r12d
mov r10d, dword [rsi + 0x3c]
or r8, r12
mov qword [rbx + 0x20], rcx
mov ecx, dword [rsp + 0x70]
lea r12, [rbx + 0x100]
mov qword [rbx + 0x10], r9
mov qword [rbx + 0x18], r8
mov r8d, 1
mov dword [rbx + 0xbc], r10d
shl r10, 0x20
or rdx, rcx
or r10, r11
mov qword [rbx], r15
mov qword [rbx + 0x28], rdx
mov rdx, qword [rsp + 0x68]
mov qword [rbx + 8], r10
shl rdx, 0x20
or rdi, rdx
mov edx, dword [rsp + 0x58]
mov qword [rbx + 0x30], rdi
lea rdi, [rbx + 0x80]
or rax, rdx
mov qword [rbx + 0x38], rax
mov ecx, dword [rsi + 0x40]
mov dword [rbx + 0x80], ecx
mov eax, dword [rsi + 0x44]
mov dword [rbx + 0x84], eax
mov eax, dword [rsi + 0x48]
mov dword [rbx + 0x88], eax
mov eax, dword [rsi + 0x4c]
mov dword [rbx + 0x8c], eax
mov eax, dword [rsi + 0x50]
mov dword [rbx + 0x90], eax
mov edx, dword [rsi + 0x54]
mov dword [rbx + 0x94], edx
mov eax, dword [rsi + 0x58]
shl rdx, 0x20
or rcx, rdx
mov dword [rbx + 0x98], eax
mov eax, dword [rsi + 0x5c]
mov dword [rbx + 0x9c], eax
mov eax, dword [rsi + 0x60]
mov dword [rbx + 0xa0], eax
mov eax, dword [rsi + 0x64]
mov dword [rbx + 0xa4], eax
mov eax, dword [rsi + 0x68]
mov dword [rbx + 0xa8], eax
mov eax, dword [rsi + 0x6c]
mov edx, dword [rbx + 0xa8]
mov dword [rbx + 0xac], eax
mov eax, dword [rsi + 0x70]
mov dword [rbx + 0xb0], eax
mov eax, dword [rsi + 0x74]
mov dword [rbx + 0xb4], eax
mov eax, dword [rsi + 0x78]
mov dword [rbx + 0xb8], eax
mov eax, dword [rsi + 0x7c]
mov qword [rbx + 0x40], rcx
mov rcx, rbx
mov dword [rbx + 0xbc], eax
shl rax, 0x20
or rax, rdx
mov edx, dword [rbx + 0x90]
mov qword [rbx + 0x48], rax
mov eax, dword [rbx + 0xa4]
shl rax, 0x20
or rax, rdx
mov edx, dword [rbx + 0xb8]
mov qword [rbx + 0x50], rax
mov eax, dword [rbx + 0x8c]
shl rax, 0x20
or rax, rdx
mov qword [rbx + 0x58], rax
mov eax, dword [rbx + 0xb4]
mov edx, dword [rbx + 0xa0]
shl rax, 0x20
or rax, rdx
mov edx, dword [rbx + 0x88]
mov qword [rbx + 0x60], rax
mov eax, dword [rbx + 0x9c]
shl rax, 0x20
xor r9d, r9d
or rax, rdx
mov edx, dword [rbx + 0xb0]
mov qword [rbx + 0x68], rax
mov eax, dword [rbx + 0x84]
shl rax, 0x20
or rax, rdx
mov edx, dword [rbx + 0x98]
mov qword [rbx + 0x70], rax
mov eax, dword [rbx + 0xac]
shl rax, 0x20
or rax, rdx
mov rdx, rdi
mov qword [rbx + 0x78], rax
call fcn.00589c50
mov rcx, rdi
xor r9d, r9d
mov rdx, r12
mov r8d, 1
call fcn.00589c50
mov ecx, dword [rsp + 0x50]
mov eax, dword [rbx + 0x140]
cmp ecx, 2
jbe 0x58bff8
mov r15d, dword [rsp + 0x78]
sub ecx, 1
mov edi, 2
mov dword [rsp + 0x58], ecx
shr r15d, 8
cmp r15d, edi
ja 0x58bfc6
mov r13d, dword [rsp + 0x58]
sub r13d, edi
cmp r13d, 1
jbe 0x58bfae
lea ebp, [rdi - 1]
mov r10, r12
mov r9d, 1
nop dword [rax]
lea r11, [r10 + 0x80]
and eax, ebp
mov rcx, r10
lea edx, [r9 + rax - 1]
mov r8, r11
shl rdx, 7
add rdx, rbx
call fcn.0058b590
and eax, ebp
add r10, 0x100
mov rcx, r11
lea edx, [rax + r9]
mov r8, r10
shl rdx, 7
add rdx, rbx
call fcn.0058b590
add r9d, 2
cmp r9d, r13d
jb 0x58bf48
lea edx, [r13 - 2]
mov ecx, 0x100
shr edx, 1
add rdx, 1
shl rdx, 8
cmp r13d, 1
cmovbe rdx, rcx
add r12, rdx
lea edx, [rdi + rdi]
cmp dword [rsp + 0x50], edx
jbe 0x58cab0
mov edi, edx
cmp r15d, edi
jbe 0x58bf2a
mov r13d, edi
jmp 0x58bf38
mov rsi, qword [r15 + 8]
jmp 0x58bb11
mov qword [rsp + 0x50], 0
mov rbp, rbx
jmp 0x58bb9e
xor eax, eax
xor r9d, r9d
mov edi, 1
mov r10d, dword [rsp + 0x50]
lea r11, [r12 + 0x80]
mov rcx, r12
mov ebp, 1
mov r8, r11
sub r10d, edi
lea edx, [r10 + rax - 2]
lea rdi, [rsp + 0xe0]
shl rdx, 7
add rdx, rbx
call fcn.0058b590
mov r8, r14
and r9d, eax
mov rcx, r11
lea edx, [r10 + r9 - 1]
shl rdx, 7
add rdx, rbx
mov ebx, 2
call fcn.0058b590
mov rdx, qword [r14 + 8]
mov r9, rdi
mov rax, qword [r14]
mov qword [r14 + 0x88], rdx
mov rdx, qword [r14 + 0x10]
mov qword [r14 + 0x80], rax
mov qword [r14 + 0x90], rdx
mov rdx, qword [r14 + 0x18]
mov qword [r14 + 0x98], rdx
mov rdx, qword [r14 + 0x20]
mov qword [r14 + 0xa0], rdx
mov rdx, qword [r14 + 0x28]
mov qword [r14 + 0xa8], rdx
mov rdx, qword [r14 + 0x30]
mov qword [r14 + 0xb0], rdx
mov rdx, qword [r14 + 0x38]
mov qword [r14 + 0xb8], rdx
mov dword [rsi], eax
mov eax, dword [r14 + 0xb4]
mov dword [rsi + 4], eax
mov rax, qword [r14 + 0xa8]
mov dword [rsi + 8], eax
mov eax, dword [r14 + 0x9c]
mov dword [rsi + 0xc], eax
mov rax, qword [r14 + 0x90]
mov dword [rsi + 0x10], eax
mov eax, dword [r14 + 0x84]
mov dword [rsi + 0x14], eax
mov rax, qword [r14 + 0xb8]
mov dword [rsi + 0x18], eax
mov eax, dword [r14 + 0xac]
mov dword [rsi + 0x1c], eax
mov rax, qword [r14 + 0xa0]
mov dword [rsi + 0x20], eax
mov eax, dword [r14 + 0x94]
mov dword [rsi + 0x24], eax
mov rax, qword [r14 + 0x88]
mov dword [rsi + 0x28], eax
mov eax, dword [r14 + 0xbc]
mov dword [rsi + 0x2c], eax
mov rax, qword [r14 + 0xb0]
mov dword [rsi + 0x30], eax
mov eax, dword [r14 + 0xa4]
mov dword [rsi + 0x34], eax
mov rax, qword [r14 + 0x98]
mov dword [rsi + 0x38], eax
mov eax, dword [r14 + 0x8c]
mov dword [rsi + 0x3c], eax
mov rdx, qword [r14 + 0x48]
mov rax, qword [r14 + 0x40]
mov qword [r14 + 0x88], rdx
mov rdx, qword [r14 + 0x50]
mov qword [r14 + 0x80], rax
mov qword [r14 + 0x90], rdx
mov rdx, qword [r14 + 0x58]
mov qword [r14 + 0x98], rdx
mov rdx, qword [r14 + 0x60]
mov qword [r14 + 0xa0], rdx
mov rdx, qword [r14 + 0x68]
mov qword [r14 + 0xa8], rdx
mov rdx, qword [r14 + 0x70]
mov qword [r14 + 0xb0], rdx
mov rdx, qword [r14 + 0x78]
mov qword [r14 + 0xb8], rdx
mov dword [rsi + 0x40], eax
mov eax, dword [r14 + 0xb4]
mov dword [rsi + 0x44], eax
mov rax, qword [r14 + 0xa8]
mov r15, qword [rsp + 0x98]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x88]
mov dword [rsi + 0x48], eax
mov eax, dword [r14 + 0x9c]
add r12, r13
mov dword [rsi + 0x4c], eax
mov rax, qword [r14 + 0x90]
mov dword [rsi + 0x50], eax
mov eax, dword [r14 + 0x84]
mov dword [rsi + 0x54], eax
mov rax, qword [r14 + 0xb8]
mov dword [rsi + 0x58], eax
mov eax, dword [r14 + 0xac]
mov dword [rsi + 0x5c], eax
mov rax, qword [r14 + 0xa0]
mov dword [rsi + 0x60], eax
mov eax, dword [r14 + 0x94]
mov dword [rsi + 0x64], eax
mov rax, qword [r14 + 0x88]
mov dword [rsi + 0x68], eax
mov eax, dword [r14 + 0xbc]
mov dword [rsi + 0x6c], eax
mov rax, qword [r14 + 0xb0]
mov dword [rsi + 0x70], eax
mov eax, dword [r14 + 0xa4]
mov dword [rsi + 0x74], eax
mov rax, qword [r14 + 0x98]
mov dword [rsi + 0x78], eax
mov eax, dword [r14 + 0x8c]
mov dword [rsi + 0x7c], eax
lea rax, [r15 + r15]
mov qword [rsp + 0x70], rax
mov edx, dword [rsi]
mov dword [r12], edx
mov eax, dword [rsi + 4]
mov dword [r12 + 4], eax
mov eax, dword [rsi + 8]
mov dword [r12 + 8], eax
mov eax, dword [rsi + 0xc]
mov dword [r12 + 0xc], eax
mov eax, dword [rsi + 0x10]
mov dword [r12 + 0x10], eax
mov eax, dword [rsi + 0x14]
mov dword [r12 + 0x14], eax
mov ecx, dword [rsi + 0x18]
shl rax, 0x20
or rax, rdx
mov dword [r12 + 0x18], ecx
mov ecx, dword [rsi + 0x1c]
mov dword [r12 + 0x1c], ecx
mov ecx, dword [rsi + 0x20]
mov dword [r12 + 0x20], ecx
mov ecx, dword [rsi + 0x24]
mov dword [r12 + 0x24], ecx
mov ecx, dword [rsi + 0x28]
mov dword [r12 + 0x28], ecx
mov ecx, dword [rsi + 0x2c]
mov dword [r12 + 0x2c], ecx
mov ecx, dword [rsi + 0x30]
mov dword [r12 + 0x30], ecx
mov ecx, dword [rsi + 0x34]
mov dword [r12 + 0x34], ecx
mov ecx, dword [rsi + 0x38]
mov dword [r12 + 0x38], ecx
mov ecx, dword [rsi + 0x3c]
mov dword [r12 + 0x3c], ecx
mov qword [r13], rax
mov eax, dword [r12 + 0x3c]
mov edx, dword [r12 + 0x28]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 8], rax
mov eax, dword [r12 + 0x24]
mov edx, dword [r12 + 0x10]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 0x10], rax
mov eax, dword [r12 + 0xc]
mov edx, dword [r12 + 0x38]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 0x18], rax
mov eax, dword [r12 + 0x34]
mov edx, dword [r12 + 0x20]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 0x20], rax
mov eax, dword [r12 + 0x1c]
mov edx, dword [r12 + 8]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 0x28], rax
mov eax, dword [r12 + 4]
mov edx, dword [r12 + 0x30]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 0x30], rax
mov eax, dword [r12 + 0x2c]
mov edx, dword [r12 + 0x18]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 0x38], rax
mov edx, dword [rsi + 0x40]
mov dword [r12], edx
mov eax, dword [rsi + 0x44]
mov dword [r12 + 4], eax
mov eax, dword [rsi + 0x48]
mov dword [r12 + 8], eax
mov eax, dword [rsi + 0x4c]
mov dword [r12 + 0xc], eax
mov eax, dword [rsi + 0x50]
mov dword [r12 + 0x10], eax
mov eax, dword [rsi + 0x54]
mov dword [r12 + 0x14], eax
mov ecx, dword [rsi + 0x58]
shl rax, 0x20
or rax, rdx
mov dword [r12 + 0x18], ecx
mov ecx, dword [rsi + 0x5c]
mov dword [r12 + 0x1c], ecx
mov ecx, dword [rsi + 0x60]
mov dword [r12 + 0x20], ecx
mov ecx, dword [rsi + 0x64]
mov dword [r12 + 0x24], ecx
mov ecx, dword [rsi + 0x68]
mov dword [r12 + 0x28], ecx
mov ecx, dword [rsi + 0x6c]
mov dword [r12 + 0x2c], ecx
mov ecx, dword [rsi + 0x70]
mov dword [r12 + 0x30], ecx
mov ecx, dword [rsi + 0x74]
mov dword [r12 + 0x34], ecx
mov ecx, dword [rsi + 0x78]
mov dword [r12 + 0x38], ecx
mov ecx, dword [rsi + 0x7c]
mov dword [r12 + 0x3c], ecx
mov qword [r13 + 0x40], rax
mov eax, dword [r12 + 0x3c]
mov edx, dword [r12 + 0x28]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 0x48], rax
mov eax, dword [r12 + 0x24]
mov edx, dword [r12 + 0x10]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 0x50], rax
mov eax, dword [r12 + 0xc]
mov edx, dword [r12 + 0x38]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 0x58], rax
mov eax, dword [r12 + 0x34]
mov edx, dword [r12 + 0x20]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 0x60], rax
mov eax, dword [r12 + 0x1c]
mov edx, dword [r12 + 8]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 0x68], rax
mov eax, dword [r12 + 4]
mov edx, dword [r12 + 0x30]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 0x70], rax
mov eax, dword [r12 + 0x2c]
mov edx, dword [r12 + 0x18]
shl rax, 0x20
or rax, rdx
mov qword [r13 + 0x78], rax
nop word [rax + rax]
lea ecx, [rbx - 2]
mov edx, ebx
mov r8d, 1
shl rdx, 6
shl rcx, 6
add ebx, 2
add rdx, r13
add rcx, r13
call fcn.00589c50
lea eax, [rbp + 1]
mov rbp, rax
cmp r15, rax
ja 0x58c498
mov r13, qword [rsp + 0x98]
mov rdx, r12
mov rdi, r9
mov rcx, qword [rsp + 0x48]
mov r8, r13
mov rbx, r13
call fcn.00589c50
mov rcx, r12
mov r8, r13
shl rbx, 8
mov r15, qword [rsp + 0x88]
lea rbp, [r12 + r15]
mov rdx, rbp
mov qword [rsp + 0x60], rbp
call fcn.00589c50
mov edx, dword [rsp + 0x80]
lea rax, [r15 - 0x40]
mov dword [rsp + 0x50], 2
mov qword [rsp + 0xb8], rax
mov ecx, dword [rsp + 0x50]
mov qword [rsp + 0xb0], rsi
mov eax, dword [rbp + r15 - 0x40]
mov rsi, r15
mov qword [rsp + 0x58], rbx
shr edx, 1
mov qword [rsp + 0x78], r14
mov dword [rsp + 0x68], edx
cmp dword [rsp + 0x68], ecx
ja 0x58c617
nop
mov r12d, dword [rsp + 0x84]
sub r12d, ecx
cmp r12d, 1
jbe 0x58c5f7
mov ecx, dword [rsp + 0x50]
mov ebx, 1
mov r14, qword [rsp + 0x60]
lea ebp, [rcx - 1]
nop word cs:[rax + rax]
and eax, ebp
mov rcx, r14
mov r9, r13
mov qword [rsp + 0x20], rdi
lea edx, [rbx + rax - 1]
imul rdx, rsi
add rdx, qword [rsp + 0x48]
lea r15, [rsi + r14]
mov r8, r15
call fcn.0058a3d0
add r14, qword [rsp + 0x58]
mov r9, r13
mov rcx, r15
and eax, ebp
mov qword [rsp + 0x20], rdi
lea edx, [rax + rbx]
add ebx, 2
imul rdx, rsi
add rdx, qword [rsp + 0x48]
mov r8, r14
call fcn.0058a3d0
cmp ebx, r12d
jb 0x58c580
lea edx, [r12 - 2]
mov ecx, 1
shr edx, 1
add rdx, 1
cmp r12d, 1
cmovbe rdx, rcx
imul rdx, qword [rsp + 0x58]
add qword [rsp + 0x60], rdx
mov ecx, dword [rsp + 0x50]
lea edx, [rcx + rcx]
cmp dword [rsp + 0x80], edx
jbe 0x58c620
mov dword [rsp + 0x50], edx
mov ecx, edx
cmp dword [rsp + 0x68], ecx
jbe 0x58c550
mov r12d, ecx
jmp 0x58c565
mov ebp, dword [rsp + 0x80]
lea ebx, [rcx - 1]
mov qword [rsp + 0x20], rdi
mov r15, qword [rsp + 0x88]
and eax, ebx
mov r13, qword [rsp + 0x48]
mov r9, qword [rsp + 0x98]
sub ebp, ecx
mov rcx, qword [rsp + 0x60]
lea edx, [rax + rbp - 2]
mov r14, qword [rsp + 0x78]
imul rdx, r15
mov rsi, qword [rsp + 0xb0]
mov r12, rcx
add r12, r15
mov r8, r12
add rdx, r13
call fcn.0058a3d0
mov r8, r14
mov rcx, r12
mov qword [rsp + 0x20], rdi
and ebx, eax
mov r9, qword [rsp + 0x98]
lea edx, [rbp + rbx - 1]
imul rdx, r15
lea rbx, [r14 + r15]
add rdx, r13
call fcn.0058a3d0
mov r8, qword [rsp + 0x70]
xor ecx, ecx
xor eax, eax
nop dword [rax]
shl rax, 6
lea rdx, [r14 + rax]
add rax, rsi
mov r9d, dword [rdx]
mov dword [rbx], r9d
mov r9d, dword [rdx + 4]
mov dword [rbx + 4], r9d
mov r9d, dword [rdx + 8]
mov dword [rbx + 8], r9d
mov r9d, dword [rdx + 0xc]
mov dword [rbx + 0xc], r9d
mov r9d, dword [rdx + 0x10]
mov dword [rbx + 0x10], r9d
mov r9d, dword [rdx + 0x14]
mov dword [rbx + 0x14], r9d
mov r9d, dword [rdx + 0x18]
mov dword [rbx + 0x18], r9d
mov r9d, dword [rdx + 0x1c]
mov dword [rbx + 0x1c], r9d
mov r9d, dword [rdx + 0x20]
mov dword [rbx + 0x20], r9d
mov r9d, dword [rdx + 0x24]
mov dword [rbx + 0x24], r9d
mov r9d, dword [rdx + 0x28]
mov dword [rbx + 0x28], r9d
mov r9d, dword [rdx + 0x2c]
mov dword [rbx + 0x2c], r9d
mov r9d, dword [rdx + 0x30]
mov dword [rbx + 0x30], r9d
mov r9d, dword [rdx + 0x34]
mov dword [rbx + 0x34], r9d
mov r9d, dword [rdx + 0x38]
mov dword [rbx + 0x38], r9d
mov edx, dword [rdx + 0x3c]
mov dword [rbx + 0x3c], edx
mov rdx, qword [rbx]
mov dword [rax], edx
mov edx, dword [rbx + 0x34]
mov dword [rax + 4], edx
mov rdx, qword [rbx + 0x28]
mov dword [rax + 8], edx
mov edx, dword [rbx + 0x1c]
mov dword [rax + 0xc], edx
mov rdx, qword [rbx + 0x10]
mov dword [rax + 0x10], edx
mov rdx, qword [rbx]
shr rdx, 0x20
mov dword [rax + 0x14], edx
mov rdx, qword [rbx + 0x38]
mov dword [rax + 0x18], edx
mov edx, dword [rbx + 0x2c]
mov dword [rax + 0x1c], edx
mov rdx, qword [rbx + 0x20]
mov dword [rax + 0x20], edx
mov edx, dword [rbx + 0x14]
mov dword [rax + 0x24], edx
mov rdx, qword [rbx + 8]
mov dword [rax + 0x28], edx
mov edx, dword [rbx + 0x3c]
mov dword [rax + 0x2c], edx
mov rdx, qword [rbx + 0x30]
mov dword [rax + 0x30], edx
mov edx, dword [rbx + 0x24]
mov dword [rax + 0x34], edx
mov rdx, qword [rbx + 0x18]
mov dword [rax + 0x38], edx
mov edx, dword [rbx + 0xc]
mov dword [rax + 0x3c], edx
lea eax, [rcx + 1]
mov rcx, rax
cmp r8, rax
ja 0x58c6a8
mov r8d, dword [rsp + 0x90]
xor ecx, ecx
mov r9, qword [rsp + 0x70]
nop word [rax + rax]
mov eax, r8d
shl rcx, 6
shl eax, 6
add rcx, r14
add rax, rsi
mov r10d, dword [rax]
mov dword [rbx], r10d
mov edx, dword [rax + 4]
mov dword [rbx + 4], edx
mov edx, dword [rax + 8]
mov dword [rbx + 8], edx
mov edx, dword [rax + 0xc]
mov dword [rbx + 0xc], edx
mov edx, dword [rax + 0x10]
mov dword [rbx + 0x10], edx
mov edx, dword [rax + 0x14]
mov dword [rbx + 0x14], edx
mov r11d, dword [rax + 0x18]
shl rdx, 0x20
or rdx, r10
mov dword [rbx + 0x18], r11d
mov r11d, dword [rax + 0x1c]
mov dword [rbx + 0x1c], r11d
mov r11d, dword [rax + 0x20]
mov dword [rbx + 0x20], r11d
mov r11d, dword [rax + 0x24]
mov dword [rbx + 0x24], r11d
mov r11d, dword [rax + 0x28]
mov dword [rbx + 0x28], r11d
mov r11d, dword [rax + 0x2c]
mov dword [rbx + 0x2c], r11d
mov r11d, dword [rax + 0x30]
mov dword [rbx + 0x30], r11d
mov r11d, dword [rax + 0x34]
mov dword [rbx + 0x34], r11d
mov r11d, dword [rax + 0x38]
mov dword [rbx + 0x38], r11d
mov eax, dword [rax + 0x3c]
mov dword [rbx + 0x3c], eax
mov qword [rcx], rdx
mov eax, dword [rbx + 0x3c]
mov edx, dword [rbx + 0x28]
shl rax, 0x20
or rax, rdx
mov qword [rcx + 8], rax
mov eax, dword [rbx + 0x24]
mov edx, dword [rbx + 0x10]
shl rax, 0x20
or rax, rdx
mov qword [rcx + 0x10], rax
mov eax, dword [rbx + 0xc]
mov edx, dword [rbx + 0x38]
shl rax, 0x20
or rax, rdx
mov qword [rcx + 0x18], rax
mov eax, dword [rbx + 0x34]
mov edx, dword [rbx + 0x20]
shl rax, 0x20
or rax, rdx
mov qword [rcx + 0x20], rax
mov eax, dword [rbx + 0x1c]
mov edx, dword [rbx + 8]
shl rax, 0x20
or rax, rdx
mov qword [rcx + 0x28], rax
mov eax, dword [rbx + 4]
mov edx, dword [rbx + 0x30]
shl rax, 0x20
or rax, rdx
mov qword [rcx + 0x30], rax
mov eax, dword [rbx + 0x2c]
mov edx, dword [rbx + 0x18]
shl rax, 0x20
or rax, rdx
mov qword [rcx + 0x38], rax
lea ecx, [r8 + 1]
mov r8, rcx
cmp rcx, r9
jb 0x58c7c0
mov rcx, qword [rsp + 0x88]
mov r9, rdi
mov r12d, dword [rsp + 0x84]
mov r15, qword [rsp + 0x48]
mov qword [rsp + 0x48], rbx
mov r13, qword [rsp + 0x98]
mov eax, dword [r14 + rcx - 0x40]
mov rdi, rcx
mov ebp, dword [rsp + 0x94]
mov rbx, qword [rsp + 0x70]
and eax, r12d
nop
mov edx, eax
mov r8, r13
mov rcx, r14
imul rdx, rbx
shl rdx, 6
add rdx, r15
call fcn.0058ae90
mov r8, r13
mov rcx, r14
mov edx, eax
and edx, r12d
imul rdx, rdi
add rdx, r15
call fcn.0058ae90
and eax, r12d
sub ebp, 2
jne 0x58c910
mov rbx, qword [rsp + 0x48]
mov ecx, ebp
xor eax, eax
mov r8, qword [rsp + 0x70]
nop dword [rax]
shl rax, 6
lea rdx, [r14 + rax]
add rax, rsi
mov r9d, dword [rdx]
mov dword [rbx], r9d
mov r9d, dword [rdx + 4]
mov dword [rbx + 4], r9d
mov r9d, dword [rdx + 8]
mov dword [rbx + 8], r9d
mov r9d, dword [rdx + 0xc]
mov dword [rbx + 0xc], r9d
mov r9d, dword [rdx + 0x10]
mov dword [rbx + 0x10], r9d
mov r9d, dword [rdx + 0x14]
mov dword [rbx + 0x14], r9d
mov r9d, dword [rdx + 0x18]
mov dword [rbx + 0x18], r9d
mov r9d, dword [rdx + 0x1c]
mov dword [rbx + 0x1c], r9d
mov r9d, dword [rdx + 0x20]
mov dword [rbx + 0x20], r9d
mov r9d, dword [rdx + 0x24]
mov dword [rbx + 0x24], r9d
mov r9d, dword [rdx + 0x28]
mov dword [rbx + 0x28], r9d
mov r9d, dword [rdx + 0x2c]
mov dword [rbx + 0x2c], r9d
mov r9d, dword [rdx + 0x30]
mov dword [rbx + 0x30], r9d
mov r9d, dword [rdx + 0x34]
mov dword [rbx + 0x34], r9d
mov r9d, dword [rdx + 0x38]
mov dword [rbx + 0x38], r9d
mov edx, dword [rdx + 0x3c]
mov dword [rbx + 0x3c], edx
mov rdx, qword [rbx]
mov dword [rax], edx
mov edx, dword [rbx + 0x34]
mov dword [rax + 4], edx
mov rdx, qword [rbx + 0x28]
mov dword [rax + 8], edx
mov edx, dword [rbx + 0x1c]
mov dword [rax + 0xc], edx
mov rdx, qword [rbx + 0x10]
mov dword [rax + 0x10], edx
mov rdx, qword [rbx]
shr rdx, 0x20
mov dword [rax + 0x14], edx
mov rdx, qword [rbx + 0x38]
mov dword [rax + 0x18], edx
mov edx, dword [rbx + 0x2c]
mov dword [rax + 0x1c], edx
mov rdx, qword [rbx + 0x20]
mov dword [rax + 0x20], edx
mov edx, dword [rbx + 0x14]
mov dword [rax + 0x24], edx
mov rdx, qword [rbx + 8]
mov dword [rax + 0x28], edx
mov edx, dword [rbx + 0x3c]
mov dword [rax + 0x2c], edx
mov rdx, qword [rbx + 0x30]
mov dword [rax + 0x30], edx
mov edx, dword [rbx + 0x24]
mov dword [rax + 0x34], edx
mov rdx, qword [rbx + 0x18]
mov dword [rax + 0x38], edx
mov edx, dword [rbx + 0xc]
mov dword [rax + 0x3c], edx
lea eax, [rcx + 1]
mov rcx, rax
cmp rax, r8
jb 0x58c958
mov rdi, qword [0x006368e0]
mov rax, qword [rsp + 0xa0]
add rax, qword [rdi]
movzx eax, byte [rax]
test al, al
jne 0x58ba53
mov rdx, qword [rsp + 0xb8]
mov r8d, 0x40
mov qword [rsp + 0x20], 0x20
mov r9, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x290]
add rdx, rsi
call fcn.0058d1f0
mov eax, 1
jmp 0x58ba55
lea r9d, [rdi - 1]
and eax, r9d
jmp 0x58c002
mov qword [r15 + 8], 0
jmp 0x58ba2c