Function at 0x4d47a0
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bee50
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 8]
cmp eax, 3
ja case.default.0x4d47e3
jmp dword [eax*4 + 0x4d4a64]
mov eax, str.SHA1
jmp 0x4d4804
mov eax, 0x73a5fc
jmp 0x4d4804
mov eax, 0x73a694
jmp 0x4d4804
mov eax, 0x73a878
push 0
push 0
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js case.default.0x4d47e3
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 4
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push eax
push str.HashDigestLength
push dword [ebp - 0x50]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
jns 0x4d485e
push 0
push dword [ebp - 0x50]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp case.default.0x4d47e3
push dword [ebp - 0x54]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x64], esi
push 0
test esi, esi
je 0x4d4850
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push eax
push dword [ebp - 0x50]
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
jns 0x4d48b9
push 0
push dword [ebp - 0x50]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
jmp case.default.0x4d47e3
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
jb 0x4d48da
mov ebx, dword [ebx]
lea edx, [ebp - 0x30]
mov ecx, ebx
call fcn.004ed160
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
push 0
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
push 0
test eax, eax
jns 0x4d496d
push dword [ebp - 0x50]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb case.default.0x4d47e3
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d4943
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4a5e
push edx
push ecx
call fcn.0065106e
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x54]
push esi
push dword [ebp - 0x58]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jns 0x4d4982
push 0
jmp 0x4d4904
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4c]
push dword [ebp - 0x54]
push esi
push eax
call fcn.0052f070
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x38], 0x10
cmovae ecx, dword [ebp - 0x4c]
call fcn.004ed3b0
mov edx, dword [ebp - 0x38]
mov bl, 1
cmp edx, 0x10
jb 0x4d49f8
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d49d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4a59
push edx
push ecx
call fcn.0065106e
add esp, 8
jmp 0x4d49f8
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4d4a08
push 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4d4a16
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4d4a52
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d4a48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4a5e
push edx
push ecx
call fcn.0065106e
add esp, 8
mov al, bl
jmp 0x4d494f
call fcn.0066bea5
call fcn.0066bea5
nop
ljmp 0x4d47