Function at 0x10050030
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161888
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x179dc
call fcn.1015dc90
mov eax, dword [0x101ed004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [edi + 0x828]
mov dword [ebp - 0x179e0], eax
shl eax, 6
add ebx, eax
mov dword [ebp - 0x179dc], eax
push 0x17940
lea eax, [ebp - 0x179d0]
mov dword [ebp - 0x179d4], ebx
push 0
push eax
call fcn.10143f10
add esp, 0xc
lea ecx, [ebp - 0x179d0]
call fcn.1004bfe0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0x101d4800
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x74]
push 0x40
push 0
push eax
movlpd qword [ebp - 0x90], xmm0
mov dword [ebp - 0x88], 0x67452301
mov dword [ebp - 0x84], 0xefcdab89
mov dword [ebp - 0x80], 0x98badcfe
mov dword [ebp - 0x7c], 0x10325476
mov dword [ebp - 0x78], 0xc3d2e1f0
call fcn.10143f10
mov ecx, dword [ebx + 0x28]
add esp, 0xc
test ecx, ecx
je 0x100503d0
mov ebx, dword [ebx + 8]
test ebx, ebx
js 0x10050185
mov eax, dword [ebp - 0x179d4]
xor ebx, ebx
xor esi, esi
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x179d8], eax
test eax, eax
je 0x10050185
lea edx, [ecx*8]
sub edx, ecx
shl edx, 2
nop word [eax + eax]
test ecx, ecx
js 0x100503d0
cmp ecx, dword [edi + 0x81c]
jge 0x100503d0
mov eax, dword [edi + 0x818]
mov eax, dword [edx + eax + 0x14]
test eax, eax
js 0x100503d0
inc esi
add ebx, eax
inc ecx
add edx, 0x1c
cmp esi, dword [ebp - 0x179d8]
jb 0x10050150
mov eax, dword [edi + 0x828]
cmp ebx, 0xffffffff
mov esi, dword [ebp - 0x179dc]
mov edx, ebx
mov esi, dword [esi + eax + 0x28]
mov eax, SysReAllocString
cmove edx, eax
mov eax, dword [edi + 0x818]
lea ecx, [esi*8]
sub ecx, esi
mov eax, dword [eax + ecx*4 + 0x14]
cmp eax, 0xffffffff
mov ecx, SysReAllocString
mov dword [edi + 0x850], edx
cmove eax, ecx
mov dword [edi + 0x854], esi
mov ecx, dword [ebp - 0x179e0]
mov dword [edi + 0x858], eax
lea eax, [ebp - 0x90]
mov dword [edi + 0x84c], ecx
mov ecx, edi
mov dword [edi + 0x860], eax
mov dword [edi + 0x85c], 0
call fcn.1004ff10
mov ecx, dword [edi + 0x844]
cmp ecx, dword [edi + 0x848]
jge 0x1005023b
mov eax, dword [edi + 0x840]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
cmp eax, dword [edi + 0x854]
jne 0x10050231
lea eax, [ecx + 1]
mov dword [edi + 0x85c], 1
mov dword [edi + 0x844], eax
jmp 0x1005023b
mov dword [edi + 0x85c], 0
lea ecx, [ebp - 0x90]
call fcn.100aa140
mov esi, dword [edi + 0x814]
mov edx, dword [ebp - 0x179d4]
push 0
mov ecx, dword [esi + 0x14]
push dword [edx + 4]
push dword [edx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov dword [esi + 8], eax
lea ecx, [ebp - 0x179d0]
mov dword [esi + 0xc], edx
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x814]
mov dword [ebp - 0x17958], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x179e4]
push eax
call fcn.100ad090
test al, al
je 0x100503d0
push 0
lea ecx, [ebp - 0x179d0]
call fcn.100ad1d0
test al, al
je 0x100503d0
nop dword [eax]
nop word [eax + eax]
mov dword [ebp - 0x98], 3
nop word [eax + eax]
mov eax, dword [ebp - 0x1795c]
lea ecx, [ebp - 0x1795c]
call dword [eax]
cmp eax, 0xffffffff
je 0x10050445
test eax, eax
jne 0x100502d0
mov eax, dword [ebp - 0x1795c]
lea ecx, [ebp - 0x1795c]
call dword [eax]
test eax, eax
jne 0x1005044f
mov eax, dword [ebp - 0x18]
mov esi, eax
test ebx, ebx
js 0x1005030e
cmp eax, ebx
jge 0x10050352
push 0x4000
lea ecx, [ebp - 0x179d0]
call fcn.100ad260
test al, al
jne 0x10050418
test ebx, ebx
js 0x10050331
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jge 0x10050352
push 0
lea ecx, [ebp - 0x179d0]
call fcn.100ad3a0
push 0
lea ecx, [ebp - 0x179d0]
call fcn.100ad1d0
test al, al
jne 0x10050397
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 1
cmp eax, ebx
jl 0x100503d0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
jne 0x100503d0
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x20], vtable.libzpaq::Writer.0
call fcn.100ac030
lea ecx, [ebp - 0x1795c]
call fcn.1004c140
lea ecx, [ebp - 0x179d0]
call fcn.100ac030
mov eax, 1
jmp 0x100503fa
test ebx, ebx
jns 0x100502c0
cmp esi, dword [ebp - 0x18]
je 0x100502c0
mov eax, dword [edi + 0x844]
cmp eax, dword [edi + 0x848]
jge 0x100502c0
mov ecx, edi
call fcn.1004fe00
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x100502c0
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x20], vtable.libzpaq::Writer.0
call fcn.100ac030
lea ecx, [ebp - 0x1795c]
call fcn.1004c140
lea ecx, [ebp - 0x179d0]
call fcn.100ac030
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10142783
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x74c]
or eax, dword [edi + 0x748]
jne 0x100503d0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
jne 0x100503d0
mov eax, dword [ebp - 0x18]
jmp 0x10050306
mov ecx, str.unexpected_EOF
call fcn.1004bef0
mov ecx, str.missing_reserved_byte
call fcn.1004bef0
int3