Function at 0x40f550
Capabilities:
Decompress data using quicklz

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x46e818]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x471338]
lea edx, [ebp - 0x18]
push ebx
push esi
push edi
mov eax, dword [ecx]
push edx
call dword [eax + 0x40]
test eax, eax
jne 0x40f597
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
sbb eax, dword [ebp - 0xc]
push 0
push dword [ebp - 8]
push eax
push ecx
call fcn.004433c0
mov edi, eax
mov ebx, edx
jmp 0x40f5b9
xorps xmm0, xmm0
mov dword [ebp - 8], 0
movlpd qword [ebp - 0x28c], xmm0
mov ebx, dword [ebp - 0x288]
mov edi, dword [ebp - 0x28c]
movups xmmword [ebp - 0x18], xmm0
xor esi, esi
push esi
push str.DEL_u
push 0x46feb0
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], esi
call fcn.00415400
push 0x400
push 0x46feb0
push 0x459abc
push 0x46feb0
call fcn.00406f60
add esp, 0x1c
test eax, eax
je 0x40f682
nop dword [eax + eax]
mov ecx, dword [0x471338]
lea eax, [ebp - 0x260]
push eax
push 0x46feb0
call fcn.0041dec0
test eax, eax
jne 0x40f643
mov edx, dword [ebp - 8]
xor esi, esi
mov ecx, edx
mov eax, esi
add ecx, dword [ebp - 0x240]
adc eax, dword [ebp - 0x23c]
sub ecx, 1
sbb eax, esi
neg edx
adc esi, esi
and ecx, edx
neg esi
and eax, esi
add edi, ecx
adc ebx, eax
mov eax, dword [ebp - 0x264]
inc eax
push eax
push str.DEL_u
push 0x46feb0
mov dword [ebp - 0x264], eax
call fcn.00415400
push 0x400
push 0x46feb0
push 0x459abc
push 0x46feb0
call fcn.00406f60
add esp, 0x1c
test eax, eax
jne 0x40f600
xor esi, esi
push 0
push str.ADD_u
push 0x46feb0
mov dword [ebp - 0x274], 0
call fcn.00415400
push 0x400
push 0x46feb0
push 0x459abc
push 0x46feb0
call fcn.00406f60
add esp, 0x1c
test eax, eax
je 0x40f9e3
push 0x7c
push 0x46feb0
call fcn.004444ba
add esp, 8
test eax, eax
je 0x40f6f2
xor ecx, ecx
mov word [eax], cx
add eax, 2
push str.initrmfs
push eax
call fcn.00447067
add esp, 8
test eax, eax
je 0x40f9a2
push 0x2c
push 0x46feb0
call fcn.004444ba
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40f775
xor eax, eax
mov word [ecx], ax
cmp word [ecx + 2], 0x3e
push 0x2c
sete al
lea eax, [eax*2 + 2]
add eax, ecx
push eax
mov dword [ebp - 0x264], eax
call fcn.004444ba
mov ecx, dword [ebp - 0x264]
add esp, 8
mov dword [ebp - 0x26c], 0
mov edx, ecx
test eax, eax
je 0x40f7a0
xor edx, edx
mov word [eax], dx
add eax, 2
mov dword [ebp - 0x26c], eax
mov edx, ecx
je 0x40f7a0
push eax
call fcn.004163d0
mov edx, dword [ebp - 0x264]
add esp, 4
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x40f9a2
jmp 0x40f7a0
mov ecx, 0x46feb0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f780
sub ecx, edx
mov dword [ebp - 0x26c], 0
sar ecx, 1
lea edx, [ecx*2 + 0x46feb0]
push edx
call fcn.004163d0
add esp, 4
mov dword [ebp - 0x264], eax
test eax, eax
je 0x40f994
mov ecx, dword [0x470af4]
mov eax, 0x103
sub ecx, 0x470f20
mov dword [0x471128], 0
shr ecx, 1
mov edx, 0x46feb0
sub eax, ecx
cmp word [0x4706b0], 0
mov dword [ebp - 0x27c], eax
mov ecx, 0x459ca4
je 0x40f804
cmp word [0x46feb0], 0x3a
jne 0x40f804
mov ecx, 0x4706b0
mov edx, 0x46feb2
cmp word [edx], 0x3e
lea eax, [edx + 2]
cmovne eax, edx
push eax
push ecx
push 0x459ebc
push dword [ebp - 0x27c]
push dword [0x470af4]
call fcn.004153c0
add esp, 0x14
call fcn.00404640
mov ecx, dword [0x470af4]
mov dword [ebp - 0x270], eax
cmp word [ecx], 0x3a
jne 0x40f857
cmp dword [0x471128], 0
jne 0x40f852
cmp dword [0x471338], 0
je 0x40f874
add ecx, 2
jmp 0x40f874
push ecx
call fcn.0042b4c0
add esp, 4
mov ecx, 0x470f20
test eax, eax
mov eax, dword [ebp - 0x270]
cmovne ecx, dword [0x470af4]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x278]
push eax
push ecx
call fcn.0042a160
add esp, 0x10
test eax, eax
jne 0x40f986
nop dword [eax]
nop dword [eax + eax]
inc esi
test byte [ebp - 0x260], 0x18
mov dword [ebp - 0x268], esi
jne 0x40f94f
mov edx, dword [ebp - 8]
xor esi, esi
mov ecx, edx
mov eax, esi
add ecx, dword [ebp - 0x240]
adc eax, dword [ebp - 0x23c]
sub ecx, 1
sbb eax, esi
neg edx
adc esi, esi
and ecx, edx
neg esi
and eax, esi
sub edi, ecx
mov ecx, dword [ebp - 0x26c]
sbb ebx, eax
test ecx, ecx
lea eax, [ebp - 0x218]
cmovne eax, ecx
push eax
push dword [ebp - 0x264]
push 0x400
push 0x46feb0
call fcn.0042b390
mov ecx, dword [0x471338]
lea eax, [ebp - 0x260]
add esp, 0x10
push eax
push 0x46feb0
call fcn.0041dec0
test eax, eax
jne 0x40f949
mov edx, dword [ebp - 8]
xor esi, esi
mov ecx, edx
mov eax, esi
add ecx, dword [ebp - 0x240]
adc eax, dword [ebp - 0x23c]
sub ecx, 1
sbb eax, esi
neg edx
adc esi, esi
and ecx, edx
neg esi
and eax, esi
add edi, ecx
adc ebx, eax
mov esi, dword [ebp - 0x268]
push dword [ebp - 0x270]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x278]
call fcn.0042a1b0
add esp, 0xc
test eax, eax
je 0x40f8a0
push dword [ebp - 0x270]
push dword [ebp - 0x278]
call fcn.0042a1e0
add esp, 8
push dword [ebp - 0x264]
call fcn.00442e59
add esp, 4
push dword [ebp - 0x26c]
call fcn.00442e59
add esp, 4
mov eax, dword [ebp - 0x274]
inc eax
push eax
push str.ADD_u
push 0x46feb0
mov dword [ebp - 0x274], eax
call fcn.00415400
push 0x400
push 0x46feb0
push 0x459abc
push 0x46feb0
call fcn.00406f60
add esp, 0x1c
test eax, eax
jne 0x40f6c1
mov esi, dword [0x470ae4]
mov dword [ebp - 0x264], esi
test esi, esi
je 0x40fd14
nop word [eax + eax]
xor ecx, ecx
lea edx, [esi + 4]
mov eax, 1
mov dword [ebp - 0x280], ecx
add esi, 0x94
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x26c], esi
nop dword [eax + eax]
cmp byte [esi + ecx], 0
jne 0x40fcd9
mov esi, dword [edx]
test esi, esi
je 0x40fcd3
mov ecx, dword [ebp - 0x264]
test dword [ecx], eax
mov ecx, dword [ebp - 0x280]
je 0x40fcd3
push 0x2c
push esi
call fcn.004444ba
add esp, 8
test eax, eax
je 0x40fa85
xor ecx, ecx
mov word [eax], cx
cmp word [eax + 2], 0x3e
sete cl
lea ecx, [ecx*2 + 2]
add ecx, eax
mov dword [ebp - 0x278], ecx
jmp 0x40faa8
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fa90
sub ecx, edx
sar ecx, 1
lea eax, [esi + ecx*2]
mov dword [ebp - 0x278], eax
push 0x3b
push esi
call fcn.004444ba
add esp, 8
mov dword [ebp - 0x288], eax
test eax, eax
je 0x40fac2
xor ecx, ecx
mov word [eax], cx
mov eax, dword [0x470af4]
mov ecx, 0x103
sub eax, 0x470f20
mov dword [0x471128], 0
shr eax, 1
mov edx, 0x459ca4
sub ecx, eax
cmp word [0x4706b0], 0
je 0x40fafc
cmp word [esi], 0x3a
jne 0x40fafc
mov edx, 0x4706b0
add esi, 2
cmp word [esi], 0x3e
lea eax, [esi + 2]
cmovne eax, esi
push eax
push edx
push 0x459ebc
push ecx
push dword [0x470af4]
call fcn.004153c0
add esp, 0x14
call fcn.00404640
mov ecx, dword [0x470af4]
mov dword [ebp - 0x284], eax
cmp word [ecx], 0x3a
jne 0x40fb4a
cmp dword [0x471128], 0
jne 0x40fb45
cmp dword [0x471338], 0
je 0x40fb67
add ecx, 2
jmp 0x40fb67
push ecx
call fcn.0042b4c0
add esp, 4
mov ecx, 0x470f20
test eax, eax
mov eax, dword [ebp - 0x284]
cmovne ecx, dword [0x470af4]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x27c]
push eax
push ecx
call fcn.0042a160
add esp, 0x10
test eax, eax
jne 0x40fc60
mov esi, dword [ebp - 0x284]
nop dword [eax]
inc dword [ebp - 0x268]
test byte [ebp - 0x260], 0x18
jne 0x40fc33
mov edx, dword [ebp - 8]
xor esi, esi
mov ecx, edx
mov eax, esi
add ecx, dword [ebp - 0x240]
adc eax, dword [ebp - 0x23c]
sub ecx, 1
sbb eax, esi
neg edx
adc esi, esi
and ecx, edx
neg esi
and eax, esi
sub edi, ecx
sbb ebx, eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x278]
push 0x400
push 0x46feb0
call fcn.0042b390
mov ecx, dword [0x471338]
lea eax, [ebp - 0x260]
add esp, 0x10
push eax
push 0x46feb0
call fcn.0041dec0
test eax, eax
jne 0x40fc2d
mov edx, dword [ebp - 8]
xor esi, esi
mov ecx, edx
mov eax, esi
add ecx, dword [ebp - 0x240]
adc eax, dword [ebp - 0x23c]
sub ecx, 1
sbb eax, esi
neg edx
adc esi, esi
and ecx, edx
neg esi
and eax, esi
add edi, ecx
adc ebx, eax
mov esi, dword [ebp - 0x284]
push esi
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x27c]
call fcn.0042a1b0
add esp, 0xc
test eax, eax
je 0x40fb90
push esi
push dword [ebp - 0x27c]
call fcn.0042a1e0
add esp, 8
mov eax, dword [ebp - 0x288]
test eax, eax
je 0x40fc7d
mov ecx, 0x3b
mov word [eax], cx
add eax, 2
mov esi, eax
jne 0x40faa8
mov ecx, dword [ebp - 0x278]
test ecx, ecx
je 0x40fcc1
cmp word [ecx], 0
mov esi, dword [ebp - 0x26c]
je 0x40fcad
xor eax, eax
mov edx, 0x2c
cmp word [ecx - 2], 0x3e
setne al
lea eax, [eax*2 - 4]
mov word [eax + ecx], dx
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x280]
mov edx, dword [ebp - 0x274]
jmp 0x40fcd9
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x280]
mov edx, dword [ebp - 0x274]
mov esi, dword [ebp - 0x26c]
inc ecx
rol eax, 1
add edx, 4
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x270], eax
cmp ecx, 0xc
jl 0x40fa30
mov esi, dword [ebp - 0x264]
mov esi, dword [esi + 0xa0]
mov dword [ebp - 0x264], esi
test esi, esi
jne 0x40fa00
test ebx, ebx
jg 0x410094
jl 0x40fd26
test edi, edi
jae 0x410094
push 0x10000
call fcn.0040164d
mov esi, eax
add esp, 4
mov dword [ebp - 0x27c], esi
test esi, esi
je 0x41007e
cmp dword [ebp + 8], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x29c], xmm0
mov dword [ebp - 0x294], 0
je 0x40fe2c
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0
push dword [ebp - 8]
call fcn.004433c0
sub eax, edi
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 8]
cmp eax, 0x800
jae 0x40fda0
mov ecx, 0x800
sub ecx, eax
mov eax, dword [ebp - 0x268]
add eax, 0xa
imul ecx, eax
mov eax, dword [ebp - 8]
add dword [ebp - 0x264], ecx
push 0
push eax
push ebx
push edi
call fcn.00443310
mov ecx, 1
sub ecx, eax
mov eax, 0
push 0
push 0x80
sbb eax, edx
push eax
push ecx
call fcn.00443310
mov ecx, dword [ebp - 0x264]
mov edx, dword [0x4709c0]
add ecx, 0x7ff
shl eax, 4
add eax, dword [ebp - 8]
shl eax, 5
add eax, ecx
and eax, 0xfffff800
mov ecx, eax
mov dword [ebp - 0x290], eax
shr ecx, 9
mov dword [ebp - 0x2a0], ecx
cmp edx, 2
je 0x40fe03
cmp edx, 1
jne 0x40fe40
cmp dword [0x47148c], 0
jne 0x40fe40
add eax, 0x4000
mov dword [ebp - 0x29c], 0x20
mov dword [ebp - 0x290], eax
lea eax, [ecx + 0x20]
mov dword [ebp - 0x2a0], eax
jmp 0x40fe40
mov dword [ebp - 0x290], 0x2d0000
mov dword [ebp - 0x2a0], 0x1680
push 0
push 0
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x288], 0
push eax
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 0
push eax
push 0
call fcn.0040cfc0
add esp, 0x14
test eax, eax
je 0x40ffd7
push 0
push 6
push 0
push 0
push dword [ebp - 0x2a0]
push 0
push dword [ebp - 0x29c]
push dword [ebp - 0x268]
call fcn.00425a80
mov edi, eax
add esp, 0x20
test edi, edi
je 0x40ffd0
mov ecx, dword [0x471338]
push 0x8000
push esi
mov edx, dword [ecx]
call dword [edx + 0x68]
test eax, eax
jne 0x40fec3
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x6c]
mov ecx, dword [0x471338]
mov eax, dword [ecx + 0x8d8]
mov eax, dword [eax + 4]
mov ecx, dword [eax + ecx + 0x8d8]
cmp dword [ecx + 0x34], 4
je 0x40ffc2
mov eax, dword [ebp - 0x268]
movzx eax, word [eax + 6]
add eax, eax
push eax
push esi
call fcn.00420a20
test eax, eax
je 0x40ffc9
mov eax, dword [edi + 0x8d8]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi + 0x8d8]
cmp dword [ecx + 0x34], 4
je 0x40ffc2
push 0
push 1
push esi
call fcn.00420920
test eax, eax
je 0x40ffbb
push 1
push 0x10000
push esi
push 2
push dword [0x471338]
push edi
call fcn.0040a3e0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x40ffdc
push 0x471338
call fcn.00425b60
push 0x471340
call fcn.00406880
movups xmm0, xmmword [ebp - 0x2a0]
mov ecx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x290]
push 0x471398
push ecx
mov dword [0x471338], edi
mov dword [0x471340], ecx
movups xmmword [0x471398], xmm0
mov dword [0x4713a8], eax
call fcn.0041b220
add esp, 0x10
push dword [ebp - 0x27c]
call fcn.00442e59
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442e5e
mov esp, ebp
pop ebp
ret
mov esi, 0x63
jmp 0x40ffdc
mov esi, 0xa
jmp 0x40ffdc
mov esi, 0x62
jmp 0x40ffdc
mov esi, 0xf
jmp 0x40ffdc
mov esi, 0x11
lea eax, [ebp - 0x288]
push eax
call fcn.00425b60
mov eax, dword [ebp - 0x268]
add esp, 4
test eax, eax
je 0x41005d
cmp dword [eax + 0x20], 0
je 0x41002b
lea eax, [ebp - 0x268]
push eax
call fcn.0041b2e0
add esp, 4
push dword [ebp - 0x27c]
call fcn.00442e59
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442e5e
mov esp, ebp
pop ebp
ret
mov edi, dword [eax + 0x24]
lea eax, [ebp - 0x268]
push eax
call fcn.0041b1e0
add esp, 4
test edi, edi
je 0x410056
mov eax, dword [edi + 0xc]
test eax, eax
je 0x410056
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [edi + 0xc], 0
push dword [ebp - 0x27c]
call fcn.00442e59
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442e5e
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442e5e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442e5e
mov esp, ebp
pop ebp
ret