Function at 0x49a140
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519588
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], 0
mov ecx, dword [0x578ad4]
mov eax, ecx
imul eax, ecx
cdq
mov ebx, 0xa
idiv ebx
mov dword [ebp - 4], 0
cmp edx, 8
jne 0x49a1a5
dec ecx
mov dword [0x578ad4], ecx
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x49a22b
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], eax
mov byte [edi], al
cmp dword [edi + 0x14], 0x14
jae 0x49a1dc
push dword [edi + 0x10]
mov ecx, edi
push 0x14
call fcn.004010b0
cmp dword [edi + 0x14], 0x10
jb 0x49a1e6
mov eax, dword [edi]
jmp 0x49a1e8
mov eax, edi
xorps xmm0, xmm0
movq qword [eax], xmm0
movq qword [eax + 8], xmm0
mov dword [eax + 0x10], 0
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0x14
jb 0x49a20c
mov eax, dword [edi]
jmp 0x49a20e
mov eax, edi
mov byte [eax + 0x14], 0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x49a423
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x49a423
mov dword [ebp - 0x2c], 0
mov ecx, dword [0x578ad4]
mov eax, ecx
imul eax, ecx
cdq
idiv ebx
mov byte [ebp - 4], 1
cmp edx, 8
jne 0x49a250
dec ecx
mov dword [0x578ad4], ecx
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x49a2f5
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [edi + 0x14], 0x14
jae 0x49a291
push dword [edi + 0x10]
mov ecx, edi
push 0x14
call fcn.004010b0
cmp dword [edi + 0x14], 0x10
jb 0x49a29b
mov eax, dword [edi]
jmp 0x49a29d
mov eax, edi
xorps xmm0, xmm0
movq qword [eax], xmm0
movq qword [eax + 8], xmm0
mov dword [eax + 0x10], 0
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0x14
jb 0x49a2c1
mov eax, dword [edi]
jmp 0x49a2c3
mov eax, edi
mov byte [eax + 0x14], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x49a2dc
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x49a423
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x49a423
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x49a300
mov esi, dword [esi]
push 0
push eax
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x49a26e
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp - 0x2c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 4
call ebx
test eax, eax
je 0x49a26e
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov esi, dword [ebp - 0x2c]
push 0
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x34]
inc eax
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 2
call fcn.0049a080
add esp, 8
push eax
push 2
push esi
call ebx
test eax, eax
jne 0x49a3ef
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], eax
mov byte [edi], al
cmp dword [edi + 0x14], 0x14
jae 0x49a39a
push dword [edi + 0x10]
mov ecx, edi
push 0x14
call fcn.004010b0
cmp dword [edi + 0x14], 0x10
jb 0x49a3a4
mov eax, dword [edi]
jmp 0x49a3a6
mov eax, edi
xorps xmm0, xmm0
movq qword [eax], xmm0
movq qword [eax + 8], xmm0
mov dword [eax + 0x10], 0
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0x14
jb 0x49a3ca
mov eax, dword [edi]
jmp 0x49a3cc
mov eax, edi
lea ecx, [ebp - 0x28]
mov byte [eax + 0x14], 0
call fcn.004239c0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x49a41b
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x2c], 0
jmp 0x49a41b
cmp dword [ebp - 0x34], 0x14
mov ecx, edi
je 0x49a402
push 0
push 0x14
call fcn.0041d420
jmp 0x49a40b
lea eax, [ebp - 0x28]
push eax
call fcn.00417560
lea ecx, [ebp - 0x28]
call fcn.004239c0
lea ecx, [ebp - 0x2c]
call fcn.0049a100
lea ecx, [ebp - 0x30]
call fcn.0049a120
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret