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

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xffffffffffffffff
push 0x49cdc0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4bfdd0]
xor eax, ebp
mov dword [ebp + 0x80], 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 + 0x8c]
mov edi, ecx
xor esi, esi
push 0x4a6221
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], esi
call fcn.004051c0
push 0x7e
mov dword [ebp - 4], esi
lea ecx, [ebp + 1]
push esi
mov byte [ebp - 4], 1
push ecx
mov byte [ebp], 0
call fcn.00487460
mov eax, dword [edi]
mov ebx, 0x10
mov dword [ebp - 0x1c], ebx
mov esi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
add esp, 0xc
or eax, ecx
jge 0x40f63c
push esi
mov ecx, edi
call fcn.004049c0
mov edi, dword [edi]
push 0xf0000020
push 1
push 0
push 0
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40f71c
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40f71c
mov edx, dword [ebp - 0x18]
push 0
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40f71c
mov edx, dword [ebp - 0x18]
push 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp]
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40f71c
lea ecx, [ebp - 0x14]
call fcn.004045c0
push 0x4a6221
lea ecx, [ebp - 0x20]
call fcn.004051c0
mov byte [ebp - 4], 2
xor esi, esi
cmp esi, dword [ebp - 0x1c]
jge 0x40f6f9
movzx eax, byte [ebp + esi]
push eax
lea ecx, [ebp - 0x20]
push str._02x
push ecx
call fcn.004051a0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ede0
add esi, 1
jmp 0x40f6c8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f71c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0x24]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edi, dword [ebp - 0x28]
mov edx, dword [edi]
test edx, edx
jne 0x40f73f
xor eax, eax
jmp 0x40f755
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40f744
sub eax, esi
js 0x40f824
cmp eax, dword [edx - 8]
jg 0x40f824
mov dword [edx - 0xc], eax
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40f791
push esi
lea ecx, [ebp - 0x14]
call fcn.004049c0
mov edx, dword [ebp - 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.00485f00
push eax
call fcn.00404870
add esp, 0xc
test esi, esi
jl 0x40f824
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax - 8]
jg 0x40f824
mov dword [eax - 0xc], esi
mov ecx, dword [ebp - 0x14]
mov byte [esi + ecx], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00404650
mov esi, dword [ebp - 0x2c]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f7fb
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 + 0x80]
xor ecx, ebp
call fcn.00483c76
add ebp, 0x84
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404970
mov dword [ebp - 4], 0
mov eax, 0x40f76e
ret