Function at 0x421f50
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1fc
mov eax, dword [0x51e080]
xor eax, esp
mov dword [esp + 0x1f8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [esp + 0x20], eax
mov ebx, ecx
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xb4]
push esi
push edi
mov edi, dword [ebp + 0x20]
mov esi, dword [eax + 0x4c8]
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov dword [esp + 0x34], ebx
call fcn.0047ac20
test eax, eax
je 0x421fc1
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.0047acd0
cmp dword [ebp + 8], 4
jae 0x422391
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x422391
cmp dword [esp + 0x20], 0
je 0x422391
mov esi, dword [esp + 0x28]
test esi, esi
je 0x422391
cmp dword [ebp + 0x14], 0
je 0x422391
mov eax, dword [ebx + 0xb4]
lea edx, [ebp + 0x14]
push dword [eax + 0x32c]
call fcn.00452270
mov ecx, dword [esp + 0x24]
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422016
sub ecx, edx
sar ecx, 1
mov dword [esp + 0x10], ecx
jne 0x422035
mov dword [esp + 0x34], 0
jmp 0x42205a
mov eax, dword [ebx + 0xb4]
lea edx, [esp + 0x10]
mov ecx, dword [esp + 0x20]
push dword [eax + 0x32c]
call fcn.00453850
mov eax, dword [esp + 0x14]
add esp, 4
inc eax
mov dword [esp + 0x34], eax
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422060
sub ecx, edx
sar ecx, 1
mov dword [esp + 0x10], ecx
jne 0x42207f
mov dword [esp + 0x10], 0
jmp 0x42209d
mov eax, dword [ebx + 0xb4]
lea edx, [esp + 0x10]
mov ecx, esi
push dword [eax + 0x32c]
call fcn.00453850
add esp, 4
inc dword [esp + 0x10]
test edi, edi
je 0x422109
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x422391
cmp dword [esp + 0x14], 0
je 0x422391
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4220c0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x11
ja 0x422391
push ecx
mov ecx, dword [ebx + 0xb4]
lea eax, [esp + 0x1c]
push esi
push edi
push eax
mov ecx, dword [ecx + 0x4ec]
lea eax, [esp + 0x1a8]
push eax
mov dword [esp + 0x2c], 0x32
call fcn.004797e0
mov edi, dword [esp + 0x18]
inc edi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x3c], edi
lea eax, [edi + esi]
cmp eax, 0x100
ja 0x422391
cmp dword [esp + 0x34], 0x40
ja 0x422391
cmp dword [esp + 0x10], 0x100
ja 0x422391
mov eax, dword [ebx + 0xc8]
cmp dword [eax + 0x34], 0
je 0x4225e9
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xa0], 0
je 0x4225e9
push 0x568
call fcn.004d9a7e
add esp, 4
mov dword [esp + 0x24], eax
lea ebx, [eax + 4]
mov dword [eax], 1
lea eax, [edi + esi]
add esi, esi
push esi
push dword [esp + 0x20]
mov dword [ebx], eax
add ebx, 4
push ebx
call fcn.004d6950
add esp, 0xc
lea eax, [esi + 8]
add ebx, esi
mov dword [esp + 0x18], eax
test edi, edi
je 0x4221be
lea esi, [edi + edi]
mov dword [esp + 0x1c], 1
push esi
lea eax, [esp + 0x19c]
push eax
push ebx
call fcn.004d6950
add esp, 0xc
add ebx, esi
add dword [esp + 0x18], esi
jmp 0x4221c6
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
mov dword [ebx], eax
mov dword [ebx + 4], esi
add ebx, 8
lea edi, [eax + eax]
push edi
push dword [esp + 0x24]
push ebx
call fcn.004d6950
mov eax, dword [esp + 0x34]
add esp, 0xc
add esi, esi
add ebx, edi
mov dword [esp + 0x10], esi
push esi
push eax
push ebx
call fcn.004d6950
mov eax, dword [ebp + 8]
add ebx, esi
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov edx, dword [esp + 0x18]
movzx eax, al
add edx, 0x1c
shl eax, 8
or eax, dword [esp + 0x1c]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0xb4]
mov eax, dword [eax + 0x28c]
and eax, 0xffff0000
mov dword [ebx + 0x10], 0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0xc], eax
lea eax, [esi + edi]
add edx, eax
add ebx, 0x14
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x28], edx
je 0x4223b7
mov eax, dword [ecx + 0xb4]
mov esi, dword [eax + 0x480]
lea eax, [esp + 0xb8]
push eax
push edx
push dword [esp + 0x2c]
mov ecx, esi
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xc4], 0x67452301
mov dword [esp + 0xc8], 0xefcdab89
mov dword [esp + 0xcc], 0x98badcfe
mov dword [esp + 0xd0], 0x10325476
mov dword [esp + 0xd4], 0xc3d2e1f0
mov dword [esp + 0x124], 0
call fcn.004b22d0
lea eax, [esp + 0xb8]
mov ecx, esi
push eax
call fcn.004b2720
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
push 0x2c6
push eax
movups xmm0, xmmword [edi]
movups xmmword [ebx], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [ebx + 0x10], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [ebx + 0x20], xmm0
add ebx, 0x28
call fcn.004bd020
mov esi, dword [esp + 0x2c]
push 0x14
push dword [esp + 0x18]
push 0x2c6
push esi
call fcn.004bbdb0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x28
push eax
push ebx
push ecx
lea eax, [esp + 0xc4]
push eax
push esi
call fcn.004bc800
push esi
call fcn.004bd0e0
push 0x2c6
lea eax, [esp + 0x18]
push eax
call fcn.004bd020
push 0x28
push edi
mov edi, dword [esp + 0x1c]
push 0x2c6
push edi
call fcn.004bba30
push 0x28
push ebx
push ecx
lea eax, [esp + 0xc4]
push eax
push edi
call fcn.004bbeb0
push edi
mov esi, eax
call fcn.004bd080
test esi, esi
je 0x4223ad
push dword [esp + 0x24]
call fcn.004d9a63
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x24
mov edx, dword [esp + 0x28]
add ebx, 0x28
add edx, 0x50
mov eax, dword [esp + 0x38]
lea esi, [edx + 0x1c]
mov edi, dword [esp + 0x24]
mov dword [ebx], 0
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0x18], eax
lea eax, [esp + 0x120]
push eax
push edx
push edi
mov dword [esp + 0x20], esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
call fcn.004b29c0
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x124]
push eax
call fcn.004ae8f0
mov ebx, dword [esp + 0x30]
lea eax, [ebx + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 0x128]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004ae8f0
lea eax, [ebx + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0xb4]
lea edx, [esp + 0x10]
push edx
push 0
mov ecx, dword [eax + 0x49c]
mov eax, dword [eax + 0x4a0]
add eax, 0x10
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004a73f0
test eax, eax
je 0x422489
mov ecx, dword [ebx + 0xb4]
push esi
push edi
mov eax, dword [ecx + 0x4a0]
mov ecx, dword [ecx + 0x49c]
add eax, 0x10
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004a72a0
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004ae8f0
mov ecx, dword [ebx + 0xb4]
lea eax, [esp + 0xac]
push eax
mov dword [esp + 0x74], 0
mov dword [esp + 0xac], 0
mov ecx, dword [ecx + 0x4c8]
mov dword [esp + 0x98], 0x60
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0x200
mov dword [esp + 0xa8], 0
call fcn.0047acd0
cmp dword [esp + 0x70], 3
mov eax, dword [esp + 0xac]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], 0
jge 0x422546
mov esi, dword [ebx + 0xbc]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.00429810
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
lea eax, [ebx + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 0x128]
push eax
call fcn.004ae930
lea eax, [ebx + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x34], eax
call fcn.004d9a7e
mov esi, eax
add esp, 4
test esi, esi
je 0x4225a4
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0xe26af5e
push dword [esp + 0x14]
mov eax, dword [edi]
mov dword [esi + 4], eax
lea eax, [esi + 0x18]
push edi
push eax
call fcn.004d6950
mov ecx, dword [ebx + 0xb4]
lea eax, [esp + 0x4c]
add esp, 0xc
mov ecx, dword [ecx + 0x470]
push 0
push dword [esp + 0x34]
push esi
push eax
call fcn.0041aca0
push esi
call fcn.004d9a63
add esp, 4
push edi
call fcn.004d9a63
add esp, 4
mov ecx, dword [esp + 0x204]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x24