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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e62c1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
mov eax, dword [0x1013d0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
push 0xf0000000
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push dword [ebp + 0x10]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1004a65e
call fcn.1003e850
test eax, eax
js 0x1004a7ba
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1004a685
call fcn.1003e850
test eax, eax
js 0x1004a7d7
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 4
push eax
push 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1004a6b9
call fcn.1003e850
test eax, eax
js 0x1004a7f4
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, dword [esi]
sub ecx, edx
cmp ecx, dword [ebp - 0x10]
jbe 0x1004a811
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
sub eax, dword [ebp - 0x10]
push eax
push edx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.10049440
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.1004a310
add esp, 0x10
mov eax, dword [esi + 4]
mov ecx, eax
sub ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x28]
sub eax, ecx
mov edx, dword [ebp - 0x2c]
sub esi, edx
mov byte [ebp - 4], 3
cmp esi, eax
jne 0x1004a811
sub esi, 4
jb 0x1004a742
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1004a747
add edx, 4
add ecx, 4
sub esi, 4
jae 0x1004a731
cmp esi, 0xfffffffc
je 0x1004a778
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1004a774
cmp esi, 0xfffffffd
je 0x1004a778
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x1004a774
cmp esi, 0xfffffffe
je 0x1004a778
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x1004a774
cmp esi, 0xffffffff
je 0x1004a778
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x1004a778
xor al, al
jmp 0x1004a77a
mov al, 1
test al, al
je 0x1004a811
lea ecx, [ebp - 0x2c]
call fcn.100363c0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1004a79f
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
call fcn.10049620
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.10004b50
push 0x10126738
lea eax, [ebp - 0x38]
push eax
call fcn.10006a50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.10004b50
push 0x10126738
lea eax, [ebp - 0x38]
push eax
call fcn.10006a50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.10004b50
push 0x10126738
lea eax, [ebp - 0x38]
push eax
call fcn.10006a50
push 0xcaa40001
lea ecx, [ebp - 0x38]
call fcn.100043d0
push 0x1012ad98
lea eax, [ebp - 0x38]
push eax
call fcn.10006a50
int3