Function at 0x58f820
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, 0x218
mov esi, dword [r9 + 4]
lea eax, [rsi - 0x400]
mov dword [rsp + 0x4c], esi
mov r15, rcx
mov rbx, rdx
mov rdi, r8
lea r12, [rsp + 0x13f]
and r12, 0xffffffffffffffc0
cmp eax, 0x7fc00
ja 0x58f898
mov eax, dword [r9 + 8]
lea edx, [rax - 8]
cmp edx, 0x18
ja 0x58f898
lea ecx, [rsi - 1]
mov dword [rsp + 0x84], ecx
and ecx, esi
mov dword [rsp + 0x90], ecx
jne 0x58f898
mov rcx, qword [r9 + 0x18]
mov rbp, qword [r9 + 0x10]
mov qword [rsp + 0x50], rcx
test rbp, rbp
jne 0x58f8e8
test rcx, rcx
je 0x58f8e8
nop dword [rax]
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
mov rax, qword [rsp + 0x280]
mov qword [rax], 0xffffffffffffffff
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rax + 0x10], 0xffffffffffffffff
mov qword [rax + 0x18], 0xffffffffffffffff
xor eax, eax
add rsp, 0x218
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r14d, eax
mov r8d, dword [rsp + 0x4c]
mov dword [rsp + 0xf0], 0x18000
mov rax, r14
shl rax, 7
imul r8, rax
lea r13, [rax + 0x40]
mov qword [rsp + 0x88], rax
lea rsi, [r8 + r13]
add rsi, rax
lea rax, [rsi + 0x18000]
mov qword [rsp + 0x40], rax
cmp qword [r15 + 0x18], rax
jae 0x58fe70
mov rcx, qword [r15]
test rcx, rcx
je 0x58f946
mov qword [rsp + 0x58], r8
call sub.msvcrt.dll_free
mov r8, qword [rsp + 0x58]
pxor xmm0, xmm0
mov qword [r15], 0
lea rcx, [rsi + 0x1803f]
movups xmmword [r15 + 0x10], xmm0
mov qword [rsp + 0x58], r8
call sub.msvcrt.dll_malloc
mov r8, qword [rsp + 0x58]
test rax, rax
je 0x59093c
movq xmm0, qword [rsp + 0x40]
lea rsi, [rax + 0x3f]
mov qword [r15], rax
and rsi, 0xffffffffffffffc0
punpcklqdq xmm0, xmm0
mov qword [r15 + 8], rsi
movups xmmword [r15 + 0x10], xmm0
je 0x58f8a4
mov rax, qword [rsp + 0x88]
xor r9d, r9d
mov edx, 0x20
mov rcx, r12
add rax, rsi
lea r15, [rax + r8]
mov qword [rsp + 0x40], rax
xor r8d, r8d
add r13, r15
lea rax, [r13 + 0x8000]
mov qword [rsp + 0xd0], r13
add r13, 0x10000
mov qword [rsp + 0xd8], rax
call fcn.00440f00
mov r8, rdi
mov rdx, rbx
mov rcx, r12
call fcn.00441120
lea rax, [rsp + 0xb0]
mov rcx, r12
mov rdx, rax
mov qword [rsp + 0xa0], rax
call fcn.004411b0
mov qword [rsp + 0xe0], r13
mov qword [rsp + 0xe8], 0
test rbp, rbp
je 0x58fe80
movsxd rax, dword [rsp + 0x288]
mov rdi, qword [0x0063fef0]
shl rax, 7
mov qword [rsp + 0x98], rax
add rax, qword [rdi]
movzx eax, byte [rax]
test al, al
jne 0x58f8cb
mov qword [rsp + 0x28], rsi
mov r9, qword [rsp + 0x50]
mov r8, rbp
mov edx, 0x20
mov qword [rsp + 0x30], pe_nt_image_headers64
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x20], 1
call fcn.005910f0
mov rdi, qword [0x0063fef0]
mov rax, qword [rsp + 0x98]
add rax, qword [rdi]
movzx eax, byte [rax]
test al, al
jne 0x58f8cb
movdqu xmm1, xmmword [rsi]
mov eax, dword [rsp + 0x4c]
mov edx, 0xaaaaaaab
mov rbx, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0xf0]
movups xmmword [rsp + 0xb0], xmm1
movdqu xmm2, xmmword [rsi + 0x10]
add eax, 2
imul rax, rdx
mov dword [rsp + 0x78], ecx
movups xmmword [rsp + 0xc0], xmm2
mov edx, dword [rsi]
mov dword [rbx + 0x80], edx
mov r10d, dword [rsi + 4]
shr rax, 0x21
add eax, 1
mov dword [rbx + 0x84], r10d
mov r11d, dword [rsi + 8]
and eax, 0xfffffffe
mov dword [rsp + 0x94], eax
mov eax, ecx
mov dword [rbx + 0x88], r11d
mov r8d, dword [rsi + 0xc]
shr eax, 7
mov dword [rsp + 0x70], r11d
mov dword [rbx + 0x8c], r8d
mov r13d, dword [rsi + 0x10]
shl r8, 0x20
mov dword [rsp + 0x50], eax
mov dword [rbx + 0x90], r13d
mov r11d, dword [rsi + 0x14]
mov dword [rsp + 0x68], r10d
mov dword [rbx + 0x94], r11d
mov r9d, dword [rsi + 0x18]
shl r11, 0x20
or r11, rdx
mov dword [rbx + 0x98], r9d
mov eax, dword [rsi + 0x1c]
mov dword [rsp + 0x58], r9d
mov dword [rbx + 0x9c], eax
mov ebp, dword [rsi + 0x20]
mov dword [rsp + 0x60], eax
mov dword [rbx + 0xa0], ebp
mov r9d, dword [rsi + 0x24]
mov rdx, qword [rsp + 0x60]
mov dword [rbx + 0xa4], r9d
mov r12d, dword [rsi + 0x28]
shl r9, 0x20
shl rdx, 0x20
or r9, r13
mov dword [rbx + 0xa8], r12d
mov eax, dword [rsi + 0x2c]
mov dword [rsp + 0x80], r12d
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
shl rcx, 0x20
mov r12d, dword [rsi + 0x38]
or rcx, rbp
mov dword [rbx + 0xb8], r12d
mov r10d, dword [rsi + 0x3c]
or r8, r12
lea r12, [rbx + 0x100]
mov qword [rbx + 0x20], rcx
mov ecx, dword [rsp + 0x70]
mov qword [rbx], r11
mov r11d, dword [rsp + 0x80]
or rdx, rcx
mov dword [rbx + 0xbc], r10d
shl r10, 0x20
mov qword [rbx + 0x28], rdx
mov rdx, qword [rsp + 0x68]
or r10, r11
mov qword [rbx + 8], r10
shl rdx, 0x20
mov qword [rbx + 0x10], r9
or rdi, rdx
mov edx, dword [rsp + 0x58]
mov qword [rbx + 0x18], r8
mov r8d, 1
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 qword [rbx + 0x48], rax
mov eax, dword [rbx + 0xa4]
mov edx, dword [rbx + 0x90]
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 edx, dword [rbx + 0xa0]
mov qword [rbx + 0x58], rax
mov eax, dword [rbx + 0xb4]
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.0058dad0
mov rcx, rdi
xor r9d, r9d
mov rdx, r12
mov r8d, 1
call fcn.0058dad0
mov ecx, dword [rsp + 0x50]
mov eax, dword [rbx + 0x140]
cmp ecx, 2
jbe 0x58fe98
mov edi, dword [rsp + 0x78]
sub ecx, 1
mov dword [rsp + 0x60], ecx
shr edi, 8
mov dword [rsp + 0x58], edi
mov edi, 2
cmp dword [rsp + 0x58], edi
ja 0x58fe5f
mov r13d, dword [rsp + 0x60]
sub r13d, edi
cmp r13d, 1
jbe 0x58fe46
lea ebp, [rdi - 1]
mov r10, r12
mov r9d, 1
nop dword [rax]
and eax, ebp
lea r11, [r10 + 0x80]
mov rcx, r10
lea edx, [r9 + rax - 1]
mov r8, r11
shl rdx, 7
add rdx, rbx
call fcn.0058f410
and eax, ebp
add r10, 0x100
mov rcx, r11
lea edx, [rax + r9]
mov r8, r10
shl rdx, 7
add rdx, rbx
call fcn.0058f410
add r9d, 2
cmp r9d, r13d
jb 0x58fde0
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 0x590930
mov edi, edx
cmp dword [rsp + 0x58], edi
jbe 0x58fdc3
mov r13d, edi
jmp 0x58fdd1
mov rsi, qword [r15 + 8]
jmp 0x58f999
mov qword [rsp + 0x50], 0
mov rbp, rbx
jmp 0x58fa27
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 rdi, [rsp + 0xd0]
lea edx, [r10 + rax - 2]
shl rdx, 7
add rdx, rbx
call fcn.0058f410
mov r8, r15
and r9d, eax
mov rcx, r11
lea edx, [r10 + r9 - 1]
shl rdx, 7
add rdx, rbx
mov ebx, 2
call fcn.0058f410
mov rdx, qword [r15 + 8]
mov rax, qword [r15]
mov r9, rdi
mov qword [r15 + 0x88], rdx
mov rdx, qword [r15 + 0x10]
mov qword [r15 + 0x80], rax
mov qword [r15 + 0x90], rdx
mov rdx, qword [r15 + 0x18]
mov qword [r15 + 0x98], rdx
mov rdx, qword [r15 + 0x20]
mov qword [r15 + 0xa0], rdx
mov rdx, qword [r15 + 0x28]
mov qword [r15 + 0xa8], rdx
mov rdx, qword [r15 + 0x30]
mov qword [r15 + 0xb0], rdx
mov rdx, qword [r15 + 0x38]
mov qword [r15 + 0xb8], rdx
mov dword [rsi], eax
mov eax, dword [r15 + 0xb4]
mov dword [rsi + 4], eax
mov rax, qword [r15 + 0xa8]
mov dword [rsi + 8], eax
mov eax, dword [r15 + 0x9c]
mov dword [rsi + 0xc], eax
mov rax, qword [r15 + 0x90]
mov dword [rsi + 0x10], eax
mov eax, dword [r15 + 0x84]
mov dword [rsi + 0x14], eax
mov rax, qword [r15 + 0xb8]
mov dword [rsi + 0x18], eax
mov eax, dword [r15 + 0xac]
mov dword [rsi + 0x1c], eax
mov rax, qword [r15 + 0xa0]
mov dword [rsi + 0x20], eax
mov eax, dword [r15 + 0x94]
mov dword [rsi + 0x24], eax
mov rax, qword [r15 + 0x88]
mov dword [rsi + 0x28], eax
mov eax, dword [r15 + 0xbc]
mov dword [rsi + 0x2c], eax
mov rax, qword [r15 + 0xb0]
mov dword [rsi + 0x30], eax
mov eax, dword [r15 + 0xa4]
mov dword [rsi + 0x34], eax
mov rax, qword [r15 + 0x98]
mov dword [rsi + 0x38], eax
mov eax, dword [r15 + 0x8c]
mov dword [rsi + 0x3c], eax
mov rdx, qword [r15 + 0x48]
mov rax, qword [r15 + 0x40]
mov qword [r15 + 0x88], rdx
mov rdx, qword [r15 + 0x50]
mov qword [r15 + 0x80], rax
mov qword [r15 + 0x90], rdx
mov rdx, qword [r15 + 0x58]
mov qword [r15 + 0x98], rdx
mov rdx, qword [r15 + 0x60]
mov qword [r15 + 0xa0], rdx
mov rdx, qword [r15 + 0x68]
mov qword [r15 + 0xa8], rdx
mov rdx, qword [r15 + 0x70]
mov qword [r15 + 0xb0], rdx
mov rdx, qword [r15 + 0x78]
mov qword [r15 + 0xb8], rdx
mov dword [rsi + 0x40], eax
mov eax, dword [r15 + 0xb4]
mov dword [rsi + 0x44], eax
mov rax, qword [r15 + 0xa8]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x88]
mov dword [rsi + 0x48], eax
mov eax, dword [r15 + 0x9c]
mov edx, dword [rsi]
add r12, r13
mov dword [rsi + 0x4c], eax
mov rax, qword [r15 + 0x90]
mov dword [rsi + 0x50], eax
mov eax, dword [r15 + 0x84]
mov dword [rsi + 0x54], eax
mov rax, qword [r15 + 0xb8]
mov dword [rsi + 0x58], eax
mov eax, dword [r15 + 0xac]
mov dword [rsi + 0x5c], eax
mov rax, qword [r15 + 0xa0]
mov dword [rsi + 0x60], eax
mov eax, dword [r15 + 0x94]
mov dword [rsi + 0x64], eax
mov rax, qword [r15 + 0x88]
mov dword [rsi + 0x68], eax
mov eax, dword [r15 + 0xbc]
mov dword [rsi + 0x6c], eax
mov rax, qword [r15 + 0xb0]
mov dword [rsi + 0x70], eax
mov eax, dword [r15 + 0xa4]
mov dword [rsi + 0x74], eax
mov rax, qword [r15 + 0x98]
mov dword [rsi + 0x78], eax
mov eax, dword [r15 + 0x8c]
mov dword [rsi + 0x7c], eax
lea rax, [r14 + r14]
mov qword [rsp + 0x68], rax
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]
mov edx, ebx
lea ecx, [rbx - 2]
mov r8d, 1
add ebx, 2
shl rdx, 6
shl rcx, 6
add rdx, r13
add rcx, r13
call fcn.0058dad0
lea eax, [rbp + 1]
mov rbp, rax
cmp r14, rax
ja 0x590330
mov rcx, qword [rsp + 0x40]
mov r8, r14
mov rdx, r12
mov rdi, r9
call fcn.0058dad0
mov rbx, qword [rsp + 0x88]
mov rcx, r12
mov r8, r14
lea rbp, [r12 + rbx]
mov rdx, rbp
mov qword [rsp + 0x60], rbp
call fcn.0058dad0
lea rax, [rbx - 0x40]
mov rcx, rbx
mov dword [rsp + 0x50], 2
mov qword [rsp + 0xa8], rax
mov eax, dword [rbp + rbx - 0x40]
mov ebx, dword [rsp + 0x4c]
mov qword [rsp + 0x78], rsi
mov rsi, rcx
mov qword [rsp + 0x70], r15
mov ecx, dword [rsp + 0x50]
shr ebx, 1
mov dword [rsp + 0x80], ebx
mov rbx, r14
shl rbx, 8
mov qword [rsp + 0x58], rbx
cmp dword [rsp + 0x80], ecx
ja 0x5904aa
mov r12d, dword [rsp + 0x84]
sub r12d, ecx
cmp r12d, 1
jbe 0x59048a
mov ecx, dword [rsp + 0x50]
mov r13, qword [rsp + 0x60]
mov ebx, 1
lea ebp, [rcx - 1]
mov rcx, r13
mov r13, r14
mov r14, rcx
nop
and eax, ebp
mov qword [rsp + 0x20], rdi
lea r15, [rsi + r14]
mov rcx, r14
lea edx, [rbx + rax - 1]
mov r9, r13
mov r8, r15
imul rdx, rsi
add rdx, qword [rsp + 0x40]
call fcn.0058e250
mov qword [rsp + 0x20], rdi
mov r9, r13
mov rcx, r15
and eax, ebp
add r14, qword [rsp + 0x58]
lea edx, [rax + rbx]
mov r8, r14
add ebx, 2
imul rdx, rsi
add rdx, qword [rsp + 0x40]
call fcn.0058e250
cmp ebx, r12d
jb 0x590410
lea edx, [r12 - 2]
mov ecx, 1
mov r14, r13
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 + 0x4c], edx
jbe 0x5904b8
mov dword [rsp + 0x50], edx
mov ecx, edx
cmp dword [rsp + 0x80], ecx
jbe 0x5903e0
mov r12d, ecx
jmp 0x5903f5
mov ebp, dword [rsp + 0x4c]
lea ebx, [rcx - 1]
mov qword [rsp + 0x20], rdi
mov r9, r14
mov r13, qword [rsp + 0x88]
and eax, ebx
mov r15, qword [rsp + 0x70]
sub ebp, ecx
mov rcx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
lea edx, [rax + rbp - 2]
mov r12, rcx
imul rdx, r13
add rdx, qword [rsp + 0x40]
add r12, r13
mov r8, r12
call fcn.0058e250
mov qword [rsp + 0x20], rdi
mov r8, r15
mov rcx, r12
and ebx, eax
mov r9, r14
lea edx, [rbp + rbx - 1]
lea rbx, [r15 + r13]
imul rdx, r13
add rdx, qword [rsp + 0x40]
call fcn.0058e250
mov r8, qword [rsp + 0x68]
xor ecx, ecx
xor eax, eax
nop dword [rax]
shl rax, 6
lea rdx, [r15 + 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 0x590530
mov r8d, dword [rsp + 0x90]
mov r9, qword [rsp + 0x68]
xor ecx, ecx
nop
mov eax, r8d
shl rcx, 6
shl eax, 6
add rcx, r15
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 0x590640
mov rcx, qword [rsp + 0x88]
mov r13, qword [rsp + 0x40]
mov qword [rsp + 0x40], rbx
mov r9, rdi
mov r12d, dword [rsp + 0x84]
mov ebp, dword [rsp + 0x94]
mov eax, dword [r15 + rcx - 0x40]
mov rbx, qword [rsp + 0x68]
mov rdi, rcx
and eax, r12d
nop word [rax + rax]
mov edx, eax
mov r8, r14
mov rcx, r15
imul rdx, rbx
shl rdx, 6
add rdx, r13
call fcn.0058ed10
mov r8, r14
mov rcx, r15
mov edx, eax
and edx, r12d
imul rdx, rdi
add rdx, r13
call fcn.0058ed10
and eax, r12d
sub ebp, 2
jne 0x590790
mov rbx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x68]
mov ecx, ebp
xor eax, eax
nop dword [rax]
shl rax, 6
lea rdx, [r15 + 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 0x5907d8
mov rdi, qword [0x0063fef0]
mov rax, qword [rsp + 0x98]
add rax, qword [rdi]
movzx eax, byte [rax]
test al, al
jne 0x58f8cb
mov rdx, qword [rsp + 0xa8]
mov r9, qword [rsp + 0xa0]
mov qword [rsp + 0x20], 0x20
mov r8d, 0x40
mov rcx, qword [rsp + 0x280]
add rdx, rsi
call fcn.00591070
mov eax, 1
jmp 0x58f8cd
lea r9d, [rdi - 1]
and eax, r9d
jmp 0x58fea2
mov qword [r15 + 8], 0
jmp 0x58f8a4