Function at 0x10027e60
Capabilities:
Hash data via bcrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009cc40
push 0x10037960
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100a2bb4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov dword [ebp - 0x2c], edi
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], 0
mov ecx, 0x100a47b4
call dword [sym.imp.MSDART.DLL_public:_void___thiscall_CReaderWriterLock3AR::ReadLock_void_]
cmp byte [0x100a4761], 0
je 0x10027f78
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov eax, dword [0x100a4768]
call fcn.10038910
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xfffffffe
test eax, eax
je 0x1003cd23
push 0
push 0
push 0
push dword [0x100a4768]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100a476c]
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
jne 0x1003cd51
push eax
push edi
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jne 0x1003cd7a
push eax
push 0x20
push dword [ebp + 8]
push dword [ebp - 0x24]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jne 0x1003cda3
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10027f4c
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
mov ecx, 0x100a47b4
call dword [sym.imp.MSDART.DLL_public:_void___thiscall_CReaderWriterLock3AR::ReadUnlock_void_]
mov eax, esi
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10037870
mov esp, ebp
pop ebp
ret
xor esi, esi
mov ecx, 0x100a47b4
call dword [sym.imp.MSDART.DLL_public:_void___thiscall_CReaderWriterLock3AR::ConvertSharedToExclusive_void_]
cmp byte [0x100a4761], 0
jne 0x1002801a
push esi
push esi
push 0x100042d4
push 0x100a476c
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jne 0x1003cbcf
mov dword [ebp - 0x20], esi
push eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0x100a4768
push 0x100042e4
push dword [0x100a476c]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
jne 0x1003cc0a
push eax
lea eax, [ebp - 0x20]
push eax
push 4
push 0x100a4764
push 0x10004300
push dword [0x100a476c]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
jne 0x1003cc45
cmp dword [0x100a4764], 0x20
jne 0x1003cc80
mov byte [0x100a4761], 1
cmp byte [0x100a4761], 0
je 0x1003ccb1
mov ecx, 0x100a47b4
call dword [sym.imp.MSDART.DLL_public:_void___thiscall_CReaderWriterLock3AR::ConvertExclusiveToShared_void_]
mov dword [ebp - 0x20], esi
test esi, esi
jns 0x10027ec6
jmp 0x1003ccd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1003cbe4
movzx esi, si
or esi, 0x80070000
test byte [0x100a4750], 2
je 0x1002800d
push 0x17b
mov edx, 0x1000561c
mov ecx, esi
call fcn.10051341
add esp, 4
jmp 0x1002800d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1003cc1f
movzx esi, si
or esi, 0x80070000
test byte [0x100a4750], 2
je 0x1002800d
push 0x185
mov edx, 0x1000561c
mov ecx, esi
call fcn.10051341
add esp, 4
jmp 0x1002800d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1003cc5a
movzx esi, si
or esi, 0x80070000
test byte [0x100a4750], 2
je 0x1002800d
push 0x18d
mov edx, 0x1000561c
mov ecx, esi
call fcn.10051341
add esp, 4
jmp 0x1002800d
test byte [0x100a4750], 2
je 0x1003cca7
push 0x196
mov edx, 0x1000561c
mov ecx, 0x8000ffff
call fcn.10051341
add esp, 4
mov esi, eax
jmp 0x1002800d
mov esi, 0x8000ffff
jmp 0x1002800d
mov eax, dword [0x100a476c]
test eax, eax
je 0x1002801a
push 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov dword [0x100a476c], 0
jmp 0x1002801a
test byte [0x100a4750], 2
je 0x10027f3e
push 0x125
jmp 0x1003cdca
test byte [0x100a4750], 2
je 0x1003cd47
push 0x137
mov edx, 0x10012cd8
mov ecx, 0x80004005
call fcn.10051341
mov esi, eax
jmp 0x1003cdd6
mov esi, 0x80004005
jmp 0x10027f3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1003cd66
movzx esi, si
or esi, 0x80070000
test byte [0x100a4750], 2
je 0x10027f3e
push 0x13f
jmp 0x1003cdca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1003cd8f
movzx esi, si
or esi, 0x80070000
test byte [0x100a4750], 2
je 0x10027f3e
push 0x147
jmp 0x1003cdca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1003cdb8
movzx esi, si
or esi, 0x80070000
test byte [0x100a4750], 2
je 0x10027f3e
push 0x14f
mov edx, 0x10012cd8
mov ecx, esi
call fcn.10051341
add esp, 4
jmp 0x10027f3e