Function at 0x4da760
Capabilities:
Hash data via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x5d7942
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov dword [esp + 0x30], ecx
mov ebp, dword [esp + 0x68]
xor edi, edi
cmp ebp, edi
je 0x4da9b9
push edi
call fcn.004d1ed0
cmp eax, edi
je 0x4da9b9
mov ecx, dword [eax + 4]
push eax
call fcn.00477410
mov esi, eax
cmp esi, edi
je 0x4da9b9
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
cmp eax, 5
jne 0x4da9b9
push 0x5fae08
lea ecx, [esp + 0x38]
call fcn.0048cd50
lea eax, [esp + 0x34]
push eax
mov ecx, esi
mov dword [esp + 0x60], 1
call fcn.004b7ac0
cmp dword [esp + 0x50], 0x10
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x34], 0x5f1558
jb 0x4da817
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004274fc
add esp, 4
cmp ebx, edi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
mov dword [esp + 0x34], 0x5f13d0
je 0x4da9b9
mov ecx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call fcn.004b5810
test eax, 0xfffffffe
jbe 0x4da9a1
jmp 0x4da858
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
add esi, esi
push esi
mov ecx, ebx
call fcn.004b5830
mov edi, eax
test edi, edi
je 0x4da9a1
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
cmp eax, 1
jne 0x4da9a1
add esi, eax
push esi
mov ecx, ebx
call fcn.004b5830
mov esi, eax
test esi, esi
je 0x4da9a1
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
cmp eax, 1
jne 0x4da9a1
mov ecx, edi
call fcn.004b57f0
fnstcw word [esp + 0x68]
movzx eax, word [esp + 0x68]
or eax, 0xc00
mov dword [esp + 0x20], eax
mov ecx, esi
fldcw word [esp + 0x20]
fistp qword [esp + 0x28]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x28], edi
fldcw word [esp + 0x68]
call fcn.004b57f0
fnstcw word [esp + 0x68]
movzx eax, word [esp + 0x68]
mov ecx, dword [ebp + 4]
or eax, 0xc00
mov dword [esp + 0x20], eax
push 0
mov eax, edi
fldcw word [esp + 0x24]
cdq
push 0
push edx
mov edx, dword [ecx + 0x14]
lea edi, [ebp + 4]
fistp qword [esp + 0x2c]
mov esi, dword [esp + 0x2c]
push eax
push edi
fldcw word [esp + 0x7c]
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
mov ecx, ebp
call edx
lea ebx, [eax + esi]
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
call edx
cmp ebx, eax
jbe 0x4da944
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
call edx
mov esi, eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
mov ecx, ebp
call edx
sub esi, eax
push esi
call fcn.00427501
add esp, 4
push 0
mov ebx, eax
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
push esi
push ebx
push edi
call ecx
mov edx, dword [esp + 0x64]
push 0
push esi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
call fcn.004274fc
mov eax, dword [esp + 0x2c]
add eax, esi
add esp, 4
cmp eax, dword [esp + 0x18]
jbe 0x4da983
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add esi, 1
mov dword [esp + 0x14], esi
call fcn.004b5810
shr eax, 1
cmp esi, eax
jb 0x4da854
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
cmp eax, dword [esp + 0x18]
jbe 0x4da9b9
mov ecx, dword [esp + 0x30]
mov byte [ecx + 0xf], 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8