Function at 0x47bb20
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bacbe
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4ec1e4]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
call fcn.00466b20
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.00466b20
add esp, 0x10
push 8
push 0
push 0x4c4cfc
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x47bc8c
push 0
lea eax, [ebp - 0x58]
push eax
push 4
lea eax, [ebp - 0x50]
push eax
push str.HashDigestLength
push dword [ebp - 0x48]
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x47bc8c
mov ebx, dword [edi + 4]
mov ecx, ebx
mov edx, dword [edi]
sub ecx, edx
mov esi, dword [ebp - 0x50]
cmp esi, ecx
jae 0x47bc0e
lea eax, [edx + esi]
jmp 0x47bc38
jbe 0x47bc3b
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x47bc27
lea eax, [ebp - 0x49]
mov ecx, edi
push eax
push esi
call fcn.00467580
jmp 0x47bc3b
sub esi, ecx
push esi
push 0
push ebx
call fcn.0048eda0
add esp, 0xc
lea eax, [esi + ebx]
mov dword [edi + 4], eax
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
push 0
push 0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
js 0x47bc8c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x44]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
js 0x47bc8c
push 0
push dword [ebp - 0x50]
push dword [edi]
push dword [ebp - 0x44]
call sub.bcrypt.dll_BCryptFinishHash
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x47bc99
push eax
call sub.bcrypt.dll_BCryptDestroyHash
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x47bca8
push 0
push eax
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x47bcd8
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47bcce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47bd38
push edx
push ecx
call fcn.0048c9bc
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x47bd1a
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47bd10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47bd38
push edx
push ecx
call fcn.0048c9bc
add esp, 8
mov eax, edi
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.0048c98b
mov esp, ebp
pop ebp
ret
call fcn.0049166f
int3