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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aed6d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x500ef0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebx + 0x10]
xor edx, edx
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x50], ecx
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
xor esi, esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x38], esi
cmp byte [edi + 0x2c], cl
je 0x409335
mov edx, dword [edi + 0x28]
cmp eax, dword [edx + 8]
mov edx, esi
jae 0x409335
mov esi, dword [edi + 0x28]
imul eax, eax, 0x3a
mov esi, dword [esi + 0xc]
add esi, eax
add esi, dword [edi + 8]
mov dword [ebp - 0x38], esi
mov esi, dword [esi + 0xd]
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x40936a
push esi
call fcn.0047fec0
add esp, 4
test eax, eax
je 0x409366
mov edx, eax
mov dword [ebp - 0x40], 0
mov ecx, esi
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], 0
jmp 0x40936a
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp - 0x38]
cmp ecx, dword [eax + 0xd]
je 0x40937c
mov esi, 1
jmp 0x40954c
cmp byte [edi + 0x2c], 0
je 0x409547
mov ecx, dword [edi + 0x28]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ecx + 8]
jae 0x409547
mov ecx, dword [ecx + 0xc]
imul eax, eax, 0x3a
add ecx, eax
add ecx, dword [edi + 8]
je 0x409547
cmp byte [ecx + 4], 1
jne 0x409547
mov eax, dword [ecx + 5]
test eax, eax
je 0x409401
mov dl, byte [ecx + 0x39]
mov dword [ebp - 0x30], edx
test dl, dl
mov edx, dword [ebp - 0x48]
je 0x4093e6
push dword [ebp - 0x30]
push eax
mov eax, dword [edi + 8]
add eax, dword [ecx + 9]
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f8d0
test al, al
je 0x409547
mov esi, dword [ebp - 0x2c]
jmp 0x409401
cmp esi, eax
jb 0x409547
push eax
mov esi, eax
mov eax, dword [edi + 8]
add eax, dword [ecx + 9]
push eax
push edx
call fcn.0047b690
add esp, 0xc
cmp esi, dword [ebp - 0x44]
mov eax, esi
mov edi, dword [ebp - 0x48]
cmova eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
test edi, edi
je 0x409504
test esi, esi
je 0x409504
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 0x409443
mov esi, str.sha1Hash:acqure_context_failed
jmp 0x4094d3
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x409464
mov esi, str.create_crypt_hash_failed
jmp 0x4094d3
push 0
push esi
push edi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40947c
mov esi, str.sha1Hash:crypth_hash_failed
jmp 0x4094d3
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x4c]
push 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 4
push dword [ebp - 0x34]
mov dword [ebp - 0x4c], 4
call esi
test eax, eax
jne 0x4094ac
mov esi, str.sha1Hash:get_hash_size_failed
jmp 0x4094d3
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push 2
push dword [ebp - 0x34]
call esi
test eax, eax
jne 0x4094c8
mov esi, str.sha1Hash:calculate_the_sha1_failed
jmp 0x4094d3
cmp dword [ebp - 0x2c], 0x14
je 0x4094eb
mov esi, str.sha1Hash:the_length_of_sha1_is_mismatched_by_expected
call fcn.0040bbb0
push esi
push 0
push eax
call fcn.0040bac0
add esp, 0xc
mov esi, 0xb
jmp 0x40954c
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0xf0000000
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x409512
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov esi, dword [ebp - 0x38]
lea edx, [ebp - 0x28]
add esi, 0x25
mov edi, 0x10
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x409540
add edx, 4
add esi, 4
sub edi, 4
jae 0x409520
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x48]
call fcn.0040e510
mov esi, eax
jmp 0x40954c
mov esi, 0x1e
jmp 0x40954c
mov esi, 0x11
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40955c
push eax
call fcn.0047feb0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047a65d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc