Function at 0x10078020
Capabilities:
Decompress data using quicklz
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [ebp + 8]
test edi, edi
je 0x1007815b
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea edx, [ecx*8]
cmp ecx, 0x10000000
mov ecx, 0xfffffff8
cmovb ecx, edx
cmp ecx, 0x7ffffdff
setb dl
test eax, eax
setne dh
xor ebx, ebx
test dh, dl
mov esi, 0
cmovne esi, eax
cmovne ebx, ecx
mov edx, 0xbebbb1b7
test eax, eax
je 0x100786e8
cmp ecx, 0x7ffffdfe
ja 0x100786e8
test ebx, ebx
je 0x100786e8
mov eax, dword [esi]
bswap eax
shr eax, 0xf8
mov byte [edi], al
cmp al, 1
jne 0x100786e6
mov byte [edi + 1], 1
lea eax, [ebx - 8]
cmp eax, 0x30
jb 0x100786e8
lea edx, [ebx + 8]
mov eax, dword [esi + 1]
bswap eax
shr eax, 0xf4
cmp edx, 0x14
mov dword [ebp - 0x18], ebx
mov ebx, 0x14
cmovb ebx, edx
mov dword [edi + 4], eax
mov eax, 0xfff
mov dword [edi + 8], eax
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 4
shl eax, cl
shr eax, 0xf4
add ebx, 0xc
cmp edx, ebx
cmovb ebx, edx
mov dword [edi + 0xc], eax
mov eax, 0xfff
mov dword [edi + 0x10], eax
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xf4
add ebx, 0xc
cmp edx, ebx
cmovb ebx, edx
mov dword [edi + 0x14], eax
mov eax, 0xfff
mov dword [edi + 0x18], eax
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xf4
mov dword [edi + 0x1c], eax
add ebx, 0xc
cmp edx, ebx
cmovb ebx, edx
mov eax, 0xfff
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x18]
sub eax, ebx
cmp eax, 2
jge 0x10078165
mov edx, 0xbebbb1b7
jmp 0x100786e8
mov edx, 0xfffffff4
jmp 0x100786e8
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov dword [ebp - 0x10], edx
mov ecx, ebx
and cl, 7
shl eax, cl
mov ecx, dword [ebp - 0x10]
shr eax, 0xff
inc ebx
cmp ecx, ebx
cmovb ebx, ecx
mov dword [edi + 0x24], eax
test eax, eax
je 0x1007862d
cmp dword [ebp - 0x18], ebx
mov edx, 0xbebbb1b7
jbe 0x100786e8
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xff
lea ecx, [eax + 1]
mov dword [edi + 0x28], ecx
mov ecx, dword [ebp - 0x10]
inc ebx
cmp ecx, ebx
cmovb ebx, ecx
cmp eax, 0x7ffffffe
ja 0x10078632
xor ecx, ecx
mov eax, dword [ebp - 0x18]
sub eax, ebx
cmp eax, 0xd
jl 0x100786e8
mov dword [ebp - 0x20], ecx
shl ecx, 7
mov dword [ebp - 0x14], ecx
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xf4
add ebx, 0xc
cmp dword [ebp - 0x10], ebx
cmovb ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [edi + ecx + 0x2c], eax
mov dword [edi + ecx + 0x30], 0xfff
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
mov ecx, dword [ebp - 0x10]
shr eax, 0xff
inc ebx
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + ecx + 0x34], eax
test eax, eax
je 0x10078616
mov eax, dword [ebp - 0x18]
sub eax, ebx
cmp eax, 0x40
jl 0x100786e8
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xf2
add ebx, 0xe
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + ecx + 0x38], eax
mov dword [edi + ecx + 0x3c], 0x3fff
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xfa
add ebx, 6
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + ecx + 0x40], eax
mov eax, 0xa
mov dword [edi + ecx + 0x44], eax
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xf6
mov ecx, 0xa
add ebx, ecx
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + ecx + 0x48], eax
mov eax, 0x3ff
mov dword [edi + ecx + 0x4c], eax
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xf6
mov ecx, 0xa
add ebx, ecx
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + ecx + 0x50], eax
mov eax, 0x3ff
mov dword [edi + ecx + 0x54], eax
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xfa
add ebx, 6
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + ecx + 0x58], eax
mov eax, 0xa
mov dword [edi + ecx + 0x5c], eax
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xfe
add ebx, 2
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + ecx + 0x60], eax
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xfe
add ebx, 2
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + ecx + 0x64], eax
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xfc
add ebx, 4
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + ecx + 0x68], eax
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xfd
add ebx, 3
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + ecx + 0x6c], eax
or eax, 4
cmp eax, 6
jne 0x10078416
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xf9
add ebx, 7
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
cmovb ebx, ecx
neg eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [edi + eax + 0x70], edx
mov edx, 0xbebbb1b7
mov eax, dword [ebp - 0x14]
jmp 0x1007843e
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xf9
mov ecx, dword [ebp - 0x14]
mov dword [edi + ecx + 0x70], eax
mov eax, ecx
add ebx, 7
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
cmovb ebx, ecx
mov dword [edi + eax + 0x74], 0x7f
cmp dword [ebp - 0x18], ebx
jle 0x100786e8
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xff
inc ebx
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + ecx + 0x78], eax
test eax, eax
je 0x10078600
mov eax, dword [ebp - 0x18]
sub eax, ebx
mov ecx, dword [ebp - 0x14]
imul ecx, dword [edi + ecx + 0x7c], 0x2b
cmp eax, ecx
jle 0x100786e8
mov eax, dword [ebp - 0x14]
add eax, edi
add eax, 0x7c
mov ecx, ebx
shr ecx, 3
mov edx, dword [esi + ecx]
bswap edx
mov ecx, ebx
and cl, 7
shl edx, cl
shr edx, 0xff
lea ecx, [edx + 1]
mov dword [ebp - 0x1c], ecx
mov dword [eax], ecx
inc ebx
mov eax, dword [ebp - 0x10]
cmp eax, ebx
cmovb ebx, eax
cmp edx, 0x7ffffffe
ja 0x10078616
mov eax, dword [ebp - 0x14]
add edi, eax
add edi, 0x80
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
shr eax, 0xfe
add ebx, 2
mov ecx, dword [ebp - 0x10]
mov edx, ecx
cmp ecx, ebx
jb 0x100784fb
mov edx, ebx
mov dword [edi], eax
test eax, 0xfffffffd
jne 0x1007853f
mov eax, dword [ebp - 0x18]
sub eax, edx
cmp eax, 8
jl 0x10078151
mov eax, edx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ebx, ecx
mov ecx, edx
and cl, 7
shl eax, cl
shr eax, 0xf8
add edx, 8
mov ecx, ebx
cmp ebx, edx
jb 0x10078533
mov ecx, edx
mov dword [edi + 4], eax
mov dword [edi + 8], 0xff
mov edx, ecx
mov eax, edx
shr eax, 3
mov ebx, dword [esi + eax]
bswap ebx
mov ecx, edx
and cl, 7
shl ebx, cl
shr ebx, 0xf4
add edx, 0xc
mov ecx, dword [ebp - 0x10]
mov eax, ecx
cmp ecx, edx
jb 0x10078561
mov eax, edx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], 0xfff
mov ecx, eax
shr ecx, 3
mov ebx, dword [esi + ecx]
bswap ebx
mov ecx, eax
and cl, 7
shl ebx, cl
shr ebx, 0xf6
add eax, 0xa
mov ecx, dword [ebp - 0x10]
mov edx, ecx
cmp ecx, eax
jb 0x1007858d
mov edx, eax
mov dword [edi + 0x14], ebx
mov eax, 0x3ff
mov dword [edi + 0x18], eax
mov eax, edx
shr eax, 3
mov ebx, dword [esi + eax]
bswap ebx
mov ecx, edx
and cl, 7
shl ebx, cl
shr ebx, 0xf6
add edx, 0xa
mov ecx, dword [ebp - 0x10]
mov eax, ecx
cmp ecx, edx
jb 0x100785ba
mov eax, edx
mov dword [edi + 0x1c], ebx
mov ecx, 0x3ff
mov dword [edi + 0x20], ecx
mov ecx, eax
shr ecx, 3
mov edx, dword [esi + ecx]
bswap edx
mov ecx, eax
and cl, 7
shl edx, cl
shr edx, 0xf8
add eax, 8
mov ecx, dword [ebp - 0x10]
mov ebx, ecx
cmp ecx, eax
jb 0x100785e7
mov ebx, eax
mov dword [edi + 0x24], edx
mov dword [edi + 0x28], 0xff
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, dword [ebp - 0x1c]
jl 0x100784d6
jmp 0x10078616
mov eax, dword [ebp - 0x14]
mov dword [edi + eax + 0x7c], 1
mov dword [edi + eax + 0x80], 0
mov ecx, dword [ebp - 0x20]
inc ecx
mov edi, dword [ebp + 8]
cmp ecx, dword [edi + 0x28]
mov edx, 0xbebbb1b7
jl 0x100781ce
jmp 0x10078632
mov edx, 0xbebbb1b7
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
mov ecx, dword [ebp - 0x10]
shr eax, 0xff
inc ebx
cmp ecx, ebx
cmovb ebx, ecx
mov dword [edi + 0x12c], eax
test eax, eax
je 0x100786e6
mov ecx, dword [ebp - 0x18]
sub ecx, ebx
mov eax, dword [edi + 0x130]
lea eax, [eax*8 + 3]
cmp ecx, eax
jl 0x100786e8
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov ecx, ebx
and cl, 7
shl eax, cl
mov ecx, eax
mov eax, dword [ebp - 0x10]
shr ecx, 0xfd
mov dword [edi + 0x130], ecx
mov edx, 0
test ecx, ecx
jle 0x100786e8
add ebx, 3
cmp eax, ebx
cmovb ebx, eax
xor edi, edi
mov eax, ebx
shr eax, 3
mov eax, dword [esi + eax]
bswap eax
mov edx, esi
mov esi, ecx
mov ecx, ebx
and cl, 7
shl eax, cl
mov ecx, dword [ebp - 0x10]
shr eax, 0xf8
add ebx, 8
cmp ecx, ebx
cmovb ebx, ecx
mov ecx, esi
mov esi, edx
mov edx, dword [ebp + 8]
mov dword [edx + edi*8 + 0x134], eax
mov dword [edx + edi*8 + 0x138], 0x80
inc edi
cmp edi, ecx
jl 0x100786a5
xor edx, edx
mov eax, edx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret