Function at 0x140056dd0
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, 0xb8
pxor xmm0, xmm0
xor eax, eax
lea rdi, [r8 + 8]
mov rbp, rcx
mov rcx, r8
mov rsi, rdx
and rdi, 0xfffffffffffffff8
xor edx, edx
mov qword [r8], 0
mov rbx, r8
mov qword [r8 + 0x6bc], 0
sub rcx, rdi
add ecx, 0x6c4
shr ecx, 3
rep stosq qword [rdi], rax
mov word [rsp + 0x60], dx
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
test rsi, rsi
jle 0x140056e52
mov rax, rbp
lea rcx, [rsi + rbp]
nop dword [rax + rax]
movzx edx, byte [rax]
add rax, 1
add word [rsp + rdx*2 + 0x40], 1
cmp rcx, rax
jne 0x140056e40
xor eax, eax
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x42]
cmp ax, 2
ja 0x140057380
movzx ecx, word [rsp + 0x44]
cmp cx, 4
ja 0x140057380
movzx r9d, word [rsp + 0x46]
cmp r9w, 8
ja 0x140057380
movzx r10d, word [rsp + 0x48]
cmp r10w, 0x10
ja 0x140057380
movzx r11d, word [rsp + 0x4a]
cmp r11w, 0x20
ja 0x140057380
movzx edi, word [rsp + 0x4c]
cmp di, 0x40
ja 0x140057380
movzx r12d, word [rsp + 0x4e]
cmp r12w, 0x80
ja 0x140057380
movzx r13d, word [rsp + 0x50]
cmp r13w, 0x100
ja 0x140057380
movzx r14d, word [rsp + 0x52]
cmp r14w, 0x200
ja 0x140057380
movzx r15d, word [rsp + 0x54]
cmp r15w, 0x400
ja 0x140057380
movzx edx, word [rsp + 0x56]
mov word [rsp + 0x38], dx
cmp dx, 0x800
ja 0x140057380
movzx edx, word [rsp + 0x58]
mov word [rsp + 0x34], dx
cmp dx, 0x1000
ja 0x140057380
movzx edx, word [rsp + 0x5a]
mov word [rsp + 0x3a], dx
cmp dx, 0x2000
ja 0x140057380
movzx edx, word [rsp + 0x5c]
mov word [rsp + 0x3c], dx
cmp dx, 0x4000
ja 0x140057380
movzx edx, word [rsp + 0x5e]
mov word [rsp + 0x3e], dx
cmp dx, 0x8000
ja 0x140057380
movzx edx, ax
movzx r8d, ax
pxor xmm0, xmm0
mov word [rbx + 0x24], ax
shl rdx, 0xf
add r8d, r8d
movups xmmword [rsp + 0x70], xmm0
mov dword [rbx + 0x44], edx
movzx edx, cx
mov dword [rsp + 0x78], r8d
add edx, r8d
mov word [rbx + 4], r8w
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
test cx, cx
je 0x140056fc3
lea r8d, [rdx - 1]
cmp r8d, 3
ja 0x1400573f8
mov r8d, edx
add eax, ecx
add edx, edx
movzx ecx, r9w
shl r8, 0xe
mov dword [rsp + 0x7c], edx
mov word [rbx + 6], dx
add edx, ecx
mov dword [rbx + 0x48], r8d
mov word [rbx + 0x26], ax
test r9w, r9w
je 0x140056ff6
lea ecx, [rdx - 1]
cmp ecx, 7
ja 0x1400573f8
mov ecx, edx
add eax, r9d
add edx, edx
shl rcx, 0xd
mov dword [rsp + 0x80], edx
mov dword [rbx + 0x4c], ecx
movzx ecx, r10w
mov word [rbx + 8], dx
add edx, ecx
mov word [rbx + 0x28], ax
test r10w, r10w
je 0x14005702b
lea ecx, [rdx - 1]
cmp ecx, 0xf
ja 0x1400573f8
mov ecx, edx
add eax, r10d
add edx, edx
shl rcx, 0xc
mov dword [rsp + 0x84], edx
mov dword [rbx + 0x50], ecx
movzx ecx, r11w
mov word [rbx + 0xa], dx
add edx, ecx
mov word [rbx + 0x2a], ax
test r11w, r11w
je 0x140057060
lea ecx, [rdx - 1]
cmp ecx, 0x1f
ja 0x1400573f8
mov ecx, edx
add eax, r11d
add edx, edx
shl rcx, 0xb
mov dword [rsp + 0x88], edx
mov dword [rbx + 0x54], ecx
movzx ecx, di
mov word [rbx + 0xc], dx
add edx, ecx
mov word [rbx + 0x2c], ax
test di, di
je 0x140057093
lea ecx, [rdx - 1]
cmp ecx, 0x3f
ja 0x1400573f8
mov ecx, edx
add eax, edi
add edx, edx
shl rcx, 0xa
mov dword [rsp + 0x8c], edx
mov dword [rbx + 0x58], ecx
movzx ecx, r12w
mov word [rbx + 0xe], dx
add edx, ecx
mov word [rbx + 0x2e], ax
test r12w, r12w
je 0x1400570c7
lea ecx, [rdx - 1]
cmp ecx, 0x7f
ja 0x1400573f8
mov ecx, edx
add eax, r12d
add edx, edx
shl rcx, 9
mov dword [rsp + 0x90], edx
mov dword [rbx + 0x5c], ecx
movzx ecx, r13w
mov word [rbx + 0x10], dx
add ecx, edx
mov word [rbx + 0x30], ax
test r13w, r13w
je 0x1400570ff
lea edx, [rcx - 1]
cmp edx, 0xff
ja 0x1400573f8
mov edx, ecx
add eax, r13d
add ecx, ecx
shl rdx, 8
mov dword [rsp + 0x94], ecx
mov dword [rbx + 0x60], edx
movzx edx, r14w
mov word [rbx + 0x12], cx
add edx, ecx
mov word [rbx + 0x32], ax
test r14w, r14w
je 0x140057137
lea ecx, [rdx - 1]
cmp ecx, 0x1ff
ja 0x1400573f8
mov ecx, edx
add eax, r14d
add edx, edx
shl rcx, 7
mov dword [rsp + 0x98], edx
mov dword [rbx + 0x64], ecx
movzx ecx, r15w
mov word [rbx + 0x14], dx
add edx, ecx
mov word [rbx + 0x34], ax
test r15w, r15w
je 0x14005716f
lea ecx, [rdx - 1]
cmp ecx, 0x3ff
ja 0x1400573f8
mov ecx, edx
add eax, r15d
add edx, edx
shl rcx, 6
mov dword [rsp + 0x9c], edx
mov dword [rbx + 0x68], ecx
movzx ecx, word [rsp + 0x38]
mov word [rbx + 0x16], dx
mov word [rbx + 0x36], ax
add edx, ecx
test cx, cx
je 0x1400571a7
lea ecx, [rdx - 1]
cmp ecx, 0x7ff
ja 0x1400573f8
mov ecx, edx
add ax, word [rsp + 0x38]
add edx, edx
shl rcx, 5
mov dword [rsp + 0xa0], edx
mov dword [rbx + 0x6c], ecx
movzx ecx, word [rsp + 0x34]
mov word [rbx + 0x18], dx
mov word [rbx + 0x38], ax
add edx, ecx
test cx, cx
je 0x1400571e1
lea ecx, [rdx - 1]
cmp ecx, 0xfff
ja 0x1400573f8
mov ecx, edx
add ax, word [rsp + 0x34]
add edx, edx
shl rcx, 4
mov dword [rsp + 0xa4], edx
mov dword [rbx + 0x70], ecx
movzx ecx, word [rsp + 0x3a]
mov word [rbx + 0x1a], dx
mov word [rbx + 0x3a], ax
add edx, ecx
test cx, cx
je 0x14005721b
lea ecx, [rdx - 1]
cmp ecx, 0x1fff
ja 0x1400573f8
mov ecx, edx
add ax, word [rsp + 0x3a]
add edx, edx
shl rcx, 3
mov dword [rsp + 0xa8], edx
mov dword [rbx + 0x74], ecx
movzx ecx, word [rsp + 0x3c]
mov word [rbx + 0x1c], dx
mov word [rbx + 0x3c], ax
add edx, ecx
test cx, cx
je 0x140057255
lea ecx, [rdx - 1]
cmp ecx, 0x3fff
ja 0x1400573f8
add ax, word [rsp + 0x3c]
mov ecx, edx
add edx, edx
mov word [rbx + 0x3e], ax
movzx eax, word [rsp + 0x3e]
shl rcx, 2
mov dword [rbx + 0x78], ecx
mov edi, eax
mov dword [rsp + 0xac], edx
add eax, edx
mov word [rbx + 0x1e], dx
test di, di
je 0x140057291
lea edx, [rax - 1]
cmp edx, 0x7fff
ja 0x1400573f8
mov dword [rbx + 0x80], 0x10000
add rax, rax
mov dword [rbx + 0x7c], eax
test rsi, rsi
jle 0x1400573df
xor r13d, r13d
mov rdi, rsi
jmp 0x1400572ce
add r14d, 1
mov dword [rsp + r15*4 + 0x70], r14d
add r13, 1
cmp rdi, r13
je 0x1400573df
movzx r12d, byte [rbp + r13]
test r12b, r12b
je 0x1400572c1
movzx r15d, r12b
movzx eax, word [rbx + r15*2 + 0x20]
mov r14d, dword [rsp + r15*4 + 0x70]
movzx ecx, word [rbx + r15*2]
add eax, r14d
sub eax, ecx
mov word [rbx + rax*2 + 0x84], r13w
cmp r12b, 9
ja 0x1400572b8
mov r8d, r12d
movzx ecx, r14w
movzx esi, r12b
shl r8d, 9
or r8d, r13d
mov dword [rsp + 0x34], r8d
call fcn.140014f80
mov rcx, qword [0x1400cd4d0]
mov word [rsp + 0x38], ax
call fcn.14009c080
cmp byte [rax], 0
jne 0x1400573df
movzx eax, word [rsp + 0x38]
mov ecx, 0x10
mov r8d, dword [rsp + 0x34]
sub ecx, esi
mov esi, 1
sar eax, cl
mov ecx, r12d
shl esi, cl
mov r9d, esi
nop word [rax + rax]
movzx ecx, ax
add eax, r9d
mov word [rbx + rcx*2 + 0x2c4], r8w
cmp ax, 0x1ff
jbe 0x140057360
jmp 0x1400572b8
mov edx, 8
mov ecx, 0x40
call fcn.14000b330
lea rdx, [0x1400b2ae0]
lea r9, str.inflate.nim
mov rcx, rax
mov rax, qword [0x1400cd300]
lea r8, str.initHuffman
mov qword [rcx + 0x10], rdx
mov qword [rcx], rax
lea rax, [0x1400b2bc0]
mov qword [rcx + 0x18], 0x24
mov qword [rcx + 0x20], rax
mov qword [rcx + 8], 0
mov qword [rsp + 0x20], 0x22
call fcn.14000b090
nop
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, 8
mov ecx, 0x40
call fcn.14000b330
lea rdx, [0x1400b2ae0]
lea r9, str.inflate.nim
mov rcx, rax
mov rax, qword [0x1400cd300]
lea r8, str.initHuffman
mov qword [rcx + 0x10], rdx
mov qword [rcx], rax
lea rax, [0x1400b2bc0]
mov qword [rcx + 0x18], 0x24
mov qword [rcx + 0x20], rax
mov qword [rcx + 8], 0
mov qword [rsp + 0x20], 0x2e
call fcn.14000b090
jmp 0x1400573df