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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov ebx, edx
mov rdi, rcx
mov eax, 0xfffffffe
test rdi, rdi
je 0x5cde0d
cmp qword [rdi + 0x30], 0
je 0x5cde0d
cmp qword [rdi + 0x38], 0
je 0x5cde0d
mov r13, qword [rdi + 0x28]
test r13, r13
je 0x5cde0d
cmp qword [r13], rdi
jne 0x5cde0d
mov ecx, dword [r13 + 8]
lea edx, [rcx - 0x39]
cmp edx, 0x38
ja 0x5cd37b
movabs rsi, 0x100400400011001
bt rsi, rdx
jae 0x5cd37b
cmp ebx, 5
ja 0x5cde0d
cmp qword [rdi + 0x10], 0
je 0x5cd36b
mov edx, dword [rdi + 8]
test edx, edx
je 0x5cd35e
cmp qword [rdi], 0
je 0x5cd36b
cmp ebx, 4
je 0x5cd38d
cmp ecx, 0x29a
jne 0x5cd38d
mov rcx, qword [str.stream_error]
mov qword [rdi + 0x20], rcx
jmp 0x5cde0d
cmp ecx, 0x29a
je 0x5cd341
cmp ecx, 0x2a
je 0x5cd341
jmp 0x5cde0d
cmp dword [rdi + 0x18], 0
je 0x5cd7d3
mov eax, dword [r13 + 0x40]
mov dword [r13 + 0x40], ebx
cmp dword [r13 + 0x28], 0
je 0x5cd5a0
mov rcx, r13
call fcn.005d4dc0
mov r8d, dword [r13 + 0x28]
mov ecx, dword [rdi + 0x18]
cmp r8d, ecx
mov r15d, r8d
cmova r15d, ecx
test r15d, r15d
je 0x5cd408
mov rcx, qword [rdi + 0x10]
mov rdx, qword [r13 + 0x20]
mov r14d, r15d
mov r8, r14
call sub.msvcrt.dll_memcpy
add qword [rdi + 0x10], r14
add qword [r13 + 0x20], r14
add dword [rdi + 0x1c], r15d
mov ecx, dword [rdi + 0x18]
sub ecx, r15d
mov dword [rdi + 0x18], ecx
mov r8d, dword [r13 + 0x28]
sub r8d, r15d
mov dword [r13 + 0x28], r8d
jne 0x5cd408
mov rax, qword [r13 + 0x10]
mov qword [r13 + 0x20], rax
xor r8d, r8d
test ecx, ecx
je 0x5cde03
mov ecx, dword [r13 + 8]
cmp ecx, 0x2a
jne 0x5cd5b4
cmp dword [r13 + 0x2c], 0
je 0x5cd7e8
mov ecx, dword [r13 + 0x48]
shl ecx, 0xc
add ecx, 0xffff8800
xor edx, edx
cmp dword [r13 + 0xb0], 1
jg 0x5cd464
mov eax, dword [r13 + 0xac]
cmp eax, 2
jl 0x5cd464
mov edx, 0x40
cmp eax, 6
jl 0x5cd464
mov eax, 0x80
mov edx, 0xc0
cmove edx, eax
or edx, ecx
mov ecx, edx
or ecx, 0x20
cmp dword [r13 + 0x94], 0
cmove ecx, edx
imul rax, rcx, 0x8421085
shr rax, 0x20
mov edx, ecx
sub edx, eax
shr edx, 1
add edx, eax
shr edx, 4
mov eax, edx
shl eax, 5
sub eax, edx
mov edx, ecx
sub edx, eax
or edx, ecx
mov rax, qword [r13 + 0x10]
lea esi, [r8 + 1]
mov dword [r13 + 0x28], esi
mov esi, r8d
mov byte [rax + rsi], ch
xor dl, 0x1f
mov rax, qword [r13 + 0x10]
mov ecx, dword [r13 + 0x28]
lea esi, [rcx + 1]
mov dword [r13 + 0x28], esi
mov byte [rax + rcx], dl
cmp dword [r13 + 0x94], 0
je 0x5cd521
mov eax, dword [rdi + 0x4c]
mov ecx, eax
shr ecx, 0x10
shr eax, 0x18
mov r8, qword [r13 + 0x10]
mov esi, dword [r13 + 0x28]
lea edx, [rsi + 1]
mov dword [r13 + 0x28], edx
mov byte [r8 + rsi], al
mov rax, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rax + rdx], cl
mov eax, dword [rdi + 0x4c]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rcx + rdx], ah
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rcx + rdx], al
xor ecx, ecx
xor edx, edx
xor r8d, r8d
call fcn.005d7290
mov dword [rdi + 0x4c], eax
mov dword [r13 + 8], 0x71
mov r14, qword [rdi + 0x28]
mov rcx, r14
call fcn.005d4dc0
mov r12d, dword [r14 + 0x28]
mov eax, dword [rdi + 0x18]
cmp r12d, eax
cmova r12d, eax
test r12d, r12d
je 0x5cd58f
mov rcx, qword [rdi + 0x10]
mov rdx, qword [r14 + 0x20]
mov r15d, r12d
mov r8, r15
call sub.msvcrt.dll_memcpy
add qword [rdi + 0x10], r15
add qword [r14 + 0x20], r15
add dword [rdi + 0x1c], r12d
sub dword [rdi + 0x18], r12d
mov eax, dword [r14 + 0x28]
sub eax, r12d
mov dword [r14 + 0x28], eax
jne 0x5cd58f
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [r13 + 0x28], 0
jne 0x5cde03
mov ecx, dword [r13 + 8]
jmp 0x5cd5cb
xor r8d, r8d
test edx, edx
je 0x5cd799
cmp ecx, 0x2a
je 0x5cd41d
cmp ecx, 0x29a
jne 0x5cd5cb
cmp dword [rdi + 8], 0
jne 0x5cd7d3
jmp 0x5cde24
cmp ecx, 0x39
jne 0x5cd90c
xor ecx, ecx
xor edx, edx
xor r8d, r8d
call fcn.005d7bc0
mov dword [rdi + 0x4c], eax
mov rax, qword [r13 + 0x10]
mov ecx, dword [r13 + 0x28]
lea edx, [rcx + 1]
mov dword [r13 + 0x28], edx
mov byte [rax + rcx], 0x1f
mov rax, qword [r13 + 0x10]
mov ecx, dword [r13 + 0x28]
lea edx, [rcx + 1]
mov dword [r13 + 0x28], edx
mov byte [rax + rcx], 0x8b
mov rax, qword [r13 + 0x10]
mov ecx, dword [r13 + 0x28]
lea edx, [rcx + 1]
mov dword [r13 + 0x28], edx
mov byte [rax + rcx], 8
mov rax, qword [r13 + 0x30]
test rax, rax
je 0x5cd7f5
cmp dword [rax], 0
setne cl
cmp dword [rax + 0x3c], 0
setne dl
add dl, dl
or dl, cl
cmp qword [rax + 0x10], 0
setne r8b
shl r8b, 2
cmp qword [rax + 0x20], 0
setne cl
shl cl, 3
or cl, r8b
or cl, dl
cmp qword [rax + 0x30], 0
setne al
shl al, 4
or al, cl
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rcx + rdx], al
mov rax, qword [r13 + 0x30]
mov al, byte [rax + 4]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rcx + rdx], al
mov rax, qword [r13 + 0x30]
mov al, byte [rax + 5]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rcx + rdx], al
mov rax, qword [r13 + 0x30]
mov al, byte [rax + 6]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rcx + rdx], al
mov rax, qword [r13 + 0x30]
mov al, byte [rax + 7]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rcx + rdx], al
mov ecx, dword [r13 + 0xac]
mov al, 2
cmp ecx, 9
je 0x5cd6ff
cmp dword [r13 + 0xb0], 1
setg dl
cmp ecx, 2
mov al, 4
jl 0x5cd6ff
shl dl, 2
mov eax, edx
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rcx + rdx], al
mov rax, qword [r13 + 0x30]
mov al, byte [rax + 0xc]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rcx + rdx], al
mov rax, qword [r13 + 0x30]
cmp qword [rax + 0x10], 0
je 0x5cd767
mov al, byte [rax + 0x18]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rcx + rdx], al
mov rax, qword [r13 + 0x30]
mov al, byte [rax + 0x19]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rcx + rdx], al
mov rax, qword [r13 + 0x30]
cmp dword [rax + 0x3c], 0
je 0x5cd780
mov ecx, dword [rdi + 0x4c]
mov rdx, qword [r13 + 0x10]
mov r8d, dword [r13 + 0x28]
call fcn.005d7bc0
mov dword [rdi + 0x4c], eax
lea r12, [r13 + 0x30]
mov dword [r13 + 0x38], 0
mov dword [r13 + 8], 0x45
jmp 0x5cd92c
xor esi, esi
cmp ebx, 4
setg r10b
xor r11d, r11d
cmp eax, 4
setg r9b
cmp ebx, 4
je 0x5cd5ab
lea edx, [rbx + rbx]
mov sil, r10b
lea esi, [rsi + rsi*8]
sub edx, esi
add eax, eax
mov r11b, r9b
lea esi, [r11 + r11*8]
sub eax, esi
cmp edx, eax
jg 0x5cd5ab
mov rax, qword [str.buffer_error]
mov qword [rdi + 0x20], rax
mov eax, 0xfffffffb
jmp 0x5cde0d
mov dword [r13 + 8], 0x71
jmp case.0x5cd926.70
mov rax, qword [r13 + 0x10]
mov ecx, dword [r13 + 0x28]
lea edx, [rcx + 1]
mov dword [r13 + 0x28], edx
mov byte [rax + rcx], 0
mov rax, qword [r13 + 0x10]
mov ecx, dword [r13 + 0x28]
lea edx, [rcx + 1]
mov dword [r13 + 0x28], edx
mov byte [rax + rcx], 0
mov rax, qword [r13 + 0x10]
mov ecx, dword [r13 + 0x28]
lea edx, [rcx + 1]
mov dword [r13 + 0x28], edx
mov byte [rax + rcx], 0
mov rax, qword [r13 + 0x10]
mov ecx, dword [r13 + 0x28]
lea edx, [rcx + 1]
mov dword [r13 + 0x28], edx
mov byte [rax + rcx], 0
mov rax, qword [r13 + 0x10]
mov ecx, dword [r13 + 0x28]
lea edx, [rcx + 1]
mov dword [r13 + 0x28], edx
mov byte [rax + rcx], 0
mov ecx, dword [r13 + 0xac]
mov al, 2
cmp ecx, 9
je 0x5cd879
cmp dword [r13 + 0xb0], 1
setg dl
cmp ecx, 2
mov al, 4
jl 0x5cd879
shl dl, 2
mov eax, edx
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rcx + rdx], al
mov rax, qword [r13 + 0x10]
mov ecx, dword [r13 + 0x28]
lea edx, [rcx + 1]
mov dword [r13 + 0x28], edx
mov byte [rax + rcx], 0xa
mov dword [r13 + 8], 0x71
mov r14, qword [rdi + 0x28]
mov rcx, r14
call fcn.005d4dc0
mov r12d, dword [r14 + 0x28]
mov eax, dword [rdi + 0x18]
cmp r12d, eax
cmova r12d, eax
test r12d, r12d
je 0x5cd8fd
mov rcx, qword [rdi + 0x10]
mov rdx, qword [r14 + 0x20]
mov r15d, r12d
mov r8, r15
call sub.msvcrt.dll_memcpy
add qword [rdi + 0x10], r15
add qword [r14 + 0x20], r15
add dword [rdi + 0x1c], r12d
sub dword [rdi + 0x18], r12d
mov eax, dword [r14 + 0x28]
sub eax, r12d
mov dword [r14 + 0x28], eax
jne 0x5cd8fd
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [r13 + 0x28], 0
jne 0x5cde03
mov ecx, dword [r13 + 8]
add ecx, 0xffffffbb
cmp ecx, 0x22
ja case.0x5cd926.70
lea rax, [0x005ce7b4]
movsxd rcx, dword [rax + rcx*4]
add rcx, rax
jmp rcx
lea r12, [r13 + 0x30]
mov rcx, qword [r12]
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x5cda88
mov qword [rbp], r12
mov r15d, dword [r13 + 0x18]
mov r14d, dword [r13 + 0x28]
movzx esi, word [rcx + 0x18]
mov edx, dword [r13 + 0x38]
sub esi, edx
lea ecx, [r14 + rsi]
cmp ecx, r15d
jbe 0x5cda38
mov qword [rbp - 8], rsi
sub r15d, r14d
mov r12d, r14d
mov rcx, qword [r13 + 0x10]
add rcx, r12
mov edx, edx
add rdx, rax
mov r8, r15
call sub.msvcrt.dll_memcpy
mov r8d, dword [r13 + 0x18]
mov dword [r13 + 0x28], r8d
sub r8d, r14d
jbe 0x5cd9a8
mov rax, qword [r13 + 0x30]
mov eax, dword [rax + 0x3c]
test eax, eax
je 0x5cd9a8
mov ecx, dword [rdi + 0x4c]
add r12, qword [r13 + 0x10]
mov rdx, r12
call fcn.005d7bc0
mov dword [rdi + 0x4c], eax
add dword [r13 + 0x38], r15d
mov r12, qword [rdi + 0x28]
mov rcx, r12
call fcn.005d4dc0
mov r14d, dword [r12 + 0x28]
mov eax, dword [rdi + 0x18]
cmp r14d, eax
cmova r14d, eax
test r14d, r14d
je 0x5cda0a
mov rcx, qword [rdi + 0x10]
mov rdx, qword [r12 + 0x20]
mov esi, r14d
mov r8, rsi
call sub.msvcrt.dll_memcpy
add qword [rdi + 0x10], rsi
add qword [r12 + 0x20], rsi
add dword [rdi + 0x1c], r14d
sub dword [rdi + 0x18], r14d
mov eax, dword [r12 + 0x28]
sub eax, r14d
mov dword [r12 + 0x28], eax
jne 0x5cda0a
mov rax, qword [r12 + 0x10]
mov qword [r12 + 0x20], rax
cmp dword [r13 + 0x28], 0
jne 0x5cde03
mov rsi, qword [rbp - 8]
sub esi, r15d
mov r15d, dword [r13 + 0x18]
xor r14d, r14d
cmp esi, r15d
mov rax, qword [r13 + 0x30]
mov rax, qword [rax + 0x10]
mov edx, dword [r13 + 0x38]
ja 0x5cd960
mov r15d, r14d
mov rcx, qword [r13 + 0x10]
add rcx, r15
mov edx, edx
add rdx, rax
mov r8d, esi
call sub.msvcrt.dll_memcpy
add esi, dword [r13 + 0x28]
mov dword [r13 + 0x28], esi
sub esi, r14d
jbe 0x5cda7c
mov rax, qword [r13 + 0x30]
mov eax, dword [rax + 0x3c]
test eax, eax
je 0x5cda7c
mov ecx, dword [rdi + 0x4c]
add r15, qword [r13 + 0x10]
mov rdx, r15
mov r8d, esi
call fcn.005d7bc0
mov dword [rdi + 0x4c], eax
mov dword [r13 + 0x38], 0
mov r12, qword [rbp]
mov dword [r13 + 8], 0x49
mov rax, qword [r12]
cmp qword [rax + 0x20], 0
jne 0x5cdab3
jmp 0x5cdbb4
lea r12, [r13 + 0x30]
mov rax, qword [r12]
cmp qword [rax + 0x20], 0
je 0x5cdbb4
mov r8d, dword [r13 + 0x28]
mov r9d, r8d
cmp r8d, dword [r13 + 0x18]
jne 0x5cdb5a
sub r8d, r9d
jbe 0x5cdae6
mov rcx, qword [r12]
mov ecx, dword [rcx + 0x3c]
test ecx, ecx
je 0x5cdae6
mov ecx, dword [rdi + 0x4c]
mov edx, r9d
add rdx, qword [r13 + 0x10]
call fcn.005d7bc0
mov dword [rdi + 0x4c], eax
mov r14, qword [rdi + 0x28]
mov rcx, r14
call fcn.005d4dc0
mov esi, dword [r14 + 0x28]
mov eax, dword [rdi + 0x18]
cmp esi, eax
cmova esi, eax
test esi, esi
je 0x5cdb37
mov rcx, qword [rdi + 0x10]
mov rdx, qword [r14 + 0x20]
mov r15d, esi
mov r8, r15
call sub.msvcrt.dll_memcpy
add qword [rdi + 0x10], r15
add qword [r14 + 0x20], r15
add dword [rdi + 0x1c], esi
sub dword [rdi + 0x18], esi
mov eax, dword [r14 + 0x28]
sub eax, esi
mov dword [r14 + 0x28], eax
jne 0x5cdb37
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
xor r8d, r8d
cmp dword [r13 + 0x28], 0
mov r9d, 0
je 0x5cdb5a
jmp 0x5cde03
mov r8d, dword [r13 + 0x28]
cmp r8d, dword [r13 + 0x18]
je 0x5cdac4
mov rcx, qword [r13 + 0x10]
mov rdx, qword [r13 + 0x30]
mov rdx, qword [rdx + 0x20]
mov esi, dword [r13 + 0x38]
lea eax, [rsi + 1]
mov dword [r13 + 0x38], eax
movzx eax, byte [rdx + rsi]
lea edx, [r8 + 1]
mov dword [r13 + 0x28], edx
mov edx, r8d
mov byte [rcx + rdx], al
test al, al
jne 0x5cdb4c
mov rax, qword [r12]
cmp dword [rax + 0x3c], 0
je 0x5cdbac
mov r8d, dword [r13 + 0x28]
sub r8d, r9d
jbe 0x5cdbac
mov ecx, dword [rdi + 0x4c]
mov edx, r9d
add rdx, qword [r13 + 0x10]
call fcn.005d7bc0
mov dword [rdi + 0x4c], eax
mov dword [r13 + 0x38], 0
mov dword [r13 + 8], 0x5b
mov rax, qword [r12]
cmp qword [rax + 0x30], 0
jne 0x5cdbdf
jmp 0x5cdcd8
lea r12, [r13 + 0x30]
mov rax, qword [r12]
cmp qword [rax + 0x30], 0
je 0x5cdcd8
mov r8d, dword [r13 + 0x28]
mov r9d, r8d
cmp r8d, dword [r13 + 0x18]
jne 0x5cdc86
sub r8d, r9d
jbe 0x5cdc12
mov rcx, qword [r12]
mov ecx, dword [rcx + 0x3c]
test ecx, ecx
je 0x5cdc12
mov ecx, dword [rdi + 0x4c]
mov edx, r9d
add rdx, qword [r13 + 0x10]
call fcn.005d7bc0
mov dword [rdi + 0x4c], eax
mov r14, qword [rdi + 0x28]
mov rcx, r14
call fcn.005d4dc0
mov esi, dword [r14 + 0x28]
mov eax, dword [rdi + 0x18]
cmp esi, eax
cmova esi, eax
test esi, esi
je 0x5cdc63
mov rcx, qword [rdi + 0x10]
mov rdx, qword [r14 + 0x20]
mov r15d, esi
mov r8, r15
call sub.msvcrt.dll_memcpy
add qword [rdi + 0x10], r15
add qword [r14 + 0x20], r15
add dword [rdi + 0x1c], esi
sub dword [rdi + 0x18], esi
mov eax, dword [r14 + 0x28]
sub eax, esi
mov dword [r14 + 0x28], eax
jne 0x5cdc63
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
xor r8d, r8d
cmp dword [r13 + 0x28], 0
mov r9d, 0
je 0x5cdc86
jmp 0x5cde03
mov r8d, dword [r13 + 0x28]
cmp r8d, dword [r13 + 0x18]
je 0x5cdbf0
mov rcx, qword [r13 + 0x10]
mov rdx, qword [r13 + 0x30]
mov rdx, qword [rdx + 0x30]
mov esi, dword [r13 + 0x38]
lea eax, [rsi + 1]
mov dword [r13 + 0x38], eax
movzx eax, byte [rdx + rsi]
lea edx, [r8 + 1]
mov dword [r13 + 0x28], edx
mov edx, r8d
mov byte [rcx + rdx], al
test al, al
jne 0x5cdc78
mov rax, qword [r12]
cmp dword [rax + 0x3c], 0
je 0x5cdcd8
mov r8d, dword [r13 + 0x28]
sub r8d, r9d
jbe 0x5cdcd8
mov ecx, dword [rdi + 0x4c]
mov edx, r9d
add rdx, qword [r13 + 0x10]
call fcn.005d7bc0
mov dword [rdi + 0x4c], eax
mov dword [r13 + 8], 0x67
mov rax, qword [r12]
cmp dword [rax + 0x3c], 0
jne 0x5cdd01
jmp 0x5cdda3
lea r12, [r13 + 0x30]
mov rax, qword [r12]
cmp dword [rax + 0x3c], 0
je 0x5cdda3
mov eax, dword [r13 + 0x28]
lea ecx, [rax + 2]
cmp ecx, dword [r13 + 0x18]
jbe 0x5cdd6c
mov r14, qword [rdi + 0x28]
mov rcx, r14
call fcn.005d4dc0
mov esi, dword [r14 + 0x28]
mov eax, dword [rdi + 0x18]
cmp esi, eax
cmova esi, eax
test esi, esi
je 0x5cdd5f
mov rcx, qword [rdi + 0x10]
mov rdx, qword [r14 + 0x20]
mov r15d, esi
mov r8, r15
call sub.msvcrt.dll_memcpy
add qword [rdi + 0x10], r15
add qword [r14 + 0x20], r15
add dword [rdi + 0x1c], esi
sub dword [rdi + 0x18], esi
mov eax, dword [r14 + 0x28]
sub eax, esi
mov dword [r14 + 0x28], eax
jne 0x5cdd5f
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [r13 + 0x28], 0
jne 0x5cde03
xor eax, eax
mov cl, byte [rdi + 0x4c]
mov rdx, qword [r13 + 0x10]
lea esi, [rax + 1]
mov dword [r13 + 0x28], esi
mov eax, eax
mov byte [rdx + rax], cl
mov al, byte [rdi + 0x4d]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea esi, [rdx + 1]
mov dword [r13 + 0x28], esi
mov byte [rcx + rdx], al
xor ecx, ecx
xor edx, edx
xor r8d, r8d
call fcn.005d7bc0
mov dword [rdi + 0x4c], eax
mov dword [r13 + 8], 0x71
mov r14, qword [rdi + 0x28]
mov rcx, r14
call fcn.005d4dc0
mov esi, dword [r14 + 0x28]
mov eax, dword [rdi + 0x18]
cmp esi, eax
cmova esi, eax
test esi, esi
je 0x5cddfc
mov rcx, qword [rdi + 0x10]
mov rdx, qword [r14 + 0x20]
mov r15d, esi
mov r8, r15
call sub.msvcrt.dll_memcpy
add qword [rdi + 0x10], r15
add qword [r14 + 0x20], r15
add dword [rdi + 0x1c], esi
sub dword [rdi + 0x18], esi
mov eax, dword [r14 + 0x28]
sub eax, esi
mov dword [r14 + 0x28], eax
jne 0x5cddfc
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
cmp dword [r13 + 0x28], 0
je case.0x5cd926.70
mov dword [r13 + 0x40], 0xffffffff
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp dword [rdi + 8], 0
jne 0x5cde32
cmp dword [r13 + 0x9c], 0
je 0x5ce331
movsxd rsi, dword [r13 + 0xac]
test rsi, rsi
je 0x5ce322
mov eax, dword [r13 + 0xb0]
cmp eax, 3
je 0x5ce2e5
cmp eax, 2
jne 0x5ce34c
cmp dword [r13 + 0x9c], 0
jne 0x5cde7b
mov rcx, r13
call fcn.005cc5b0
cmp dword [r13 + 0x9c], 0
je 0x5ce365
mov dword [r13 + 0x88], 0
mov rax, qword [r13 + 0x50]
mov ecx, dword [r13 + 0x94]
movzx eax, byte [rax + rcx]
mov rcx, qword [r13 + 0x16e8]
mov edx, dword [r13 + 0x16f4]
lea esi, [rdx + 1]
mov dword [r13 + 0x16f4], esi
mov byte [rcx + rdx], 0
mov rcx, qword [r13 + 0x16e8]
mov edx, dword [r13 + 0x16f4]
lea esi, [rdx + 1]
mov dword [r13 + 0x16f4], esi
mov byte [rcx + rdx], 0
mov rcx, qword [r13 + 0x16e8]
mov edx, dword [r13 + 0x16f4]
lea esi, [rdx + 1]
mov dword [r13 + 0x16f4], esi
mov byte [rcx + rdx], al
inc word [r13 + rax*4 + 0xbc]
mov eax, dword [r13 + 0x16f4]
dec dword [r13 + 0x9c]
mov r8d, dword [r13 + 0x94]
inc r8d
cmp eax, dword [r13 + 0x16f8]
mov dword [r13 + 0x94], r8d
jne 0x5cde5b
mov eax, dword [r13 + 0x84]
test eax, eax
js 0x5cdf31
mov rdx, qword [r13 + 0x50]
add rdx, rax
jmp 0x5cdf33
xor edx, edx
sub r8d, eax
xor r9d, r9d
mov rcx, r13
call fcn.005d4fe0
mov eax, dword [r13 + 0x94]
mov dword [r13 + 0x84], eax
mov r12, qword [r13]
mov r14, qword [r12 + 0x28]
mov rcx, r14
call fcn.005d4dc0
mov esi, dword [r14 + 0x28]
mov eax, dword [r12 + 0x18]
cmp esi, eax
cmova esi, eax
test esi, esi
je 0x5cdfad
mov rcx, qword [r12 + 0x10]
mov rdx, qword [r14 + 0x20]
mov r15d, esi
mov r8, r15
call sub.msvcrt.dll_memcpy
add qword [r12 + 0x10], r15
add qword [r14 + 0x20], r15
add dword [r12 + 0x1c], esi
sub dword [r12 + 0x18], esi
mov eax, dword [r14 + 0x28]
sub eax, esi
mov dword [r14 + 0x28], eax
jne 0x5cdfad
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
mov rax, qword [r13]
cmp dword [rax + 0x18], 0
jne 0x5cde5b
jmp 0x5ce466
test r10d, r10d
je 0x5ce390
mov dword [r13 + 0x88], 0
cmp r10d, 2
ja 0x5cdff1
mov r14d, dword [r13 + 0x94]
jmp 0x5ce0ad
mov dword [r13 + 0x88], 0
mov r14d, dword [r13 + 0x94]
test r14, r14
je 0x5ce0aa
mov rdx, qword [r13 + 0x50]
mov al, byte [rdx + r14 - 1]
cmp al, byte [rdx + r14]
jne 0x5ce0ad
add rdx, r14
cmp al, byte [rdx + 1]
jne 0x5ce0ad
cmp al, byte [rdx + 2]
jne 0x5ce0ad
lea r8, [rdx + 0x102]
xor ecx, ecx
mov r11d, 2
cmp al, byte [rdx + rcx + 3]
jne 0x5ce1e0
lea r9, [rdx + r11]
cmp al, byte [rdx + rcx + 4]
jne 0x5ce1e7
cmp al, byte [rdx + rcx + 5]
jne 0x5ce1ed
cmp al, byte [rdx + rcx + 6]
jne 0x5ce1f3
cmp al, byte [rdx + rcx + 7]
jne 0x5ce1f9
cmp al, byte [rdx + rcx + 8]
jne 0x5ce1ff
cmp al, byte [rdx + rcx + 9]
jne 0x5ce205
lea r9, [rcx + 2]
lea rsi, [rcx + 8]
cmp r9, 0xf9
ja 0x5ce0a0
add r11, 8
cmp al, byte [rdx + rcx + 0xa]
mov rcx, rsi
je 0x5ce038
lea r9, [rdx + rsi + 2]
jmp 0x5ce209
xor r14d, r14d
mov rax, qword [r13 + 0x50]
mov ecx, r14d
movzx eax, byte [rax + rcx]
mov rcx, qword [r13 + 0x16e8]
mov edx, dword [r13 + 0x16f4]
lea esi, [rdx + 1]
mov dword [r13 + 0x16f4], esi
mov byte [rcx + rdx], 0
mov rcx, qword [r13 + 0x16e8]
mov edx, dword [r13 + 0x16f4]
lea esi, [rdx + 1]
mov dword [r13 + 0x16f4], esi
mov byte [rcx + rdx], 0
mov rcx, qword [r13 + 0x16e8]
mov edx, dword [r13 + 0x16f4]
lea esi, [rdx + 1]
mov dword [r13 + 0x16f4], esi
mov byte [rcx + rdx], al
inc word [r13 + rax*4 + 0xbc]
mov eax, dword [r13 + 0x16f4]
dec dword [r13 + 0x9c]
mov r8d, dword [r13 + 0x94]
inc r8d
cmp eax, dword [r13 + 0x16f8]
mov dword [r13 + 0x94], r8d
jne 0x5ce2e5
mov eax, dword [r13 + 0x84]
test eax, eax
js 0x5ce154
mov rdx, qword [r13 + 0x50]
add rdx, rax
jmp 0x5ce156
xor edx, edx
sub r8d, eax
xor r9d, r9d
mov rcx, r13
call fcn.005d4fe0
mov eax, dword [r13 + 0x94]
mov dword [r13 + 0x84], eax
mov rsi, qword [r13]
mov r14, qword [rsi + 0x28]
mov rcx, r14
call fcn.005d4dc0
mov r12d, dword [r14 + 0x28]
mov eax, dword [rsi + 0x18]
cmp r12d, eax
cmova r12d, eax
test r12d, r12d
je 0x5ce1cd
mov rcx, qword [rsi + 0x10]
mov rdx, qword [r14 + 0x20]
mov r15d, r12d
mov r8, r15
call sub.msvcrt.dll_memcpy
add qword [rsi + 0x10], r15
add qword [r14 + 0x20], r15
add dword [rsi + 0x1c], r12d
sub dword [rsi + 0x18], r12d
mov eax, dword [r14 + 0x28]
sub eax, r12d
mov dword [r14 + 0x28], eax
jne 0x5ce1cd
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
mov rax, qword [r13]
cmp dword [rax + 0x18], 0
jne 0x5ce2e5
jmp 0x5ce466
lea r9, [rdx + r11 + 1]
jmp 0x5ce209
add r9, 2
jmp 0x5ce209
add r9, 3
jmp 0x5ce209
add r9, 4
jmp 0x5ce209
add r9, 5
jmp 0x5ce209
add r9, 6
jmp 0x5ce209
add r9, 7
sub r8d, r9d
mov eax, 0x102
sub eax, r8d
cmp eax, r10d
cmova eax, r10d
mov dword [r13 + 0x88], eax
cmp eax, 3
jb 0x5ce0ad
add eax, 0xfd
mov rcx, qword [r13 + 0x16e8]
mov edx, dword [r13 + 0x16f4]
lea esi, [rdx + 1]
mov dword [r13 + 0x16f4], esi
mov byte [rcx + rdx], 1
mov rcx, qword [r13 + 0x16e8]
mov edx, dword [r13 + 0x16f4]
lea esi, [rdx + 1]
mov dword [r13 + 0x16f4], esi
mov byte [rcx + rdx], 0
mov rcx, qword [r13 + 0x16e8]
mov edx, dword [r13 + 0x16f4]
lea esi, [rdx + 1]
mov dword [r13 + 0x16f4], esi
mov byte [rcx + rdx], al
movzx eax, al
lea rcx, [0x008e7120]
movzx eax, byte [rax + rcx]
inc word [r13 + rax*4 + 0x4c0]
movzx eax, byte [0x008e6f20]
inc word [r13 + rax*4 + 0x9b0]
mov eax, dword [r13 + 0x16f4]
mov r8d, dword [r13 + 0x88]
sub dword [r13 + 0x9c], r8d
add r8d, dword [r13 + 0x94]
cmp eax, dword [r13 + 0x16f8]
mov dword [r13 + 0x94], r8d
mov dword [r13 + 0x88], 0
je 0x5ce140
mov r10d, dword [r13 + 0x9c]
cmp r10d, 0x103
jae 0x5cdfe6
mov rcx, r13
call fcn.005cc5b0
test ebx, ebx
mov r10d, dword [r13 + 0x9c]
jne 0x5cdfc0
cmp r10d, 0x103
jae 0x5cdfc0
jmp 0x5ce466
mov rcx, r13
mov edx, ebx
call fcn.005cea40
jmp 0x5ce44a
test ebx, ebx
je 0x5ce55c
cmp dword [r13 + 8], 0x29a
jne 0x5cde32
jmp 0x5ce55c
shl rsi, 4
lea rax, [0x008e5fb0]
mov rcx, r13
mov edx, ebx
call qword [rsi + rax + 8]
jmp 0x5ce44a
test ebx, ebx
je 0x5ce466
mov dword [r13 + 0x1708], 0
cmp ebx, 4
jne 0x5ce702
mov eax, dword [r13 + 0x84]
test eax, eax
jns 0x5ce3af
xor edx, edx
jmp 0x5ce3b6
mov dword [r13 + 0x1708], 0
cmp ebx, 4
jne 0x5ce6e0
mov eax, dword [r13 + 0x84]
test eax, eax
js 0x5ce38c
mov rdx, qword [r13 + 0x50]
add rdx, rax
mov r8d, dword [r13 + 0x94]
sub r8d, eax
mov r9d, 1
mov rcx, r13
call fcn.005d4fe0
mov eax, dword [r13 + 0x94]
mov dword [r13 + 0x84], eax
mov r12, qword [r13]
mov r14, qword [r12 + 0x28]
mov rcx, r14
call fcn.005d4dc0
mov esi, dword [r14 + 0x28]
mov eax, dword [r12 + 0x18]
cmp esi, eax
cmova esi, eax
test esi, esi
je 0x5ce43a
mov rcx, qword [r12 + 0x10]
mov rdx, qword [r14 + 0x20]
mov r15d, esi
mov r8, r15
call sub.msvcrt.dll_memcpy
add qword [r12 + 0x10], r15
add qword [r14 + 0x20], r15
add dword [r12 + 0x1c], esi
sub dword [r12 + 0x18], esi
mov eax, dword [r14 + 0x28]
sub eax, esi
mov dword [r14 + 0x28], eax
jne 0x5ce43a
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
mov rax, qword [r13]
cmp dword [rax + 0x18], 1
mov eax, 3
sbb eax, 0
mov ecx, eax
or ecx, 1
cmp ecx, 3
jne 0x5ce45c
mov dword [r13 + 8], 0x29a
mov ecx, eax
or ecx, 2
cmp ecx, 2
jne 0x5ce47f
xor eax, eax
cmp dword [rdi + 0x18], 0
jne 0x5cde0d
mov dword [r13 + 0x40], 0xffffffff
jmp 0x5cde0d
cmp eax, 1
jne 0x5ce55c
cmp ebx, 5
je 0x5ce4f8
cmp ebx, 1
jne 0x5ce49c
mov rcx, r13
call fcn.005d4e50
jmp 0x5ce4f8
xor edx, edx
xor r8d, r8d
xor r9d, r9d
mov rcx, r13
call fcn.005d4c60
cmp ebx, 3
jne 0x5ce4f8
mov rcx, qword [r13 + 0x68]
mov r8d, dword [r13 + 0x74]
dec r8d
mov word [rcx + r8*2], 0
add r8, r8
xor edx, edx
call sub.msvcrt.dll_memset
cmp dword [r13 + 0x9c], 0
jne 0x5ce4f8
mov dword [r13 + 0x94], 0
mov dword [r13 + 0x84], 0
mov dword [r13 + 0x1708], 0
mov r14, qword [rdi + 0x28]
mov rcx, r14
call fcn.005d4dc0
mov r12d, dword [r14 + 0x28]
mov eax, dword [rdi + 0x18]
cmp r12d, eax
cmova r12d, eax
test r12d, r12d
je 0x5ce554
mov rcx, qword [rdi + 0x10]
mov rdx, qword [r14 + 0x20]
mov r15d, r12d
mov r8, r15
call sub.msvcrt.dll_memcpy
add qword [rdi + 0x10], r15
add qword [r14 + 0x20], r15
add dword [rdi + 0x1c], r12d
mov eax, dword [rdi + 0x18]
sub eax, r12d
mov dword [rdi + 0x18], eax
mov ecx, dword [r14 + 0x28]
sub ecx, r12d
mov dword [r14 + 0x28], ecx
jne 0x5ce554
mov rcx, qword [r14 + 0x10]
mov qword [r14 + 0x20], rcx
test eax, eax
je 0x5cde03
xor eax, eax
cmp ebx, 4
jne 0x5cde0d
mov eax, dword [r13 + 0x2c]
test eax, eax
jle 0x5ce615
cmp eax, 2
mov eax, dword [rdi + 0x4c]
jne 0x5ce61f
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea ebx, [rdx + 1]
mov dword [r13 + 0x28], ebx
mov byte [rcx + rdx], al
mov al, byte [rdi + 0x4d]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea ebx, [rdx + 1]
mov dword [r13 + 0x28], ebx
mov byte [rcx + rdx], al
mov al, byte [rdi + 0x4e]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea ebx, [rdx + 1]
mov dword [r13 + 0x28], ebx
mov byte [rcx + rdx], al
mov al, byte [rdi + 0x4f]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea ebx, [rdx + 1]
mov dword [r13 + 0x28], ebx
mov byte [rcx + rdx], al
mov al, byte [rdi + 0xc]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea ebx, [rdx + 1]
mov dword [r13 + 0x28], ebx
mov byte [rcx + rdx], al
mov al, byte [rdi + 0xd]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea ebx, [rdx + 1]
mov dword [r13 + 0x28], ebx
mov byte [rcx + rdx], al
mov al, byte [rdi + 0xe]
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea ebx, [rdx + 1]
mov dword [r13 + 0x28], ebx
mov byte [rcx + rdx], al
movzx eax, byte [rdi + 0xf]
jmp 0x5ce663
mov eax, 1
jmp 0x5cde0d
mov ecx, eax
shr ecx, 0x10
shr eax, 0x18
mov rdx, qword [r13 + 0x10]
mov ebx, dword [r13 + 0x28]
lea esi, [rbx + 1]
mov dword [r13 + 0x28], esi
mov byte [rdx + rbx], al
mov rax, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea ebx, [rdx + 1]
mov dword [r13 + 0x28], ebx
mov byte [rax + rdx], cl
mov ecx, dword [rdi + 0x4c]
movzx eax, cx
mov rdx, qword [r13 + 0x10]
mov esi, dword [r13 + 0x28]
lea ebx, [rsi + 1]
mov dword [r13 + 0x28], ebx
mov byte [rdx + rsi], ch
mov rcx, qword [r13 + 0x10]
mov edx, dword [r13 + 0x28]
lea ebx, [rdx + 1]
mov dword [r13 + 0x28], ebx
mov byte [rcx + rdx], al
mov rbx, qword [rdi + 0x28]
mov rcx, rbx
call fcn.005d4dc0
mov esi, dword [rbx + 0x28]
mov eax, dword [rdi + 0x18]
cmp esi, eax
cmova esi, eax
test esi, esi
je 0x5ce6c3
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rbx + 0x20]
mov r14d, esi
mov r8, r14
call sub.msvcrt.dll_memcpy
add qword [rdi + 0x10], r14
add qword [rbx + 0x20], r14
add dword [rdi + 0x1c], esi
sub dword [rdi + 0x18], esi
mov eax, dword [rbx + 0x28]
sub eax, esi
mov dword [rbx + 0x28], eax
jne 0x5ce6c3
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x20], rax
mov eax, dword [r13 + 0x2c]
test eax, eax
jle 0x5ce6d1
neg eax
mov dword [r13 + 0x2c], eax
xor eax, eax
cmp dword [r13 + 0x28], 0
sete al
jmp 0x5cde0d
cmp dword [r13 + 0x16f4], 0
je 0x5ce488
mov eax, dword [r13 + 0x84]
test eax, eax
js 0x5ce71b
mov rdx, qword [r13 + 0x50]
add rdx, rax
jmp 0x5ce71d
cmp dword [r13 + 0x16f4], 0
je 0x5ce488
mov eax, dword [r13 + 0x84]
test eax, eax
jns 0x5ce6f9
xor edx, edx
mov r8d, dword [r13 + 0x94]
sub r8d, eax
xor r9d, r9d
mov rcx, r13
call fcn.005d4fe0
mov eax, dword [r13 + 0x94]
mov dword [r13 + 0x84], eax
mov r12, qword [r13]
mov r14, qword [r12 + 0x28]
mov rcx, r14
call fcn.005d4dc0
mov esi, dword [r14 + 0x28]
mov eax, dword [r12 + 0x18]
cmp esi, eax
cmova esi, eax
test esi, esi
je 0x5ce79e
mov rcx, qword [r12 + 0x10]
mov rdx, qword [r14 + 0x20]
mov r15d, esi
mov r8, r15
call sub.msvcrt.dll_memcpy
add qword [r12 + 0x10], r15
add qword [r14 + 0x20], r15
add dword [r12 + 0x1c], esi
sub dword [r12 + 0x18], esi
mov eax, dword [r14 + 0x28]
sub eax, esi
mov dword [r14 + 0x28], eax
jne 0x5ce79e
mov rax, qword [r14 + 0x10]
mov qword [r14 + 0x20], rax
mov rax, qword [r13]
cmp dword [rax + 0x18], 0
jne 0x5ce488
jmp 0x5ce466