Function at 0x10213ed
Capabilities:
Compress data via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0xb0]
call fcn.010154ae
lea ecx, [ebp - 0xc4]
call fcn.010154ae
lea ecx, [ebp - 0x15c]
call fcn.01033d0d
lea ecx, [ebp - 0x124]
call fcn.01033d0d
xor esi, esi
cmp dword [ebx + 0x40], esi
jne 0x1021a2a
cmp byte [ebx + 0x2c], 0
je 0x1021a2a
lea ecx, [ebp - 0xc4]
call fcn.010154f7
test al, al
je 0x1021a2a
mov eax, dword [ebx + 0xc]
xor edi, edi
inc edi
push edi
push eax
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
push dword [ebx + 8]
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x124]
call fcn.01033c68
test al, al
je 0x1021a2a
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x102148b
mov dword [eax], esi
mov dword [eax + 4], esi
mov cl, byte [ebx + 0x2f]
mov esi, dword [ebx + 0xc]
shl edi, cl
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x2c], edi
call dword [eax + 8]
imul eax, esi
mov esi, eax
imul esi, edi
push esi
mov dword [ebp - 0x1c], eax
call fcn.0101300d
push esi
mov dword [ebp - 0x20], eax
call fcn.0101300d
cmp dword [ebp - 0x20], 0
mov esi, eax
mov dword [ebp - 0x34], esi
je 0x1021a20
test esi, esi
je 0x1021a18
lea eax, [ebp - 0xcc]
push eax
mov ecx, ebx
call fcn.0101f0ca
mov ecx, dword [eax]
mov eax, dword [eax + 4]
xor esi, esi
push esi
push dword [ebp - 0x1c]
push eax
push ecx
call sub.ntdll.dll__alldiv
mov dword [ebp - 0x40], eax
or eax, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x10219f7
xor eax, eax
cmp dword [ebp - 0x3c], eax
mov byte [ebp - 5], 0
ja 0x102151d
jb 0x1021515
cmp dword [ebp - 0x40], edi
jae 0x102151d
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov edi, eax
xor esi, esi
and dword [ebp - 0x38], esi
test edi, edi
mov dword [ebp - 4], esi
jbe 0x102168d
lea eax, [ebp - 0x48]
push eax
xor ecx, ecx
lea eax, [ebp - 0x18]
push eax
xor eax, eax
mov edx, esi
add edx, dword [ebp - 0x10]
adc ecx, dword [ebp - 0xc]
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp - 0x38]
add ecx, edx
adc eax, dword [ebp - 0x94]
push eax
push ecx
mov ecx, ebx
call fcn.0101f132
test al, al
je 0x102167a
push ecx
push ecx
mov eax, esp
or dword [eax], 0xffffffff
or dword [eax + 4], 0xffffffff
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0100f070
test al, al
mov eax, dword [ebp - 0x48]
je 0x1021588
add dword [ebp - 0x38], eax
jmp 0x102166b
lea ecx, [esi + eax]
cmp ecx, edi
jbe 0x1021593
mov eax, edi
sub eax, esi
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x30], eax
call fcn.010154f7
test al, al
je 0x1021a0b
push dword [ebp - 0x30]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x15c]
call fcn.01033c68
test al, al
je 0x1021a0b
lea ecx, [ebp - 0x15c]
call fcn.0101686a
test al, al
jne 0x102163a
and dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0
jbe 0x1021634
mov eax, dword [ebp - 4]
xor ecx, ecx
add eax, dword [ebp - 0x18]
adc ecx, dword [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x124]
call fcn.01033cd6
lea ecx, [ebp - 0x124]
call fcn.0101686a
test al, al
jne 0x1021629
mov eax, dword [ebp - 4]
xor ecx, ecx
add eax, dword [ebp - 0x18]
adc ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0101cc05
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
jb 0x10215ed
mov byte [ebp - 5], 1
jmp 0x1021665
mov ecx, dword [ebp - 0x30]
imul ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 4]
imul edi, dword [ebp - 0x1c]
add edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x154]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 4]
add esi, dword [ebp - 0x30]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x38]
add eax, esi
cmp eax, edi
jb 0x102152d
jmp 0x1021687
mov eax, dword [ebp - 0x38]
add eax, esi
cmp eax, edi
jae 0x1021687
mov byte [ebp - 5], 1
cmp byte [ebp - 5], 0
jne 0x1021709
push dword [ebp - 0x1c]
lea eax, [ebp - 0xd4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
call fcn.0100bced
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push dword [eax + 4]
push dword [eax]
call fcn.0101f026
test al, al
je 0x102192a
test esi, esi
je 0x102192a
cmp esi, edi
je 0x102192a
imul esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x1c]
imul eax, edi
push esi
push dword [ebp - 0x20]
push eax
push dword [ebp - 0x34]
push 2
call dword [sym.imp.ntdll.dll_RtlDecompressBuffer]
cmp eax, 0xc0000002
je 0x102192a
cmp eax, 0xc00000bb
je 0x102192a
test eax, eax
jge 0x102192a
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebx + 0x49], 1
push 0
jmp 0x1021915
push ecx
push ecx
mov eax, esp
or dword [eax], 0xffffffff
or dword [eax + 4], 0xffffffff
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0100f070
test al, al
jne 0x102177c
xor esi, esi
mov eax, edi
add eax, dword [ebp - 0x10]
mov ecx, esi
adc ecx, dword [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0100dded
test al, al
jne 0x10219dd
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x44]
push dword [ebp - 0x10]
adc ecx, dword [ebp - 0x24]
push ecx
push eax
call fcn.0100fba0
test al, al
je 0x1021784
inc dword [ebp - 4]
jmp 0x1021906
push dword [ebp - 4]
mov ecx, dword [ebx + 0x44]
call fcn.0102cdc0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0100f04a
test al, al
je 0x10217e8
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebx + 0x44]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0102c2f1
test al, al
je 0x1021a0b
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x24]
add eax, dword [ebp - 0x18]
adc ecx, dword [ebp - 0x14]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
jmp 0x10217f4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov eax, edi
add eax, dword [ebp - 0x10]
mov ecx, esi
adc ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x44]
mov edx, esi
add edx, dword [ebp - 0x28]
push ecx
push dword [ebp - 0x88]
adc eax, dword [ebp - 0x24]
push eax
push edx
call fcn.0100ddc7
test al, al
je 0x1021896
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x68], edi
sbb ecx, dword [ebp - 0x24]
mov edi, eax
add edi, dword [ebp - 0x18]
mov edx, ecx
adc edx, dword [ebp - 0x14]
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x68]
add edx, edi
mov dword [ebp - 0x78], edx
mov edx, dword [ebp - 0x64]
adc edx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x54], edx
xor edx, edx
sub esi, eax
mov eax, dword [ebp - 0x44]
sbb eax, ecx
mov ecx, dword [ebp - 0x2c]
sub esi, ecx
sbb eax, edx
push eax
mov eax, ecx
push esi
push dword [ebp - 0x7c]
xor ecx, ecx
add eax, dword [ebp - 0x10]
push edi
adc ecx, dword [ebp - 0xc]
mov dword [ebp - 0x58], edi
push ecx
mov ecx, dword [ebx + 0x44]
push eax
call fcn.0102c2f1
test al, al
je 0x1021a0b
mov edi, dword [ebp - 0x2c]
jmp 0x10218a5
add esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x44]
adc eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
jmp 0x10218ef
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, esp
push dword [ebp - 0x4c]
and dword [eax + 4], 0
push dword [ebp - 0x50]
xor esi, esi
inc esi
mov dword [eax], esi
call fcn.0101d3e1
test al, al
jne 0x10218e4
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
push dword [ebp - 0x4c]
and dword [eax + 4], 0
push dword [ebp - 0x50]
mov dword [eax], esi
call fcn.0100f6ee
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
add eax, esi
adc ecx, 0
push dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x58]
mov dword [ebp - 0x4c], ecx
push ecx
push eax
call fcn.0100f04a
test al, al
jne 0x10218ad
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
mov ecx, dword [ebx + 0x44]
call fcn.0102c46c
test al, al
jne 0x1021724
jmp 0x10219dd
cmp dword [ebp + 0x10], 0
je 0x10219dd
mov esi, dword [ebp - 0x1c]
push esi
push dword [ebp - 0xc]
lea eax, [ebp - 0xdc]
push dword [ebp - 0x10]
push eax
call fcn.0100bced
push dword [ebx + 0x34]
push dword [ebx + 0x30]
push dword [eax + 4]
push dword [eax]
call fcn.0100f04a
test al, al
je 0x10219dd
push dword [ebx + 0x34]
imul esi, edi
push dword [ebx + 0x30]
xor eax, eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x8c], eax
push dword [ebp - 0xc]
lea eax, [ebp - 0xec]
push dword [ebp - 0x10]
mov edi, esi
push eax
call fcn.0100bced
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add edi, ecx
mov ecx, dword [ebp - 0x8c]
adc ecx, eax
push ecx
push edi
call fcn.0100ddc7
test al, al
je 0x10219ce
push dword [ebp - 0x1c]
mov esi, dword [ebx + 0x30]
push dword [ebp - 0xc]
mov edi, dword [ebx + 0x34]
push dword [ebp - 0x10]
lea eax, [ebp - 0xe4]
push eax
call fcn.0100bced
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub esi, ecx
sbb edi, eax
mov eax, dword [ebp + 0x10]
add dword [eax], esi
adc dword [eax + 4], edi
jmp 0x10219da
xor eax, eax
mov ecx, eax
mov eax, dword [ebp + 0x10]
add dword [eax], esi
adc dword [eax + 4], ecx
mov edi, dword [ebp - 0x2c]
xor eax, eax
sub dword [ebp - 0x40], edi
sbb dword [ebp - 0x3c], eax
add dword [ebp - 0x10], edi
adc dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
jne 0x1021503
push dword [ebp - 0x20]
call fcn.0101314a
push dword [ebp - 0x34]
call fcn.0101314a
mov bl, 1
jmp 0x1021a2c
push dword [ebp - 0x20]
call fcn.0101314a
push dword [ebp - 0x34]
jmp 0x1021a25
push dword [ebp - 0x20]
call fcn.0101314a
test esi, esi
je 0x1021a2a
push esi
call fcn.0101314a
xor bl, bl
lea ecx, [ebp - 0x124]
call fcn.01033d76
lea ecx, [ebp - 0x15c]
call fcn.01033d76
lea ecx, [ebp - 0xc4]
call fcn.010154da
lea ecx, [ebp - 0xb0]
call fcn.010154da
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0xc