Function at 0x439388
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push 0x4c
mov eax, 0x45d770
call fcn.0043aa0b
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x3c]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
or dword [ebp - 0x54], 0xffffffff
mov ebx, ecx
mov dword [ebp - 0x4c], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
xor eax, eax
mov dword [ebp - 4], ecx
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x4d], cl
test edx, edx
je 0x439666
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x14]
jne 0x4393ec
sub ecx, esi
sar ecx, 1
je 0x439664
lea eax, [ebp - 0x3c]
push eax
push edx
call fcn.004390a0
mov ebx, dword [ebp - 0x3c]
pop ecx
pop ecx
test al, al
je 0x439549
mov eax, dword [ebp - 0x38]
sub eax, ebx
mov dword [ebp - 0x58], eax
cmp eax, 0x14
jne 0x439452
push 0xf0000000
push 1
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x439549
lea eax, [ebp - 0x1c]
push eax
xor eax, eax
push eax
push eax
push 0x8004
jmp 0x4394a1
cmp eax, 0x20
jne 0x439549
mov esi, 0xf0000000
xor eax, eax
push esi
push 0x18
push 0x406a48
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x439494
push esi
push 0x18
push 0x406ab8
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x439549
lea eax, [ebp - 0x1c]
push eax
xor eax, eax
push eax
push eax
push 0x800c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x439549
mov esi, dword [0x462980]
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
push dword [ebp - 0x4c]
mov ecx, esi
call dword [0x465348]
call esi
mov edx, eax
mov dword [ebp - 0x54], edx
cmp edx, 0xffffffff
je 0x439549
xor eax, eax
lea ecx, [ebp - 0x30]
mov esi, 0x4000
mov dword [ebp - 0x30], eax
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.00435cbe
xor eax, eax
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push esi
mov esi, dword [ebp - 0x30]
push esi
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x439584
test esi, esi
je 0x439549
mov eax, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x4c], eax
cmp eax, 0x1000
jb 0x439540
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041568f
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x14]
pop ecx
pop ecx
push eax
push esi
call fcn.0043a98a
pop ecx
pop ecx
xor ecx, ecx
jmp 0x439669
xor ecx, ecx
push ecx
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x43962e
xor eax, eax
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4000
push esi
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43962e
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x439550
test esi, esi
je 0x4395bf
mov eax, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x4395b6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041568f
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x4c]
pop ecx
pop ecx
push eax
push esi
call fcn.0043a98a
pop ecx
pop ecx
xor ecx, ecx
lea eax, [ebp - 0x24]
push ecx
push eax
push ecx
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x439549
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x58]
jne 0x439549
xor ecx, ecx
mov byte [ebp - 0x4e], cl
lea ecx, [ebp - 0x4e]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00435f51
mov edi, dword [ebp - 0x48]
xor eax, eax
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x439549
push dword [ebp - 0x24]
push ebx
push edi
call fcn.0043c375
add esp, 0xc
test eax, eax
sete byte [ebp - 0x4d]
jmp 0x439549
test esi, esi
je 0x439549
mov eax, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x439540
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041568f
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x4c]
jmp 0x43953e
xor ecx, ecx
mov byte [ebp - 0x4d], cl
cmp dword [ebp - 0x18], 0
je 0x439679
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x1c], 0
je 0x439688
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x54]
cmp eax, 0xffffffff
je 0x439697
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4396cb
mov eax, dword [ebp - 0x40]
sub eax, edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x4396c2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041568f
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x4c]
pop ecx
pop ecx
push eax
push edi
call fcn.0043a98a
pop ecx
pop ecx
test ebx, ebx
je 0x4396ff
mov eax, dword [ebp - 0x34]
sub eax, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x4396f6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041568f
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x4c]
pop ecx
pop ecx
push eax
push ebx
call fcn.0043a98a
pop ecx
pop ecx
mov al, byte [ebp - 0x4d]
call fcn.0043a9ba
ret