Function at 0x49c030
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x524adb
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x38], eax
lea eax, [esi + 0x2e8]
mov edi, edx
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x1c], 1
mov dword [esp + 0xc8], 0
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x28]
call fcn.00498880
mov eax, dword [eax]
mov ecx, dword [eax + 0x90]
add eax, 8
add ecx, 0xffffffff
cmp dword [edi + 0x10], ecx
jne 0x49c0d6
mov edx, dword [eax + 0x8c]
mov ebx, dword [eax + 0x80]
imul edx, ecx
sub ebx, edx
jmp 0x49c0dc
mov ebx, dword [eax + 0x8c]
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x20], ebx
je 0x49c10e
mov dword [esp + 0x34], eax
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49c10e
test eax, eax
je 0x49c10e
push eax
call fcn.00429550
mov eax, dword [esp + 0x34]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esi]
lea eax, [ecx + ebx - 1]
cdq
idiv ecx
mov ecx, dword [esi + 0x100]
mov ebx, eax
mov eax, dword [esi + 4]
lea edx, [eax + ebx]
cmp edx, ecx
jl 0x49c145
xor edi, edi
push edi
push edi
sub eax, ecx
or edx, 0xffffffff
push edx
add eax, ebx
push eax
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0049a5a0
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x1f]
push edx
lea eax, [esp + 0x34]
push eax
push esi
mov ecx, edi
mov dword [esp + 0x3c], 0
call fcn.0049bd00
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x34], eax
jge 0x49c18e
cmp byte [esp + 0x1c], cl
je 0x49c371
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x34]
jmp 0x49c371
cmp byte [esi + 0x1bc], 0
jne 0x49c257
cmp ebx, ecx
mov dword [esp + 0x54], 0x67452301
mov dword [esp + 0x58], 0xefcdab89
mov dword [esp + 0x5c], 0x98badcfe
mov dword [esp + 0x60], 0x10325476
mov dword [esp + 0x64], 0xc3d2e1f0
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], ecx
jle 0x49c20a
mov eax, dword [esi]
xor edi, edi
cmp eax, dword [esp + 0x20]
jl 0x49c1dd
lea esi, [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 8]
mov ecx, dword [edi + ecx]
mov eax, dword [esi]
push ecx
lea esi, [esp + 0x58]
call fcn.004a3e20
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
sub dword [esp + 0x24], eax
add esp, 4
add edi, 0x28
sub ebx, 1
mov esi, edx
jne 0x49c1d3
xor eax, eax
lea ecx, [esp + 0x54]
lea edi, [esp + 0x40]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call fcn.004a3d20
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
lea edx, [esp + 0x18]
push edx
push edi
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x1f]
push eax
mov ebx, edi
mov ecx, esi
call fcn.0049c3f0
mov ebx, eax
test ebx, ebx
jge 0x49c28e
cmp byte [esp + 0x1c], 0
je 0x49c287
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x49c371
lea eax, [esi + 0x314]
test eax, eax
je 0x49c29d
add eax, 9
jmp 0x49c29f
xor eax, eax
cmp dword [edi + 0x18], 0
jne 0x49c2b6
mov edx, dword [esp + 0x28]
push edi
push edx
lea ebx, [esp + 0x40]
call fcn.0049fd80
jmp 0x49c2d8
test eax, eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x54]
mov dword [esp + 0x38], edx
je 0x49c2ca
add eax, 0xfffffff7
jmp 0x49c2cc
xor eax, eax
push edi
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.004a3550
mov edx, dword [esi + 4]
cmp edx, dword [esi + 0x100]
jge 0x49c2fc
cmp byte [esi + 0x10c], 0
je 0x49c2fc
cmp byte [esi + 0x10d], 0
je 0x49c32f
cmp byte [esp + 0x17], 0
jne 0x49c32f
lea eax, [esi + 0x31d]
test eax, eax
je 0x49c30b
add eax, 0xfffffff7
jmp 0x49c30d
xor eax, eax
cmp edi, dword [eax + 4]
je 0x49c32f
push edi
mov ecx, esi
call fcn.00499f60
mov eax, dword [esp + 0x28]
push edi
push eax
lea ebx, [esp + 0x40]
lea eax, [esi + 0x31d]
call fcn.0049fd80
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 8]
mov eax, 1
add dword [esi + 0x338], eax
mov ecx, 0
adc dword [esi + 0x33c], ecx
cmp byte [esp + 0x17], cl
je 0x49c35e
add dword [esi + 0x340], eax
adc dword [esi + 0x344], ecx
cmp byte [esp + 0x1c], cl
je 0x49c36f
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00515015
mov esp, ebp
pop ebp
ret 4