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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x2c
test byte [ebx + 0xa], 8
je 0x412ded
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x40]
cmp eax, dword [ebx + 0x24]
setbe al
mov esi, dword [ebx]
movzx eax, al
mov dword [esp + 0x18], eax
test esi, esi
je 0x413225
lea eax, [ebx + 0x39272]
mov dword [esp + 0x14], eax
mov edi, dword [ebx + 0x5c]
mov dword [ebx + 0x30], eax
add eax, 0x14cbc
mov dword [ebx + 0x34], eax
test edi, edi
jne 0x4132ed
mov edx, dword [ebx + 0x2c]
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov ecx, dword [ebx + 0x38]
movzx eax, byte [edx]
sar eax, cl
mov byte [edx], al
xor eax, eax
cmp dword [ebx + 0x38], 8
sete al
sub dword [ebx + 0x28], eax
test byte [ebx + 9], 0x10
je 0x412e56
mov ecx, dword [ebx + 0x64]
test ecx, ecx
je 0x41312c
mov eax, dword [ebx + 0x44]
mov esi, dword [ebx + 0x48]
mov ebp, dword [ebx + 0x30]
lea ecx, [eax + 1]
cmp ecx, 7
mov dword [ebx + 0x44], ecx
jbe 0x412e9a
mov eax, esi
lea esi, [esi]
cmp dword [ebx + 0x34], ebp
jbe 0x412e87
lea edx, [ebp + 1]
mov dword [ebx + 0x30], edx
mov byte [ebp], al
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x44]
mov ebp, dword [ebx + 0x30]
sub ecx, 8
shr eax, 8
cmp ecx, 7
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], ecx
ja 0x412e70
mov esi, eax
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x412fc0
test byte [ebx + 0xa], 4
mov edx, 1
je 0x413120
movzx edx, dl
mov eax, ebx
mov dword [esp + 0x18], ecx
call dbg.tdefl_compress_block
mov edx, dword [ebx + 0x3c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
test edx, edx
jne 0x4130fa
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4131bf
mov ebp, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
cmp ebp, eax
jae 0x4132d1
lea edi, [ebx + 0x8196]
lea ecx, [ebx + 0x8192]
xor eax, eax
mov dword [ebx + 0x8192], 0
mov dword [ebx + 0x83ce], 0
and edi, 0xfffffffc
sub ecx, edi
add ecx, 0x240
shr ecx, 2
rep stosd dword es:[edi], eax
lea edi, [ebx + 0x83d6]
lea ecx, [ebx + 0x83d2]
mov dword [ebx + 0x83d2], 0
mov dword [ebx + 0x840e], 0
and edi, 0xfffffffc
sub ecx, edi
add ecx, 0x40
shr ecx, 2
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x9273]
mov dword [ebx + 0x38], 8
mov dword [ebx + 0x28], eax
lea eax, [ebx + 0x9272]
add dword [ebx + 0x64], 1
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x3c]
add dword [ebx + 0x40], eax
sub ebp, dword [esp + 0x14]
mov dword [ebx + 0x3c], 0
je 0x412fb5
mov eax, dword [ebx]
test eax, eax
je 0x41324b
mov edx, dword [ebx + 0x84]
sub edx, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x78]
mov dword [ecx], edx
mov edx, dword [ebx + 4]
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
lea edx, [ebx + 0x39272]
mov dword [esp], edx
call eax
test eax, eax
je 0x41327b
mov eax, dword [ebx + 0x5c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x40]
cmp dword [ebx + 0x24], eax
jb 0x4131bf
add ecx, 2
mov dword [ebx + 0x30], ebp
mov dword [ebx + 0x48], esi
cmp ecx, 7
mov dword [ebx + 0x44], ecx
mov eax, dword [ebx + 0x34]
jbe 0x4131e6
mov edx, esi
lea esi, [esi]
cmp ebp, eax
jae 0x413009
lea eax, [ebp + 1]
mov dword [ebx + 0x30], eax
mov byte [ebp], dl
mov edx, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x44]
mov ebp, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
sub ecx, 8
shr edx, 8
cmp ecx, 7
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x44], ecx
ja 0x412ff0
test ecx, ecx
mov esi, edx
jne 0x4131e6
mov edx, dword [ebx + 0x3c]
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], edx
mov edx, esi
mov esi, dword [esp + 0x1c]
movzx esi, si
shl esi, cl
add ecx, 0x10
or edx, esi
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], edx
lea esi, [esi]
cmp ebp, eax
jae 0x413069
lea eax, [ebp + 1]
mov dword [ebx + 0x30], eax
mov byte [ebp], dl
mov edx, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x44]
mov ebp, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
sub ecx, 8
shr edx, 8
cmp ecx, 7
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x44], ecx
ja 0x413050
mov esi, dword [ebx + 0x3c]
mov dword [esp + 0x1c], esi
xor esi, 0xffff
cmp dword [esp + 0x18], 1
mov dword [ebx + 0x3c], esi
jne 0x4131d9
cmp dword [esp + 0x1c], 0xffff
je 0x412ee8
mov esi, dword [ebx + 0x40]
add esi, edi
and esi, 0x7fff
movzx esi, byte [ebx + esi + 0x90]
shl esi, cl
add ecx, 8
or edx, esi
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], edx
cmp ebp, eax
jae 0x4130dc
lea eax, [ebp + 1]
mov dword [ebx + 0x30], eax
mov byte [ebp], dl
mov edx, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x44]
mov ebp, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
sub ecx, 8
shr edx, 8
cmp ecx, 7
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x44], ecx
ja 0x4130c3
add edi, 1
cmp edi, dword [ebx + 0x3c]
jb 0x4130a3
jmp 0x412ee8
mov eax, dword [ebx + 0x30]
sub eax, ebp
add eax, 1
cmp edx, eax
ja 0x412ed6
mov edx, dword [ebx + 0x1c]
sub edx, dword [ebx + 0x40]
cmp edx, dword [ebx + 0x24]
ja 0x412ed6
jmp 0x412fcf
cmp dword [ebx + 0x3c], 0x2f
setbe dl
jmp 0x412eb5
mov eax, dword [ebx + 0x44]
mov esi, 0x78
mov ebp, dword [ebx + 0x30]
mov ecx, eax
shl esi, cl
or esi, dword [ebx + 0x48]
lea ecx, [eax + 8]
cmp ecx, 7
mov dword [ebx + 0x44], ecx
mov edx, esi
mov dword [ebx + 0x48], esi
jbe 0x413262
cmp dword [ebx + 0x34], ebp
mov eax, ecx
jbe 0x41316b
lea eax, [ebp + 1]
mov dword [ebx + 0x30], eax
mov byte [ebp], dl
mov edx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x44]
mov ebp, dword [ebx + 0x30]
lea ecx, [eax - 8]
shr edx, 8
mov dword [ebx + 0x48], edx
cmp ecx, 7
mov dword [ebx + 0x44], ecx
ja 0x413152
mov esi, 1
mov dword [ebx + 0x44], eax
shl esi, cl
or esi, edx
mov dword [ebx + 0x48], esi
mov edx, esi
lea esi, [esi]
cmp dword [ebx + 0x34], ebp
jbe 0x4131a7
lea eax, [ebp + 1]
mov dword [ebx + 0x30], eax
mov byte [ebp], dl
mov edx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x44]
mov ebp, dword [ebx + 0x30]
sub eax, 8
shr edx, 8
cmp eax, 7
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x44], eax
ja 0x413190
mov esi, edx
jmp 0x412e5f
mov dword [ebx + 0x30], ebp
mov dword [ebx + 0x48], esi
mov edx, 1
mov dword [ebx + 0x44], ecx
mov eax, ebx
call dbg.tdefl_compress_block
jmp 0x412ee2
mov dword [esp + 0x18], 1
jmp 0x413039
mov dword [ebx + 0x44], 8
mov ecx, 8
mov edx, esi
cmp ebp, eax
jae 0x41320d
lea eax, [ebp + 1]
mov dword [ebx + 0x30], eax
mov byte [ebp], dl
mov edx, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x44]
mov ebp, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
sub ecx, 8
shr edx, 8
cmp ecx, 7
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x44], ecx
ja 0x4131f4
mov esi, edx
jmp 0x413024
mov eax, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x8c]
mov eax, dword [eax]
sub eax, edx
cmp eax, 0x14ccb
jbe 0x412dfe
add edx, dword [ebx + 0x74]
mov dword [esp + 0x14], edx
mov eax, edx
jmp 0x412e08
lea eax, [ebx + 0x39272]
cmp dword [esp + 0x14], eax
je 0x41328c
add dword [ebx + 0x8c], ebp
jmp 0x412fb5
mov esi, 1
add eax, 0x10
shl esi, cl
mov dword [ebx + 0x44], eax
or esi, edx
mov dword [ebx + 0x48], esi
mov edx, esi
jmp 0x413190
mov dword [ebx + 0x6c], 0xffffffff
mov eax, 0xffffffff
jmp 0x412fb8
mov edx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x8c]
mov esi, dword [edx]
sub esi, eax
cmp esi, ebp
jbe 0x41329f
mov esi, ebp
add eax, dword [ebx + 0x74]
mov edi, dword [esp + 0x14]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._memcpy
add dword [ebx + 0x8c], esi
sub ebp, esi
je 0x412fb5
mov dword [ebx + 0x58], esi
mov eax, ebp
mov dword [ebx + 0x5c], ebp
jmp 0x412fb8
mov dword [esp + 8], 0x515
mov dword [esp + 4], str.miniz.c
mov dword [esp], str.d__m_pOutput_buf___d__m_pOutput_buf_end
call sym.__assert
mov dword [esp + 8], 0x4c1
mov dword [esp + 4], str.miniz.c
mov dword [esp], str._d__m_output_flush_remaining
call sym.__assert
lea esi, [esi]