Function at 0x1002c190
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1011e16b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x1014d0cc]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
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 + 0x38], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x24], 1
mov dword [esp + 0xc8], 0
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x18]
call fcn.10028820
mov eax, dword [eax]
mov ecx, dword [eax + 0x90]
add eax, 8
add ecx, 0xffffffff
cmp dword [edi + 0x10], ecx
jne 0x1002c236
mov edx, dword [eax + 0x8c]
mov ebx, dword [eax + 0x80]
imul edx, ecx
sub ebx, edx
jmp 0x1002c23c
mov ebx, dword [eax + 0x8c]
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x28], ebx
je 0x1002c26e
mov dword [esp + 0x2c], eax
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1002c26e
test eax, eax
je 0x1002c26e
push eax
call fcn.100e9600
mov eax, dword [esp + 0x2c]
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 + 0xe4]
mov ebx, eax
mov eax, dword [esi + 4]
lea edx, [eax + ebx]
cmp edx, ecx
jl 0x1002c2a5
xor edi, edi
push edi
push edi
sub eax, ecx
or edx, 0xffffffff
push edx
add eax, ebx
push eax
lea eax, [esp + 0x30]
push eax
push esi
call fcn.1002a6e0
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x20]
push ecx
push 2
lea edx, [esp + 0x1f]
push edx
lea eax, [esp + 0x24]
push eax
push esi
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.1002be60
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x2c], eax
jge 0x1002c2ee
cmp byte [esp + 0x24], cl
je 0x1002c4d7
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x2c]
jmp 0x1002c4d7
cmp byte [esi + 0x1a0], 0
jne 0x1002c3b7
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 0x1002c36a
mov eax, dword [esi]
xor edi, edi
cmp eax, dword [esp + 0x28]
jl 0x1002c33d
lea esi, [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 8]
mov ecx, dword [edi + ecx]
mov eax, dword [esi]
push ecx
lea esi, [esp + 0x58]
call fcn.100a6a30
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
sub dword [esp + 0x2c], eax
add esp, 4
add edi, 0x28
sub ebx, 1
mov esi, edx
jne 0x1002c333
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.100a6930
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x30]
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
mov ebx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push edi
lea eax, [esp + 0x1f]
push eax
mov ecx, esi
call fcn.1002c550
mov ebx, eax
test ebx, ebx
jge 0x1002c3ec
cmp byte [esp + 0x24], 0
je 0x1002c3e5
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x1002c4d7
lea eax, [esi + 0x314]
test eax, eax
je 0x1002c3fb
add eax, 9
jmp 0x1002c3fd
xor eax, eax
mov ebx, dword [esp + 0x1c]
cmp dword [ebx + 0x18], 0
jne 0x1002c41c
mov edx, dword [esp + 0x18]
push ebx
push edx
lea ebx, [esp + 0x40]
call fcn.10030780
mov ebx, dword [esp + 0x1c]
jmp 0x1002c43a
test eax, eax
mov ecx, dword [edi + 0x54]
mov dword [esp + 0x38], ecx
je 0x1002c42c
add eax, 0xfffffff7
jmp 0x1002c42e
xor eax, eax
push ebx
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.10035590
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0xe4]
jge 0x1002c45e
cmp byte [esi + 0xf0], 0
je 0x1002c45e
cmp byte [esi + 0xf1], 0
je 0x1002c499
cmp byte [esp + 0x17], 0
jne 0x1002c499
lea eax, [esi + 0x31d]
test eax, eax
je 0x1002c46d
add eax, 0xfffffff7
jmp 0x1002c46f
xor eax, eax
cmp ebx, dword [eax + 4]
je 0x1002c499
push ebx
mov edi, esi
call fcn.1002a090
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea ebx, [esp + 0x40]
lea eax, [esi + 0x31d]
call fcn.10030780
mov edi, dword [esp + 0x30]
mov edi, dword [edi + 8]
mov eax, 1
add dword [esi + 0x338], eax
mov ecx, 0
adc dword [esi + 0x33c], ecx
cmp byte [esp + 0x17], cl
je 0x1002c4c4
add dword [esi + 0x340], eax
adc dword [esi + 0x344], ecx
cmp byte [esp + 0x24], cl
je 0x1002c4d5
mov eax, dword [esp + 0x20]
push eax
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.1010defb
mov esp, ebp
pop ebp
ret 4