Function at 0x10213e5
Capabilities:
Compress data via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0xac]
call fcn.01015476
lea ecx, [ebp - 0xc0]
call fcn.01015476
lea ecx, [ebp - 0x158]
call fcn.01033cf1
lea ecx, [ebp - 0x120]
call fcn.01033cf1
xor esi, esi
cmp dword [ebx + 0x40], esi
jne 0x1021a06
cmp byte [ebx + 0x2c], 0
je 0x1021a06
lea ecx, [ebp - 0xc0]
call fcn.010154bf
test al, al
je 0x1021a06
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 - 0xc0]
push eax
lea ecx, [ebp - 0x120]
call fcn.01033c4c
test al, al
je 0x1021a06
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x1021483
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.01012fd5
push esi
mov dword [ebp - 0x20], eax
call fcn.01012fd5
cmp dword [ebp - 0x20], 0
mov esi, eax
mov dword [ebp - 0x34], esi
je 0x10219fc
test esi, esi
je 0x10219f4
lea eax, [ebp - 0xc8]
push eax
mov ecx, ebx
call fcn.0101f0c2
mov eax, dword [eax]
xor edx, edx
div dword [ebp - 0x1c]
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
test eax, eax
mov dword [ebp - 0x4c], eax
je 0x10219d3
mov eax, dword [ebp - 0x4c]
cmp eax, edi
mov byte [ebp - 5], 0
jae 0x10214ff
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 0x102166f
lea eax, [ebp - 0x40]
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 - 0x90], ecx
mov ecx, dword [ebp - 0x38]
add ecx, edx
adc eax, dword [ebp - 0x90]
push eax
push ecx
mov ecx, ebx
call fcn.0101f12a
test al, al
je 0x102165c
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.0100f040
test al, al
mov eax, dword [ebp - 0x40]
je 0x102156a
add dword [ebp - 0x38], eax
jmp 0x102164d
lea ecx, [esi + eax]
cmp ecx, edi
jbe 0x1021575
mov eax, edi
sub eax, esi
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x30], eax
call fcn.010154bf
test al, al
je 0x10219e7
push dword [ebp - 0x30]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0xac]
push dword [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x158]
call fcn.01033c4c
test al, al
je 0x10219e7
lea ecx, [ebp - 0x158]
call fcn.01016832
test al, al
jne 0x102161c
and dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0
jbe 0x1021616
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 - 0x120]
call fcn.01033cba
lea ecx, [ebp - 0x120]
call fcn.01016832
test al, al
jne 0x102160b
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.0101cbbf
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
jb 0x10215cf
mov byte [ebp - 5], 1
jmp 0x1021647
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 - 0x150]
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 0x102150f
jmp 0x1021669
mov eax, dword [ebp - 0x38]
add eax, esi
cmp eax, edi
jae 0x1021669
mov byte [ebp - 5], 1
cmp byte [ebp - 5], 0
jne 0x10216eb
push dword [ebp - 0x1c]
lea eax, [ebp - 0xd0]
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.0101f01e
test al, al
je 0x102190c
test esi, esi
je 0x102190c
cmp esi, edi
je 0x102190c
imul esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x98]
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 0x102190c
cmp eax, 0xc00000bb
je 0x102190c
test eax, eax
jge 0x102190c
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebx + 0x49], 1
push 0
jmp 0x10218f7
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.0100f040
test al, al
jne 0x102175e
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.0100ddbd
test al, al
jne 0x10219bf
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x10]
adc ecx, dword [ebp - 0x24]
push ecx
push eax
call fcn.0100fb70
test al, al
je 0x1021766
inc dword [ebp - 4]
jmp 0x10218e8
push dword [ebp - 4]
mov ecx, dword [ebx + 0x44]
call fcn.0102cd9c
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0100f01a
test al, al
je 0x10217ca
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.0102c2cd
test al, al
je 0x10219e7
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 - 0x5c], eax
mov dword [ebp - 0x58], ecx
jmp 0x10217d6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
mov eax, edi
add eax, dword [ebp - 0x10]
mov ecx, esi
adc ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x3c]
mov edx, esi
add edx, dword [ebp - 0x28]
push ecx
push dword [ebp - 0x84]
adc eax, dword [ebp - 0x24]
push eax
push edx
call fcn.0100dd97
test al, al
je 0x1021878
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], 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 - 0x68], edx
mov edx, dword [ebp - 0x64]
add edx, edi
mov dword [ebp - 0x74], edx
mov edx, dword [ebp - 0x60]
adc edx, dword [ebp - 0x68]
mov edi, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x50], edx
xor edx, edx
sub esi, eax
mov eax, dword [ebp - 0x3c]
sbb eax, ecx
mov ecx, dword [ebp - 0x2c]
sub esi, ecx
sbb eax, edx
push eax
mov eax, ecx
push esi
push dword [ebp - 0x78]
xor ecx, ecx
add eax, dword [ebp - 0x10]
push edi
adc ecx, dword [ebp - 0xc]
mov dword [ebp - 0x54], edi
push ecx
mov ecx, dword [ebx + 0x44]
push eax
call fcn.0102c2cd
test al, al
je 0x10219e7
mov edi, dword [ebp - 0x2c]
jmp 0x1021887
add esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x3c]
adc eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
jmp 0x10218d1
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, esp
push dword [ebp - 0x44]
and dword [eax + 4], 0
push dword [ebp - 0x48]
xor esi, esi
inc esi
mov dword [eax], esi
call fcn.0101d39b
test al, al
jne 0x10218c6
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
push dword [ebp - 0x44]
and dword [eax + 4], 0
push dword [ebp - 0x48]
mov dword [eax], esi
call fcn.0100f6be
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
add eax, esi
adc ecx, 0
push dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x54]
mov dword [ebp - 0x44], ecx
push ecx
push eax
call fcn.0100f01a
test al, al
jne 0x102188f
lea eax, [ebp - 0x40]
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.0102c448
test al, al
jne 0x1021706
jmp 0x10219bf
cmp dword [ebp + 0x10], 0
je 0x10219bf
mov esi, dword [ebp - 0x1c]
push esi
push dword [ebp - 0xc]
lea eax, [ebp - 0xd8]
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.0100f01a
test al, al
je 0x10219bf
push dword [ebx + 0x34]
imul esi, edi
push dword [ebx + 0x30]
xor eax, eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x88], eax
push dword [ebp - 0xc]
lea eax, [ebp - 0xe8]
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 - 0x88]
adc ecx, eax
push ecx
push edi
call fcn.0100dd97
test al, al
je 0x10219b0
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 - 0xe0]
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 0x10219bc
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]
sub dword [ebp - 0x4c], edi
xor eax, eax
add dword [ebp - 0x10], edi
adc dword [ebp - 0xc], eax
cmp dword [ebp - 0x4c], eax
jne 0x10214ef
push dword [ebp - 0x20]
call fcn.01013112
push dword [ebp - 0x34]
call fcn.01013112
mov bl, 1
jmp 0x1021a08
push dword [ebp - 0x20]
call fcn.01013112
push dword [ebp - 0x34]
jmp 0x1021a01
push dword [ebp - 0x20]
call fcn.01013112
test esi, esi
je 0x1021a06
push esi
call fcn.01013112
xor bl, bl
lea ecx, [ebp - 0x120]
call fcn.01033d5a
lea ecx, [ebp - 0x158]
call fcn.01033d5a
lea ecx, [ebp - 0xc0]
call fcn.010154a2
lea ecx, [ebp - 0xac]
call fcn.010154a2
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0xc