Function at 0x100180d0
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 0x100814c0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100bb500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf0000000
push dword [ebp + 8]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 0x14]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10018140
call fcn.100174f0
test eax, eax
jns 0x10018140
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10049360
push 0x100adf48
lea eax, [ebp - 0x2c]
push eax
call fcn.10063e94
mov edi, dword [ebp + 0x10]
push edi
push 0
push 0
push 0x8004
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x10018180
call fcn.100174f0
test eax, eax
jns 0x10018180
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10049360
push 0x100adf48
lea eax, [ebp - 0x2c]
push eax
call fcn.10063e94
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 4
push eax
push 4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x100181cc
call fcn.100174f0
test eax, eax
jns 0x100181cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10049360
push 0x100adf48
lea eax, [ebp - 0x2c]
push eax
call fcn.10063e94
mov esi, dword [ebp + 0x18]
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp eax, dword [ebp - 0x10]
ja 0x100181f4
push 0xcaa40001
lea ecx, [ebp - 0x2c]
call fcn.10051630
push 0x100ad9f4
lea eax, [ebp - 0x2c]
push eax
call fcn.10063e94
push 0
push dword [0x100bb01c]
push dword [0x100bb020]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x10018234
call fcn.100174f0
test eax, eax
jns 0x10018234
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10049360
push 0x100adf48
lea eax, [ebp - 0x2c]
push eax
call fcn.10063e94
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sub eax, dword [ebp - 0x10]
push 0
push eax
push ecx
mov ecx, edi
call fcn.100173f0
test eax, eax
jns 0x1001826a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10049360
push 0x100adf48
lea eax, [ebp - 0x2c]
push eax
call fcn.10063e94
lea ecx, [ebp - 0x20]
call fcn.10036080
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.1000c6e0
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push dword [ebp - 0x20]
call fcn.10017eb0
test eax, eax
jns 0x100182b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10049360
push 0x100adf48
lea eax, [ebp - 0x2c]
push eax
call fcn.10063e94
mov edi, dword [esi + 4]
mov ecx, dword [ebp - 0x10]
sub edi, ecx
mov ebx, dword [esi]
mov esi, edi
mov edx, dword [ebp - 0x20]
sub ecx, 4
jb 0x100182d5
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x100182da
add edx, 4
add esi, 4
sub ecx, 4
jae 0x100182c4
cmp ecx, 0xfffffffc
je 0x10018317
mov al, byte [edx]
cmp al, byte [esi]
jne 0x100181d9
cmp ecx, 0xfffffffd
je 0x10018317
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x100181d9
cmp ecx, 0xfffffffe
je 0x10018317
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x100181d9
cmp ecx, 0xffffffff
je 0x10018317
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
jne 0x100181d9
mov ecx, dword [ebp + 0x1c]
push edi
push ebx
call fcn.10016f50
lea ecx, [ebp - 0x20]
call fcn.1000c610
lea ecx, [ebp + 0xc]
call fcn.100170e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret