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

Disassembly:
sub esp, 0x70
push ebx
push ebp
push esi
mov esi, dword [esp + 0x80]
xor ebp, ebp
push edi
mov ecx, dword [esi + 0xe4]
mov edi, 4
inc ecx
mov eax, 2
cmp ecx, dword [esi + 0xd0]
mov ebx, 1
mov edx, 8
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esi + 0xe4], ecx
jb 0x1006a1a3
mov cl, byte [esi + 0x123]
test cl, cl
je 0x1006a0fa
mov cl, byte [esi + 0x70]
mov dword [esi + 0xe4], ebp
test al, cl
je 0x1006a010
inc byte [esi + 0x124]
jmp 0x1006a08f
mov cl, byte [esi + 0x124]
inc cl
mov bl, cl
mov byte [esi + 0x124], cl
cmp bl, 7
jae 0x1006a08f
mov eax, dword [esi + 0xc8]
mov ecx, ebx
and ecx, 0xff
shl ecx, 2
mov edx, dword [esp + ecx + 0x2c]
mov edi, dword [esp + ecx + 0x10]
sub eax, edx
xor edx, edx
mov ebp, dword [esp + ecx + 0x48]
lea eax, [eax + edi - 1]
div edi
mov edx, dword [esi + 0xcc]
mov edi, eax
mov eax, dword [esp + ecx + 0x64]
sub edx, eax
mov dword [esi + 0xd4], edi
lea eax, [edx + ebp - 1]
xor edx, edx
div ebp
test edi, edi
mov dword [esi + 0xd0], eax
je 0x1006a076
test eax, eax
jne 0x1006a083
inc bl
cmp bl, 7
mov byte [esi + 0x124], bl
jb 0x1006a025
xor ebp, ebp
mov edx, 8
mov edi, 4
cmp byte [esi + 0x124], 7
jae 0x1006a0f5
mov edi, dword [esi + 0xe8]
cmp edi, ebp
je 0x1006a1a3
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 0x12b]
mov cl, byte [esi + 0x128]
imul eax, ecx
cmp eax, edx
jl 0x1006a0cb
shr eax, 3
imul eax, dword [esi + 0xc8]
mov esi, eax
jmp 0x1006a0da
mov esi, dword [esi + 0xc8]
imul esi, eax
add esi, 7
shr esi, 3
lea ecx, [esi + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
mov ebx, 1
lea eax, [esi + 0x74]
push edi
push eax
call fcn.10041150
add esp, 8
cmp eax, ebp
jne 0x1006a144
cmp dword [esi + 0x84], ebp
jne 0x1006a0fa
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xac]
push ecx
push edx
push esi
call fcn.100685b0
mov eax, dword [esi + 0xac]
mov ecx, dword [esi + 0xb0]
add esp, 0xc
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], ecx
jmp 0x1006a0fa
cmp eax, ebx
je 0x1006a16e
mov eax, dword [esi + 0x8c]
cmp eax, ebp
je 0x1006a15e
push eax
push esi
call fcn.1005cf90
add esp, 8
jmp 0x1006a0fa
push str.zlib_error
push esi
call fcn.1005cf90
add esp, 8
jmp 0x1006a0fa
mov ecx, dword [esi + 0x84]
mov eax, dword [esi + 0xb0]
cmp ecx, eax
jae 0x1006a191
mov edx, dword [esi + 0xac]
sub eax, ecx
push eax
push edx
push esi
call fcn.100685b0
add esp, 0xc
lea eax, [esi + 0x74]
push eax
call fcn.10040fe0
add esp, 4
mov dword [esi + 0xa0], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret