Function at 0x1023803
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.010110a4
lea ecx, [ebp - 0xc0]
call fcn.010110a4
lea ecx, [ebp - 0x158]
call fcn.01036137
lea ecx, [ebp - 0x120]
call fcn.01036137
xor esi, esi
cmp dword [ebx + 0x40], esi
jne 0x1023e24
cmp byte [ebx + 0x2c], 0
je 0x1023e24
lea ecx, [ebp - 0xc0]
call fcn.010110ed
test al, al
je 0x1023e24
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.01036092
test al, al
je 0x1023e24
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x10238a1
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.01013ebd
push esi
mov dword [ebp - 0x20], eax
call fcn.01013ebd
cmp dword [ebp - 0x20], 0
mov esi, eax
mov dword [ebp - 0x34], esi
je 0x1023e1a
test esi, esi
je 0x1023e12
lea eax, [ebp - 0xc8]
push eax
mov ecx, ebx
call fcn.010214f5
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 0x1023df1
mov eax, dword [ebp - 0x4c]
cmp eax, edi
mov byte [ebp - 5], 0
jae 0x102391d
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 0x1023a8d
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.0102155d
test al, al
je 0x1023a7a
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.0100e89e
test al, al
mov eax, dword [ebp - 0x40]
je 0x1023988
add dword [ebp - 0x38], eax
jmp 0x1023a6b
lea ecx, [esi + eax]
cmp ecx, edi
jbe 0x1023993
mov eax, edi
sub eax, esi
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x30], eax
call fcn.010110ed
test al, al
je 0x1023e05
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.01036092
test al, al
je 0x1023e05
lea ecx, [ebp - 0x158]
call fcn.01010e86
test al, al
jne 0x1023a3a
and dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0
jbe 0x1023a34
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.01036100
lea ecx, [ebp - 0x120]
call fcn.01010e86
test al, al
jne 0x1023a29
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.01017d6c
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
jb 0x10239ed
mov byte [ebp - 5], 1
jmp 0x1023a65
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 0x102392d
jmp 0x1023a87
mov eax, dword [ebp - 0x38]
add eax, esi
cmp eax, edi
jae 0x1023a87
mov byte [ebp - 5], 1
cmp byte [ebp - 5], 0
jne 0x1023b09
push dword [ebp - 0x1c]
lea eax, [ebp - 0xd0]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
call fcn.0100e7b8
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push dword [eax + 4]
push dword [eax]
call fcn.01021451
test al, al
je 0x1023d2a
test esi, esi
je 0x1023d2a
cmp esi, edi
je 0x1023d2a
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 0x1023d2a
cmp eax, 0xc00000bb
je 0x1023d2a
test eax, eax
jge 0x1023d2a
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 0x1023d15
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.0100e89e
test al, al
jne 0x1023b7c
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.01012078
test al, al
jne 0x1023ddd
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.0100e852
test al, al
je 0x1023b84
inc dword [ebp - 4]
jmp 0x1023d06
push dword [ebp - 4]
mov ecx, dword [ebx + 0x44]
call fcn.0102f2e7
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0100e82c
test al, al
je 0x1023be8
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.0102e723
test al, al
je 0x1023e05
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 0x1023bf4
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.0100e878
test al, al
je 0x1023c96
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.0102e723
test al, al
je 0x1023e05
mov edi, dword [ebp - 0x2c]
jmp 0x1023ca5
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 0x1023cef
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.01018548
test al, al
jne 0x1023ce4
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.01013c19
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.0100e82c
test al, al
jne 0x1023cad
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.0102e89e
test al, al
jne 0x1023b24
jmp 0x1023ddd
cmp dword [ebp + 0x10], 0
je 0x1023ddd
mov esi, dword [ebp - 0x1c]
push esi
push dword [ebp - 0xc]
lea eax, [ebp - 0xd8]
push dword [ebp - 0x10]
push eax
call fcn.0100e7b8
push dword [ebx + 0x34]
push dword [ebx + 0x30]
push dword [eax + 4]
push dword [eax]
call fcn.0100e82c
test al, al
je 0x1023ddd
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.0100e7b8
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.0100e878
test al, al
je 0x1023dce
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.0100e7b8
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 0x1023dda
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 0x102390d
push dword [ebp - 0x20]
call fcn.01013ffa
push dword [ebp - 0x34]
call fcn.01013ffa
mov bl, 1
jmp 0x1023e26
push dword [ebp - 0x20]
call fcn.01013ffa
push dword [ebp - 0x34]
jmp 0x1023e1f
push dword [ebp - 0x20]
call fcn.01013ffa
test esi, esi
je 0x1023e24
push esi
call fcn.01013ffa
xor bl, bl
lea ecx, [ebp - 0x120]
call fcn.010361a0
lea ecx, [ebp - 0x158]
call fcn.010361a0
lea ecx, [ebp - 0xc0]
call fcn.010110d0
lea ecx, [ebp - 0xac]
call fcn.010110d0
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0xc