Function at 0x10396c5
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.0100e5b9
lea ecx, [ebp - 0xc4]
call fcn.0100e5b9
lea ecx, [ebp - 0x15c]
call fcn.01033b2c
lea ecx, [ebp - 0x124]
call fcn.01033b2c
xor esi, esi
cmp dword [ebx + 0x40], esi
jne 0x1039d02
cmp byte [ebx + 0x2c], 0
je 0x1039d02
lea ecx, [ebp - 0xc4]
call fcn.0100e602
test al, al
je 0x1039d02
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.01033a87
test al, al
je 0x1039d02
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x1039763
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.01013c3c
push esi
mov dword [ebp - 0x20], eax
call fcn.01013c3c
cmp dword [ebp - 0x20], 0
mov esi, eax
mov dword [ebp - 0x34], esi
je 0x1039cf8
test esi, esi
je 0x1039cf0
lea eax, [ebp - 0xcc]
push eax
mov ecx, ebx
call fcn.010269fd
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 0x1039ccf
xor eax, eax
cmp dword [ebp - 0x3c], eax
mov byte [ebp - 5], 0
ja 0x10397f5
jb 0x10397ed
cmp dword [ebp - 0x40], edi
jae 0x10397f5
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 0x1039965
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.01025d5d
test al, al
je 0x1039952
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.01010082
test al, al
mov eax, dword [ebp - 0x48]
je 0x1039860
add dword [ebp - 0x38], eax
jmp 0x1039943
lea ecx, [esi + eax]
cmp ecx, edi
jbe 0x103986b
mov eax, edi
sub eax, esi
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x30], eax
call fcn.0100e602
test al, al
je 0x1039ce3
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.01033a87
test al, al
je 0x1039ce3
lea ecx, [ebp - 0x15c]
call fcn.010172c5
test al, al
jne 0x1039912
and dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0
jbe 0x103990c
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.01033af5
lea ecx, [ebp - 0x124]
call fcn.010172c5
test al, al
jne 0x1039901
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.0101f00e
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
jb 0x10398c5
mov byte [ebp - 5], 1
jmp 0x103993d
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 0x1039805
jmp 0x103995f
mov eax, dword [ebp - 0x38]
add eax, esi
cmp eax, edi
jae 0x103995f
mov byte [ebp - 5], 1
cmp byte [ebp - 5], 0
jne 0x10399e1
push dword [ebp - 0x1c]
lea eax, [ebp - 0xd4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
call fcn.0100e672
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push dword [eax + 4]
push dword [eax]
call fcn.01027abe
test al, al
je 0x1039c02
test esi, esi
je 0x1039c02
cmp esi, edi
je 0x1039c02
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 0x1039c02
cmp eax, 0xc00000bb
je 0x1039c02
test eax, eax
jge 0x1039c02
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 0x1039bed
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.01010082
test al, al
jne 0x1039a54
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.0100e70c
test al, al
jne 0x1039cb5
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.0101005c
test al, al
je 0x1039a5c
inc dword [ebp - 4]
jmp 0x1039bde
push dword [ebp - 4]
mov ecx, dword [ebx + 0x44]
call fcn.010336da
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.01010036
test al, al
je 0x1039ac0
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.01032c0b
test al, al
je 0x1039ce3
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 0x1039acc
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.0100e6e6
test al, al
je 0x1039b6e
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.01032c0b
test al, al
je 0x1039ce3
mov edi, dword [ebp - 0x2c]
jmp 0x1039b7d
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 0x1039bc7
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.0101f7ea
test al, al
jne 0x1039bbc
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.010177dc
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.01010036
test al, al
jne 0x1039b85
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.01032d86
test al, al
jne 0x10399fc
jmp 0x1039cb5
cmp dword [ebp + 0x10], 0
je 0x1039cb5
mov esi, dword [ebp - 0x1c]
push esi
push dword [ebp - 0xc]
lea eax, [ebp - 0xdc]
push dword [ebp - 0x10]
push eax
call fcn.0100e672
push dword [ebx + 0x34]
push dword [ebx + 0x30]
push dword [eax + 4]
push dword [eax]
call fcn.01010036
test al, al
je 0x1039cb5
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.0100e672
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.0100e6e6
test al, al
je 0x1039ca6
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.0100e672
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 0x1039cb2
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 0x10397db
push dword [ebp - 0x20]
call fcn.01013d79
push dword [ebp - 0x34]
call fcn.01013d79
mov bl, 1
jmp 0x1039d04
push dword [ebp - 0x20]
call fcn.01013d79
push dword [ebp - 0x34]
jmp 0x1039cfd
push dword [ebp - 0x20]
call fcn.01013d79
test esi, esi
je 0x1039d02
push esi
call fcn.01013d79
xor bl, bl
lea ecx, [ebp - 0x124]
call fcn.01033b9f
lea ecx, [ebp - 0x15c]
call fcn.01033b9f
lea ecx, [ebp - 0xc4]
call fcn.0100e5e5
lea ecx, [ebp - 0xb0]
call fcn.0100e5e5
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0xc