Function at 0x1002f6c0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x10037e55
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x1005a018]
xor eax, ebp
mov dword [ebp + 0x64], 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 + 0x74]
xor ebx, ebx
mov edi, ecx
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x44], 0x78
push str._Utils::MD5::Calculate_
lea edx, [ebp + 0x44]
lea ecx, [ebp + 0x3c]
lea esi, [ebp]
mov dword [ebp - 4], ebx
call fcn.10002250
push 0xf0000000
mov esi, 1
push esi
push ebx
push ebx
lea ecx, [ebp + 0x38]
push ecx
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x40], ebx
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1002f764
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1004e39c
lea edx, [ebp + 0x1c]
mov ecx, str.CryptAcquireContext
push edx
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], ecx
call sub.MSVCR90.dll__CxxThrowException
mov ecx, dword [ebp + 0x38]
lea eax, [ebp + 0x40]
push eax
push ebx
push ebx
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1002f79c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1004e39c
lea edx, [ebp + 0x14]
mov ecx, 0x1004c21c
push edx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], ecx
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x40]
push ebx
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1002f7cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1004e39c
lea edx, [ebp + 0xc]
mov ecx, 0x1004c23c
push edx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
call sub.MSVCR90.dll__CxxThrowException
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x40]
push ebx
lea eax, [ebp + 0x2c]
push eax
push ecx
push 2
push edx
mov dword [ebp + 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1002f901
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x24], eax
push 0x1004e39c
lea eax, [ebp + 0x24]
mov ecx, 0x1004c258
push eax
mov dword [ebp + 0x28], ecx
call sub.MSVCR90.dll__CxxThrowException
mov ecx, dword [0x1005b960]
xor ebx, ebx
cmp ecx, ebx
je 0x1002f8e5
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0x1388
call eax
test eax, eax
je 0x1002f8e5
push 1
push 2
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int_]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP90.dll_public:_static_class_std::locale_const____cdecl_std::locale::classic_void_]
mov edx, dword [ebp - 0x90]
push eax
lea ecx, [ebp + 0x34]
push ecx
mov ecx, dword [edx + 4]
lea ecx, [ebp + ecx - 0x90]
call dword [sym.imp.MSVCP90.dll_public:_class_std::locale___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const__]
lea ecx, [ebp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::locale::destructor_void_]
lea eax, [ebp - 0x90]
push str._Utils::MD5::Calculate_
push eax
call fcn.10001d00
mov ecx, dword [ebp + 0x30]
push eax
call fcn.10001fe0
add esp, 0xc
lea ecx, [ebp + 0x48]
push ecx
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void_]
mov byte [ebp - 4], 5
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x1002f8b1
lea eax, [ebp + 0x4c]
mov esi, dword [ebp + 0x5c]
mov ecx, dword [0x1005b960]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 0x10]
push 0x1388
call eax
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void_]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ecx]
mov dword [ebp + 0x44], edx
mov dword [ebp + 0x3c], ebx
mov dword [ebp - 4], 1
mov eax, 0x1002f8fd
ret
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x3c], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x40]
cmp eax, ebx
je 0x1002f918
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp + 0x38]
cmp eax, ebx
je 0x1002f927
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, dword [ebp + 0x3c]
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.100023c0
mov eax, dword [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
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 + 0x64]
xor ecx, ebp
call fcn.100344d1
add ebp, 0x68
mov esp, ebp
pop ebp
ret