Function at 0x4ac340
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x80], esi
push ebx
call fcn.004abf10
test eax, eax
jne 0x4ace13
mov eax, dword [ebx]
test eax, eax
je 0x4ac881
cmp eax, 6
je 0x4ac881
cmp eax, 1
je 0x4ac393
cmp eax, 2
jne 0x4ace11
mov edi, dword [ebx + 4]
mov eax, dword [ebx + edi*2 + 8]
lea edx, [ebx + edi*2]
mov ecx, dword [edx + 0xc]
add eax, ecx
mov dword [ebp - 0x80], eax
test byte [edx + eax*2 + 0x10], 1
je 0x4ace11
lea eax, [ebp - 0x7c]
push eax
push ecx
push ebx
call fcn.004abc20
mov eax, dword [ebp - 0x80]
add eax, edi
push 0x2c6
lea eax, [eax*2 + 0x24]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004bd020
mov edi, dword [ebp - 0xa0]
push 0x28
push dword [ebp - 0x7c]
push 0x2c6
push edi
call fcn.004bba30
test eax, eax
jne 0x4ac8ee
mov eax, dword [esi + 4]
mov esi, dword [eax + 0x480]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x80]
mov ecx, esi
mov dword [ebp - 0x58], 0
push ebx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
mov dword [ebp - 0x60], 0xc3d2e1f0
mov dword [ebp - 0x10], 0
call fcn.004b22d0
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.004b2720
mov esi, dword [ebp - 0x7c]
add esi, 0x28
test edi, edi
je 0x4ac817
test esi, esi
je 0x4ac817
cmp dword [edi + 8], 0
je 0x4ac817
cmp dword [edi + 0xc], 0
je 0x4ac817
call fcn.004be740
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x80], esi
call fcn.004be890
mov ecx, esi
call fcn.004be9b0
mov ebx, eax
mov ecx, esi
mov dword [ebp - 0x74], ebx
call fcn.004be9b0
mov ecx, esi
mov dword [ebp - 0x9c], eax
call fcn.004be9b0
mov ecx, esi
mov dword [ebp - 0x84], eax
call fcn.004be9b0
mov ecx, esi
mov dword [ebp - 0x90], eax
call fcn.004be9b0
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x4ac4eb
mov ecx, esi
mov ebx, 1
call fcn.004be940
mov ecx, esi
call fcn.004be7a0
jmp 0x4ac81c
push ecx
mov ecx, dword [edi + 8]
mov edx, ebx
call fcn.004c2e40
add esp, 4
test eax, eax
je 0x4ac4d3
mov ecx, ebx
call fcn.004bfe00
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 0x14
jb 0x4ac4d3
call fcn.004bfef0
push 0x14
mov dword [ebp - 0x78], eax
call fcn.004d9a7e
mov edx, dword [ebp - 0x7c]
mov ebx, eax
mov eax, dword [ebp - 0x78]
add esp, 4
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x94], ebx
mov ecx, dword [edx + 0x28]
mov dword [ebx], ecx
xor ecx, ecx
mov dword [eax], ebx
mov dword [eax + 4], 5
mov dword [eax + 8], 5
mov dword [eax + 0xc], 0
mov eax, dword [edx + 0x2c]
mov dword [ebx + 4], eax
mov eax, dword [edx + 0x30]
mov dword [ebx + 8], eax
mov eax, dword [edx + 0x34]
mov dword [ebx + 0xc], eax
mov eax, dword [edx + 0x38]
lea edx, [ecx + 5]
mov dword [ebx + 0x10], eax
mov eax, 0x14
cmp dword [eax + ebx - 4], 0
jne 0x4ac58a
dec edx
inc ecx
sub eax, 4
mov dword [esi + 4], edx
cmp ecx, 5
jb 0x4ac576
call fcn.004bfef0
push 0x14
mov dword [ebp - 0x88], eax
call fcn.004d9a7e
mov esi, dword [ebp - 0x7c]
mov edx, eax
mov eax, dword [ebp - 0x88]
add esp, 4
mov edi, dword [ebp - 0x88]
mov dword [ebp - 0x8c], edx
mov ecx, dword [esi + 0x3c]
mov ebx, dword [ebp - 0x8c]
mov dword [edx], ecx
xor ecx, ecx
mov dword [eax], edx
mov dword [eax + 4], 5
mov dword [eax + 8], 5
mov dword [eax + 0xc], 0
mov eax, dword [esi + 0x40]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x44]
mov dword [edx + 8], eax
mov eax, dword [esi + 0x48]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x4c]
mov esi, dword [ebp - 0x80]
mov dword [edx + 0x10], eax
lea edx, [ecx + 5]
mov eax, 0x14
nop dword [eax]
cmp dword [eax + ebx - 4], 0
jne 0x4ac614
dec edx
inc ecx
sub eax, 4
mov dword [edi + 4], edx
cmp ecx, 5
jb 0x4ac600
mov eax, dword [ebp - 0x78]
mov edi, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0x94]
mov edx, dword [eax + 4]
test edx, edx
je 0x4ac669
mov ecx, dword [ebp - 0x74]
mov eax, edx
sub eax, dword [ecx + 4]
jne 0x4ac6ad
mov eax, dword [ecx]
lea ecx, [edx - 1]
mov dword [ebp - 0x8c], eax
test ecx, ecx
js 0x4ac669
sub ebx, dword [ebp - 0x8c]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x94], ebx
mov edx, dword [ebx + eax]
mov ebx, dword [eax]
cmp ebx, edx
jne 0x4ac6a4
mov ebx, dword [ebp - 0x94]
sub eax, 4
sub ecx, 1
jns 0x4ac652
mov ecx, esi
mov ebx, 1
call fcn.004be940
mov ecx, esi
call fcn.004be7a0
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x4ac68d
mov ecx, eax
call fcn.004bfe20
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x4ac81c
mov ecx, eax
call fcn.004bfe20
jmp 0x4ac81c
mov ecx, dword [ebp - 0x74]
sbb eax, eax
and eax, 2
dec eax
test eax, eax
jns 0x4ac669
mov ebx, dword [ebp - 0x88]
cmp dword [ebx + 4], 0
je 0x4ac669
mov edx, ecx
mov ecx, ebx
call fcn.004c03c0
test eax, eax
jns 0x4ac669
mov ecx, dword [ebp - 0x84]
mov edx, ebx
push esi
push dword [ebp - 0x74]
call fcn.004bec90
add esp, 8
test eax, eax
je 0x4ac669
push dword [ebp - 0x90]
mov edx, 0x14
lea ecx, [ebp - 0x70]
call fcn.004c0210
add esp, 4
test eax, eax
je 0x4ac669
mov ebx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x9c]
push esi
push ebx
push dword [ebp - 0x84]
call fcn.004c2410
add esp, 0xc
test eax, eax
je 0x4ac669
mov eax, dword [ebp - 0x84]
mov ecx, eax
mov edx, dword [ebp - 0x78]
push esi
push ebx
push eax
call fcn.004c2410
add esp, 0xc
test eax, eax
je 0x4ac669
mov ecx, dword [edi + 8]
call fcn.004c2e60
mov ebx, eax
mov dword [ebp - 0x8c], ebx
test ebx, ebx
je 0x4ac669
mov ecx, dword [edi + 8]
mov edx, ebx
push esi
push dword [ebp - 0x84]
push dword [edi + 0xc]
push dword [ebp - 0x9c]
call fcn.004c30e0
add esp, 0x10
test eax, eax
jne 0x4ac783
lea ebx, [eax + 1]
jmp 0x4ac7e3
mov ecx, dword [edi + 8]
mov edx, ebx
push esi
push 0
push dword [ebp - 0x98]
mov eax, dword [ecx]
cmp dword [eax], 0x196
jne 0x4ac7ae
call fcn.004c2fb0
add esp, 0xc
test eax, eax
jne 0x4ac7b5
mov ebx, 1
jmp 0x4ac7e3
call fcn.004c2fb0
jmp 0x4ac7a0
mov ebx, dword [ebp - 0x9c]
mov ecx, ebx
mov edx, dword [ebp - 0x98]
push esi
push dword [ebp - 0x74]
call fcn.004c2340
add esp, 8
test eax, eax
je 0x4ac7a7
mov edx, dword [ebp - 0x78]
mov ecx, ebx
call fcn.004c03c0
neg eax
sbb ebx, ebx
neg ebx
mov ecx, esi
mov dword [ebp - 0x74], esi
call fcn.004be940
mov ecx, esi
call fcn.004be7a0
mov esi, dword [ebp - 0x8c]
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4ac809
push esi
call eax
add esp, 4
push esi
call fcn.004d9a63
add esp, 4
jmp 0x4ac67c
mov ebx, 1
test edi, edi
je 0x4ac861
mov ecx, dword [edi + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
test ecx, ecx
je 0x4ac839
call fcn.004c2a10
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4ac858
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4ac84f
push esi
call eax
add esp, 4
push esi
call fcn.004d9a63
add esp, 4
push edi
call fcn.004d9a63
add esp, 4
test ebx, ebx
je 0x4ace11
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 4]
test byte [ebx + eax*2 + 8], 1
je 0x4ace11
lea eax, [eax*2 + 0x48]
lea ecx, [ebx + eax]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x88], ecx
xor ecx, ecx
nop word [eax + eax]
cmp dword [ecx*8 + 0x50c190], 0x2c6
je 0x4ac94b
inc ecx
cmp ecx, 0x43
jb 0x4ac8b0
mov edi, dword [ebp - 0xa0]
push 0x28
push dword [ebp - 0x88]
mov dword [ebp - 0x9c], edi
push 0x2c6
push edi
call fcn.004bba30
test eax, eax
je 0x4ac99f
test edi, edi
je 0x4ac933
mov ecx, dword [edi + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
test ecx, ecx
je 0x4ac90b
call fcn.004c2a10
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4ac92a
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4ac921
push esi
call eax
add esp, 4
push esi
call fcn.004d9a63
add esp, 4
push edi
call fcn.004d9a63
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ecx*8 + 0x50c194]
call fcn.004c3150
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x4ac8c7
mov dword [eax + 0x30], 0x2c6
mov esi, dword [eax + 0x4c]
push 0x10
shl esi, 5
call fcn.004d9a7e
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x8c]
mov dword [edi], 0x2c6
mov dword [edi + 4], esi
mov esi, dword [ebp - 0x80]
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
jmp 0x4ac8cd
mov eax, dword [esi + 4]
mov esi, dword [eax + 0x480]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x90]
mov ecx, esi
mov dword [ebp - 0x58], 0
push ebx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
mov dword [ebp - 0x60], 0xc3d2e1f0
mov dword [ebp - 0x10], 0
call fcn.004b22d0
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.004b2720
mov ebx, dword [ebp - 0x88]
add ebx, 0x28
mov dword [ebp - 0x88], ebx
test edi, edi
je 0x4acdab
test ebx, ebx
je 0x4acdab
cmp dword [edi + 8], 0
je 0x4acdab
cmp dword [edi + 0xc], 0
je 0x4acdab
call fcn.004be740
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x8c], esi
call fcn.004be890
mov ecx, esi
call fcn.004be9b0
mov ecx, esi
mov dword [ebp - 0x78], eax
call fcn.004be9b0
mov ecx, esi
mov dword [ebp - 0x94], eax
call fcn.004be9b0
mov ecx, esi
mov dword [ebp - 0x74], eax
call fcn.004be9b0
mov ecx, esi
mov dword [ebp - 0x80], eax
call fcn.004be9b0
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x4aca98
mov ecx, esi
mov ebx, 1
call fcn.004be940
mov ecx, esi
call fcn.004be7a0
jmp 0x4acdb0
mov edx, dword [ebp - 0x78]
push ecx
mov ecx, dword [edi + 8]
call fcn.004c2e40
add esp, 4
test eax, eax
je 0x4aca80
mov ecx, dword [ebp - 0x78]
call fcn.004bfe00
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 0x14
jb 0x4aca80
call fcn.004bfef0
mov esi, eax
push 0x14
mov dword [ebp - 0x7c], esi
call fcn.004d9a7e
mov ecx, dword [ebx]
mov edx, eax
add esp, 4
mov dword [ebp - 0x84], edx
mov dword [esi], edx
mov dword [esi + 4], 5
mov dword [edx], ecx
xor ecx, ecx
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebx + 8]
mov dword [edx + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebp - 0x7c]
mov dword [edx + 0x10], eax
lea edx, [ecx + 5]
mov dword [esi + 8], 5
mov eax, 0x14
mov dword [esi + 0xc], 0
mov esi, dword [ebp - 0x84]
cmp dword [eax + esi - 4], 0
jne 0x4acb3a
dec edx
inc ecx
sub eax, 4
mov dword [ebx + 4], edx
cmp ecx, 5
jb 0x4acb26
call fcn.004bfef0
mov esi, eax
push 0x14
mov dword [ebp - 0x90], esi
call fcn.004d9a7e
mov ebx, dword [ebp - 0x88]
mov edx, eax
add esp, 4
mov dword [ebp - 0xa4], edx
mov edi, edx
mov dword [esi], edx
mov ecx, dword [ebx + 0x14]
mov dword [edx], ecx
xor ecx, ecx
mov eax, dword [ebx + 0x18]
mov dword [edx + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [edx + 8], eax
mov eax, dword [ebx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 0x24]
mov ebx, dword [ebp - 0x90]
mov dword [edx + 0x10], eax
lea edx, [ecx + 5]
mov dword [esi + 4], 5
mov eax, 0x14
mov dword [esi + 8], 5
mov dword [esi + 0xc], 0
mov esi, dword [ebp - 0x8c]
nop dword [eax + eax]
cmp dword [eax + edi - 4], 0
jne 0x4acbc4
dec edx
inc ecx
sub eax, 4
mov dword [ebx + 4], edx
cmp ecx, 5
jb 0x4acbb0
mov eax, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x9c]
mov edx, dword [eax + 4]
test edx, edx
je 0x4acc0f
mov ecx, dword [ebp - 0x78]
mov eax, edx
sub eax, dword [ecx + 4]
jne 0x4acc53
mov ebx, dword [ecx]
lea ecx, [edx - 1]
test ecx, ecx
js 0x4acc0f
mov edx, dword [ebp - 0x84]
lea eax, [ebx + ecx*4]
sub edx, ebx
mov dword [ebp - 0x84], edx
mov edx, dword [edx + eax]
mov ebx, dword [eax]
cmp ebx, edx
jne 0x4acc4a
mov edx, dword [ebp - 0x84]
sub eax, 4
sub ecx, 1
jns 0x4acbf8
mov ecx, esi
mov ebx, 1
call fcn.004be940
mov ecx, esi
call fcn.004be7a0
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x4acc33
mov ecx, eax
call fcn.004bfe20
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4acdb0
mov ecx, eax
call fcn.004bfe20
jmp 0x4acdb0
mov ecx, dword [ebp - 0x78]
sbb eax, eax
and eax, 2
dec eax
test eax, eax
jns 0x4acc0f
mov ebx, dword [ebp - 0x90]
cmp dword [ebx + 4], 0
je 0x4acc0f
mov edx, ecx
mov ecx, ebx
call fcn.004c03c0
test eax, eax
jns 0x4acc0f
mov ecx, dword [ebp - 0x74]
mov edx, ebx
push esi
push dword [ebp - 0x78]
call fcn.004bec90
add esp, 8
test eax, eax
je 0x4acc0f
push dword [ebp - 0x80]
mov edx, 0x14
lea ecx, [ebp - 0x70]
call fcn.004c0210
add esp, 4
test eax, eax
je 0x4acc0f
mov ebx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x94]
push esi
push ebx
push dword [ebp - 0x74]
call fcn.004c2410
add esp, 0xc
test eax, eax
je 0x4acc0f
mov eax, dword [ebp - 0x74]
mov ecx, eax
mov edx, dword [ebp - 0x7c]
push esi
push ebx
push eax
call fcn.004c2410
add esp, 0xc
test eax, eax
je 0x4acc0f
mov ecx, dword [edi + 8]
call fcn.004c2e60
mov ebx, eax
mov dword [ebp - 0xa4], ebx
test ebx, ebx
je 0x4acc0f
mov ecx, dword [edi + 8]
mov edx, ebx
push esi
push dword [ebp - 0x74]
push dword [edi + 0xc]
push dword [ebp - 0x94]
call fcn.004c30e0
add esp, 0x10
test eax, eax
jne 0x4acd17
lea ebx, [eax + 1]
jmp 0x4acd77
mov ecx, dword [edi + 8]
mov edx, ebx
push esi
push 0
push dword [ebp - 0x98]
mov eax, dword [ecx]
cmp dword [eax], 0x196
jne 0x4acd42
call fcn.004c2fb0
add esp, 0xc
test eax, eax
jne 0x4acd49
mov ebx, 1
jmp 0x4acd77
call fcn.004c2fb0
jmp 0x4acd34
mov ebx, dword [ebp - 0x94]
mov ecx, ebx
mov edx, dword [ebp - 0x98]
push esi
push dword [ebp - 0x78]
call fcn.004c2340
add esp, 8
test eax, eax
je 0x4acd3b
mov edx, dword [ebp - 0x7c]
mov ecx, ebx
call fcn.004c03c0
neg eax
sbb ebx, ebx
neg ebx
mov ecx, esi
mov dword [ebp - 0x74], esi
call fcn.004be940
mov ecx, esi
call fcn.004be7a0
mov esi, dword [ebp - 0xa4]
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4acd9d
push esi
call eax
add esp, 4
push esi
call fcn.004d9a63
add esp, 4
jmp 0x4acc22
mov ebx, 1
test edi, edi
je 0x4acdf5
mov ecx, dword [edi + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
test ecx, ecx
je 0x4acdcd
call fcn.004c2a10
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4acdec
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4acde3
push esi
call eax
add esp, 4
push esi
call fcn.004d9a63
add esp, 4
push edi
call fcn.004d9a63
add esp, 4
neg ebx
sbb ebx, ebx
and ebx, 2
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0xc