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

Disassembly:
sub esp, 0x9c
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa8]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0xb0]
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebp
mov byte [esp + 0x1c], 6
mov byte [esp + 0x1d], 2
mov word [esp + 0x1e], cx
cmp dword [esp + 0xc0], ebp
je 0x439a44
mov eax, dword [esi + 0x34]
mov edx, dword [0x5ec790]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], 0x2400
mov dword [esp + 0x2c], 0x31415352
mov dword [esp + 0x34], ebp
cmp eax, 4
jbe 0x439a28
mov eax, 4
mov ecx, dword [esi + 0x28]
push eax
push ecx
lea edx, [esp + 0x3c]
push 4
push edx
call fcn.0053f74e
mov ebx, dword [esi + 0x34]
add esp, 0x10
add ebx, 0x14
jmp 0x439a91
mov eax, dword [0x5ec78c]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x18]
add eax, eax
add eax, eax
add eax, eax
xor ecx, ecx
mov dword [esp + 0x3c], eax
shr eax, 3
add eax, 0x14
mov dword [esp + 0x20], 0x2200
mov dword [esp + 0x38], 0x31535344
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
lea ebx, [eax + eax*2]
cmp dword [esp + 0x10], ebp
jne 0x439a9e
xor eax, eax
jmp 0x439d86
push ebx
call fcn.004ff95f
push ebx
mov ebp, eax
push 0
push ebp
call fcn.0053ff80
add esp, 0x10
cmp dword [esp + 0xc0], 0
push 8
je 0x439af8
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebp
call fcn.0053f74e
push 0xc
lea edx, [esp + 0x40]
push edx
lea eax, [ebx - 8]
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.0053f74e
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x2c]
push edx
push eax
lea ecx, [ebx - 0x14]
push ecx
lea edx, [ebp + 0x14]
push edx
call fcn.0053f74e
jmp 0x439b99
lea eax, [esp + 0x20]
push eax
push ebx
push ebp
call fcn.0053f74e
push 8
lea ecx, [esp + 0x4c]
push ecx
lea edx, [ebx - 8]
push edx
lea eax, [ebp + 8]
push eax
call fcn.0053f74e
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 8]
push ecx
push edx
lea eax, [ebx - 0x10]
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.0053f74e
mov edx, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
push edx
add edi, 0x10
push eax
mov ecx, ebx
sub ecx, edi
push ecx
lea edx, [edi + ebp]
push edx
call fcn.0053f74e
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x10]
add esp, 0x40
push eax
add edi, 0x14
push ecx
mov edx, ebx
sub edx, edi
push edx
lea eax, [edi + ebp]
push eax
call fcn.0053f74e
mov ecx, dword [esi + 0x24]
add edi, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
push ecx
push edx
mov eax, ebx
sub eax, edi
push eax
lea ecx, [edi + ebp]
push ecx
call fcn.0053f74e
add edi, dword [esi + 0x18]
push 0x18
lea edx, [esp + 0x64]
push edx
mov eax, ebx
sub eax, edi
push eax
add edi, ebp
push edi
call fcn.0053f74e
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x40]
add esp, 0x30
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push ebx
push ebp
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x439d6a
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x8004
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x439d5b
cmp dword [esp + 0xc0], 0
je 0x439c84
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x439d5b
push 0xb
push 0x578874
push edi
call fcn.005419ae
mov esi, dword [esp + 0xc0]
add esp, 0xc
test eax, eax
jne 0x439c38
add edi, 0xf
sub esi, 0xf
push esi
call fcn.004ff95f
push esi
push edi
mov ebx, eax
push esi
push ebx
call fcn.0053f74e
push esi
push esi
push ebx
call fcn.00438de0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add esp, 0x20
push 0
push 0
push eax
push esi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
je 0x439c76
mov dword [esp + 0x18], 1
push ebx
call fcn.004ff96a
add esp, 4
jmp 0x439d5b
push 0xb
push 0x578868
push edi
call fcn.005419ae
add esp, 0xc
test eax, eax
jne 0x439c9b
add edi, 0xf
push 0x14
push edi
lea edx, [esp + 0x74]
push 0x14
push edx
call fcn.0053f74e
push 0x14
add edi, 0x14
push edi
lea eax, [esp + 0x70]
push 0x14
push eax
call fcn.0053f74e
push 0x14
lea ecx, [esp + 0x90]
push 0x14
push ecx
call fcn.00438de0
push 0x14
lea edx, [esp + 0x88]
push 0x14
push edx
call fcn.00438de0
push 0x14
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0xc0]
push 0x28
push ecx
call fcn.0053f74e
add esp, 0x48
push 0x14
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x9c]
push 0x14
push eax
call fcn.0053f74e
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
add esp, 0x10
push 0
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x439d5b
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push 0
push ecx
push 0x28
lea edx, [esp + 0x90]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
je 0x439d5b
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x439d6a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebp
call fcn.004ff96a
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x439d82
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053f73f
add esp, 0x9c
ret 0x14