Function at 0x21108dc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf0
mov edx, dword [esp + 0xf4]
mov eax, dword [edx + 4]
mov ecx, eax
push ebx
and ecx, 1
push esi
add ecx, eax
lea esi, [edx + 0xc]
push edi
lea edi, [ecx + edx + 8]
mov eax, esi
cmp eax, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], esi
jae 0x21108e0a
nop
cmp dword [eax], 0x6c627470
je 0x21108e16
mov ecx, dword [eax + 4]
mov ebx, ecx
and ebx, 1
add ebx, ecx
lea eax, [eax + ebx + 8]
cmp eax, edi
jb 0x21108df0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xf0
ret
mov ecx, dword [eax + 8]
add eax, 8
add ecx, eax
mov eax, dword [eax + 4]
push ebp
xor ebp, ebp
and eax, 0xffffff
cmp esi, edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], ebp
jae 0x21108edd
lea ecx, [ecx]
cmp dword [esi], 0x5453494c
jne 0x21108ebc
cmp dword [esi + 8], 0x6c707677
jne 0x21108ebc
mov eax, dword [esi + 4]
mov edx, eax
and edx, 1
add edx, eax
lea ebx, [edx + esi + 8]
lea edx, [esi + 0xc]
cmp edx, ebx
jae 0x21108ebc
cmp dword [edx], 0x5453494c
jne 0x21108eaa
cmp dword [edx + 8], 0x65766177
jne 0x21108eaa
mov edi, dword [esp + 0x1c]
mov eax, edx
sub eax, esi
sub eax, 0xc
xor ecx, ecx
test edi, edi
jbe 0x21108ea5
jmp 0x21108e90
mov edi, dword [esp + 0x4c]
cmp dword [edi + ecx*4], eax
jne 0x21108e9c
mov dword [edi + ecx*4], ebp
mov edi, dword [esp + 0x1c]
inc ecx
cmp ecx, edi
jb 0x21108e90
mov edi, dword [esp + 0x2c]
inc ebp
mov eax, dword [edx + 4]
mov ecx, eax
and ecx, 1
add ecx, eax
lea edx, [edx + ecx + 8]
cmp edx, ebx
jb 0x21108e66
mov eax, dword [esi + 4]
mov edx, eax
and edx, 1
add edx, eax
lea esi, [esi + edx + 8]
cmp esi, edi
jb 0x21108e40
mov edx, dword [esp + 0x104]
mov esi, dword [esp + 0x44]
mov eax, dword [edx + 4]
mov edi, eax
and edi, 1
add edi, eax
mov ecx, esi
lea eax, [edi + edx + 8]
cmp ecx, eax
mov dword [esp + 0x20], ecx
jae 0x21109290
lea esp, [esp]
mov ecx, dword [esp + 0x20]
cmp dword [ecx], 0x5453494c
jne 0x21109268
cmp dword [ecx + 8], 0x6c707677
jne 0x21109268
mov eax, dword [ecx + 4]
mov esi, eax
and esi, 1
add esi, eax
lea edi, [esi + ecx + 8]
lea ebx, [ecx + 0xc]
cmp ebx, edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], ebx
jae 0x21109264
mov esi, dword [esp + 0x38]
imul esi, esi, 0x64
jmp 0x21108f50
mov ebx, dword [esp + 0x24]
jmp 0x21108f50
cmp dword [ebx], 0x5453494c
jne 0x2110924a
cmp dword [ebx + 8], 0x65766177
jne 0x2110924a
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x38]
mov ecx, eax
and ecx, 1
add ecx, eax
add esi, 0x64
lea edi, [ecx + ebx + 8]
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x2c], esi
inc edx
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x34], edi
lea ebp, [ebx + 0xc]
mov dword [esp + 0x38], edx
je 0x21108feb
mov edx, dword [esp + 0x2c]
fild dword [esp + 0x2c]
test edx, edx
jge 0x21108fad
fadd dword [0x2114bd78]
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jge 0x21108fbf
fadd dword [0x2114bd78]
fdivp st(1)
fst dword [esp + 0x10]
fcomp dword [0x2114be0c]
fnstsw ax
test ah, 0x41
jne 0x21108fda
mov dword [esp + 0x10], 0x42c80000
mov edx, dword [esp + 0x10]
push edx
push 2
call ecx
test eax, eax
je 0x21109352
cmp ebp, edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x30], esi
jae 0x21109237
mov eax, dword [ebp]
cmp eax, 0x206d6370
jne 0x21109021
movzx eax, word [ebp + 0x16]
mov dword [ebp], 0x20746d66
mov dword [esp + 0x28], eax
jmp 0x2110921d
cmp eax, 0x20746d66
jne 0x21109073
mov ax, word [ebp + 8]
cmp ax, 0x11
mov dword [ebp], 0x6b6e756a
jne 0x2110904e
movzx ecx, word [ebp + 0x14]
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], ecx
jmp 0x2110921d
test ax, ax
jne 0x2110921d
mov ecx, 7
mov esi, ebp
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x30], 1
movsw word es:[edi], word [esi]
jmp 0x2110921d
cmp eax, 0x74636166
jne 0x2110908d
mov edx, dword [ebp + 8]
mov dword [ebp], 0x6b6e756a
mov dword [esp + 0x40], edx
jmp 0x2110921d
cmp eax, 0x61746164
jne 0x2110921d
mov eax, dword [esp + 0x28]
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
imul edi, dword [esp + 0x40]
lea eax, [edi + 9]
push eax
call sym.mss32.dll__AIL_mem_alloc_lock_4
mov esi, eax
xor ecx, ecx
cmp esi, ecx
mov dword [esp + 0x18], esi
je 0x2110935c
cmp dword [esp + 0x30], 1
lea eax, [ebp + 8]
mov dword [esi], 0x61746164
mov dword [esi + 4], edi
mov dword [esp + 0x48], eax
jne 0x21109104
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 4]
push ecx
push edx
lea ecx, [esi + 8]
push ecx
push eax
mov eax, dword [ebp + 4]
lea edx, [esp + 0x7a]
push edx
call fcn.21108860
add esp, 0x14
test eax, eax
je 0x2110935c
jmp 0x2110917c
cmp dword [esp + 0x28], 0x10
jne 0x2110913d
mov edx, dword [esp + 0x10]
lea eax, [esi + 8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebp + 4]
push ecx
mov dword [esp + 0x78], edx
push edi
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.211402eb
jmp 0x21109179
mov eax, dword [esp + 0x10]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ecx
lea edx, [esi + 8]
lea ecx, [esp + 0xb8]
push ecx
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 4]
push edx
mov dword [esp + 0xc0], eax
push edi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.21140590
add esp, 0x14
mov eax, dword [ebp + 4]
mov ecx, dword [esi + 4]
mov edx, eax
and edx, 1
lea eax, [edx + eax + 8]
mov edx, ecx
and edx, 1
lea ecx, [edx + ecx + 8]
lea edx, [eax + ebp]
mov ebx, ecx
sub ebx, eax
mov eax, dword [esp + 0x104]
mov edi, dword [eax + 4]
and edi, 1
sub edi, edx
mov dword [esp + 0x14], edx
add edi, dword [eax + 4]
mov edx, dword [esp + 0x14]
lea eax, [edi + eax + 8]
push eax
push edx
add ecx, ebp
push ecx
call fcn.211301c0
mov ecx, dword [esi + 4]
add ecx, 8
mov eax, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x114]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
mov edi, dword [esp + 0x48]
add ecx, ebx
mov dword [eax], ecx
add dword [esp + 0x40], ebx
mov eax, dword [esp + 0x110]
add dword [eax + 4], ebx
mov eax, dword [esp + 0x2c]
add dword [eax + 4], ebx
mov eax, dword [esp + 0x30]
add dword [eax + 4], ebx
mov ecx, dword [esp + 0x24]
add esp, 0xc
add edi, ebx
push ecx
mov dword [esp + 0x40], edi
call sym.mss32.dll__AIL_mem_free_lock_4
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp + 4]
mov edx, eax
and edx, 1
add edx, eax
mov eax, dword [esp + 0x34]
lea ebp, [edx + ebp + 8]
cmp ebp, eax
jb 0x21109003
mov edx, dword [esp + 0x104]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 4]
mov ebp, eax
and ebp, 1
add ebp, eax
lea ebx, [ebx + ebp + 8]
cmp ebx, edi
mov dword [esp + 0x24], ebx
jb 0x21108f47
mov esi, dword [esp + 0x44]
mov eax, dword [ecx + 4]
mov edi, eax
and edi, 1
add edi, eax
mov eax, dword [edx + 4]
lea ecx, [ecx + edi + 8]
mov edi, eax
and edi, 1
add edi, eax
lea eax, [edi + edx + 8]
cmp ecx, eax
mov dword [esp + 0x20], ecx
jb 0x21108f00
mov eax, dword [edx + 4]
mov ecx, eax
and ecx, 1
add ecx, eax
lea ecx, [ecx + edx + 8]
xor ebp, ebp
cmp esi, ecx
mov dword [esp + 0x18], ecx
jae 0x21109342
lea esp, [esp]
cmp dword [esi], 0x5453494c
jne 0x2110932c
cmp dword [esi + 8], 0x6c707677
jne 0x2110932c
mov eax, dword [esi + 4]
mov edx, eax
and edx, 1
add edx, eax
lea ebx, [edx + esi + 8]
lea edx, [esi + 0xc]
cmp edx, ebx
jae 0x2110932c
cmp dword [edx], 0x5453494c
jne 0x21109316
cmp dword [edx + 8], 0x65766177
jne 0x21109316
mov edi, dword [esp + 0x1c]
mov eax, edx
sub eax, esi
sub eax, 0xc
xor ecx, ecx
test edi, edi
jbe 0x21109315
jmp 0x21109300
mov edi, dword [esp + 0x4c]
cmp dword [edi + ecx*4], ebp
jne 0x2110930c
mov dword [edi + ecx*4], eax
mov edi, dword [esp + 0x1c]
inc ecx
cmp ecx, edi
jb 0x21109300
inc ebp
mov eax, dword [edx + 4]
mov ecx, eax
and ecx, 1
add ecx, eax
lea edx, [edx + ecx + 8]
cmp edx, ebx
jb 0x211092d6
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 4]
mov edx, eax
and edx, 1
add edx, eax
lea esi, [esi + edx + 8]
cmp esi, ecx
jb 0x211092b0
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xf0
ret
push str.Decompression_cancelled.
call sym.mss32.dll__AIL_set_error_4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xf0
ret