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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1147729
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x115f604]
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 esi, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x12c], edi
push edi
push 0x106ba40
lea eax, [ebp - 0x120]
push eax
push 0x106b9e8
lea ecx, [ebp - 0x11c]
push 2
push ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x130], edi
call fcn.01075110
add esp, 0x18
mov eax, dword [esi]
cmp eax, edi
mov byte [ebp - 4], 3
je 0x112f8aa
push eax
call fcn.01083cad
add esp, 4
mov dword [esi], edi
mov eax, dword [ebp + 0xc]
cmp eax, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
jbe 0x112f957
test al, 7
jne 0x112f957
push 0xf0000000
push 1
push 0x1069c14
push edi
lea edx, [ebp - 0x130]
shr eax, 3
push edx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x112f92d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x112f8f6
call esi
jmp 0x112f902
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x120], eax
call fcn.01127f00
test al, al
je 0x112f961
mov eax, dword [ebp - 0x120]
push eax
push 0x106b998
push 0x106b940
push edi
call fcn.01128b70
add esp, 0x10
jmp 0x112f961
mov eax, dword [ebp - 0x130]
cmp eax, edi
jne 0x112f9ee
call fcn.01127f00
test al, al
je 0x112f957
push 0x106b8e8
push 0x106b890
push edi
call fcn.01128b70
add esp, 0xc
mov dword [ebp - 0x120], 0x8000ffff
mov esi, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 2
call fcn.01075230
mov eax, dword [ebp - 0x12c]
cmp eax, edi
je 0x112f991
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x112f991
call fcn.01071a70
mov eax, dword [ebp - 0x124]
cmp eax, edi
je 0x112f9a8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x124], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x112f9ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.010840d6
mov esp, ebp
pop ebp
ret 0xc
push edi
push edi
push eax
mov dword [ebp - 0x12c], eax
call dword [sym.imp.ADVAPI32.dll_CryptContextAddRef]
test eax, eax
jne 0x112fa06
call fcn.01071a70
mov edx, dword [ebp - 0x12c]
lea ecx, [ebp - 0x124]
push ecx
push edi
push edi
push 0x8004
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x112fa2c
call fcn.01071a70
jmp 0x112fa2e
xor eax, eax
cmp eax, edi
mov dword [ebp - 0x120], eax
jge 0x112fa64
call fcn.01127f00
test al, al
je 0x112f961
mov eax, dword [ebp - 0x120]
push eax
push 0x106b838
push 0x106b7e0
push edi
call fcn.01128b70
add esp, 0x10
jmp 0x112f961
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
push edi
lea edx, [eax + eax]
push edx
push ecx
lea ecx, [ebp - 0x124]
call fcn.010d3d60
cmp eax, edi
mov dword [ebp - 0x120], eax
jge 0x112fab1
call fcn.01127f00
test al, al
je 0x112f961
mov eax, dword [ebp - 0x120]
push eax
push 0x106b790
push 0x106b738
push edi
call fcn.01128b70
add esp, 0x10
jmp 0x112f961
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x128], edi
call fcn.010d3dc0
cmp eax, edi
mov dword [ebp - 0x120], eax
jge 0x112faff
call fcn.01127f00
test al, al
je 0x112f961
mov edx, dword [ebp - 0x120]
push edx
push 0x106b6e8
push 0x106b690
push edi
call fcn.01128b70
add esp, 0x10
jmp 0x112f961
mov eax, dword [ebp - 0x128]
cmp eax, ebx
jae 0x112fb34
call fcn.01127f00
test al, al
je 0x112fb25
push 0x106b630
push 0x106b5d8
push edi
call fcn.01128b70
add esp, 0xc
mov dword [ebp - 0x120], 0x80070057
jmp 0x112f961
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0112f0e0
test al, al
jne 0x112fb51
mov dword [ebp - 0x120], 0x8007000e
jmp 0x112f961
mov eax, dword [esi]
lea ecx, [ebp - 0x128]
push ecx
push eax
lea ecx, [ebp - 0x124]
call fcn.010d3e00
cmp eax, edi
mov dword [ebp - 0x120], eax
jl 0x112f961
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0112f0e0
jmp 0x112f961