Function at 0x43b070
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e713
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x5e2500]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x558], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x538], 0
mov dword [ebp - 0x53c], 0
mov dword [ebp - 0x134], 0
mov eax, dword [str.0123456789abcdef]
mov dword [ebp - 0x130], eax
mov ecx, dword [0x58cb28]
mov dword [ebp - 0x12c], ecx
mov edx, dword [0x58cb2c]
mov dword [ebp - 0x128], edx
mov eax, dword [0x58cb30]
mov dword [ebp - 0x124], eax
mov cl, byte [0x58cb34]
mov byte [ebp - 0x120], cl
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp + 8]
call fcn.004018f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x538], eax
cmp dword [ebp - 0x538], 0xffffffff
je 0x43b348
push 0xf0000000
push 1
push 0
push 0
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x43b330
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x8004
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x43b318
mov dword [ebp - 0x540], 0
push 0
lea edx, [ebp - 0x53c]
push edx
push 0x400
lea eax, [ebp - 0x534]
push eax
mov ecx, dword [ebp - 0x538]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x540], eax
cmp dword [ebp - 0x540], 0
je 0x43b20e
cmp dword [ebp - 0x53c], 0
jne 0x43b1cb
jmp 0x43b20e
push 0
mov edx, dword [ebp - 0x53c]
push edx
lea eax, [ebp - 0x534]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [ebp - 0x544], eax
cmp dword [ebp - 0x544], 0
jne 0x43b20c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push str.CryptHashData_failed
mov ecx, dword [ebp + 0x10]
call fcn.00402640
jmp 0x43b20e
jmp 0x43b18f
cmp dword [ebp - 0x540], 0
jne 0x43b232
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push str.ReadFile_failed
mov ecx, dword [ebp + 0x10]
call fcn.00402640
jmp 0x43b316
mov dword [ebp - 0x548], 0x100
push 0
lea edx, [ebp - 0x548]
push edx
lea eax, [ebp - 0x11c]
push eax
push 2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x43b300
mov dword [ebp - 0x54c], 0
jmp 0x43b27b
mov edx, dword [ebp - 0x54c]
add edx, 1
mov dword [ebp - 0x54c], edx
cmp dword [ebp - 0x54c], 0x10
jae 0x43b2fe
lea ecx, [ebp - 0x550]
call fcn.00401fd0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x54c]
movzx ecx, byte [ebp + eax - 0x11c]
and ecx, 0xf
movsx edx, byte [ebp + ecx - 0x130]
push edx
mov eax, dword [ebp - 0x54c]
movzx ecx, byte [ebp + eax - 0x11c]
sar ecx, 4
movsx edx, byte [ebp + ecx - 0x130]
push edx
push 0x58cb60
lea eax, [ebp - 0x550]
push eax
call fcn.00403430
add esp, 0x10
lea ecx, [ebp - 0x550]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004118f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x550]
call fcn.00402000
jmp 0x43b26c
jmp 0x43b316
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push str.CryptGetHashParam_failed
mov ecx, dword [ebp + 0x10]
call fcn.00402640
jmp 0x43b32e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push 0x58cb88
mov ecx, dword [ebp + 0x10]
call fcn.00402640
jmp 0x43b346
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push str.CryptAcquireContext_failed
mov ecx, dword [ebp + 0x10]
call fcn.00402640
jmp 0x43b366
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
push edx
push str.Error_opening_file__s
mov eax, dword [ebp + 0x10]
push eax
call fcn.00403430
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x43b378
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x14], 0
je 0x43b388
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x538], 0
je 0x43b39e
mov eax, dword [ebp - 0x538]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x554], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402000
mov eax, dword [ebp - 0x554]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0054dc83
mov esp, ebp
pop ebp
ret 0xc