Function at 0x4596b0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ad6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x62c2a0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 0
lea eax, [esp + 0x18]
mov byte [esp + 0x68], 1
push eax
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0x8004
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x459765
push 0x6256a0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x18
push eax
call fcn.00586852
mov edi, dword [ebp + 8]
push 0
mov eax, dword [edi + 0x28]
mov eax, dword [eax]
push dword [eax + 0x1c]
push dword [eax + 0x18]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4597e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x19
lea ecx, [esp + 0x38]
call fcn.0045c450
mov byte [esp + 0x68], 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x30]
mov ecx, 0x5ef390
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x2c], 0
cmovne ecx, eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00433400
push 0x62566c
lea eax, [esp + 0x28]
push eax
call fcn.00586852
mov ebx, dword [ebp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push dword [ebx + 0x10]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x459862
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1a
lea ecx, [esp + 0x38]
call fcn.0045c450
mov byte [esp + 0x68], 3
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x30]
mov ecx, 0x5ef390
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x2c], 0
cmovne ecx, eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00433400
push 0x62566c
lea eax, [esp + 0x28]
push eax
call fcn.00586852
push dword [esp + 0x1c]
lea ecx, [esp + 0x50]
call fcn.00432ce0
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x1c]
push eax
push esi
push 0
push 0
push dword [ebx + 0x10]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
jne 0x4598cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1b
lea ecx, [esp + 0x38]
call fcn.0045c450
mov byte [esp + 0x68], 4
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
call fcn.0045c410
push 0x62566c
lea eax, [esp + 0x28]
push eax
call fcn.00586852
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
inc eax
push eax
call fcn.00432ce0
push 1
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], 0
push eax
lea ecx, [esp + 0x44]
call fcn.00433050
mov ecx, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x1c], ecx
cmp ecx, 0xffffffff
je 0x459925
lea eax, [esi + ecx]
dec ecx
push 1
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x40]
push eax
call fcn.00433050
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
jne 0x459908
mov ecx, dword [edi + 0x28]
push dword [esp + 0x40]
push dword [esp + 0x40]
mov ecx, dword [ecx + 8]
call fcn.00434b00
mov ecx, edi
call fcn.00434610
lea ecx, [esp + 0x3c]
call fcn.00432cb0
lea ecx, [esp + 0x4c]
call fcn.00432cb0
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10