Function at 0x407290
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x43d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x68], 0x20
lea ecx, [ebp - 0x54]
call fcn.00404b00
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4072f6
push 0x42f3d8
mov ecx, dword [ebp + 8]
call fcn.00404a80
lea ecx, [ebp - 0x54]
call fcn.00405ba0
mov eax, dword [ebp + 8]
jmp 0x4074d9
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0x800c
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40733a
push 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x42f3d8
mov ecx, dword [ebp + 8]
call fcn.00404a80
lea ecx, [ebp - 0x54]
call fcn.00405ba0
mov eax, dword [ebp + 8]
jmp 0x4074d9
lea ecx, [ebp - 0x61]
call fcn.00404510
push eax
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040d300
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040c190
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00401680
push 0
lea ecx, [ebp - 0x3c]
call fcn.0040f280
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040c280
push eax
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4073c6
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x42f3d8
mov ecx, dword [ebp + 8]
call fcn.00404a80
lea ecx, [ebp - 0x3c]
call fcn.00405ba0
lea ecx, [ebp - 0x54]
call fcn.00405ba0
mov eax, dword [ebp + 8]
jmp 0x4074d9
push 0
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x40741b
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x42f3d8
mov ecx, dword [ebp + 8]
call fcn.00404a80
lea ecx, [ebp - 0x3c]
call fcn.00405ba0
lea ecx, [ebp - 0x54]
call fcn.00405ba0
mov eax, dword [ebp + 8]
jmp 0x4074d9
push 1
lea ecx, [ebp - 0x118]
call fcn.00404820
mov dword [ebp - 0x60], 0
jmp 0x40743a
mov ecx, dword [ebp - 0x60]
add ecx, 1
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp - 0x68]
jae 0x407496
mov eax, dword [ebp - 0x60]
movzx ecx, byte [ebp + eax - 0x24]
push ecx
push 0x30
lea edx, [ebp - 0x62]
push edx
call fcn.00403d50
add esp, 8
push eax
push 0
push 2
lea eax, [ebp - 0x80]
push eax
call fcn.00410b8e
add esp, 0xc
push eax
push 0x40d820
lea ecx, [ebp - 0x118]
call fcn.00406310
push eax
call fcn.00401810
add esp, 8
push eax
call fcn.004017f0
add esp, 8
mov ecx, eax
call fcn.00406150
jmp 0x407431
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x118]
call fcn.0040f410
lea ecx, [ebp - 0x118]
call fcn.00406900
lea ecx, [ebp - 0x3c]
call fcn.00405ba0
lea ecx, [ebp - 0x54]
call fcn.00405ba0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041121e
mov esp, ebp
pop ebp
ret