Function at 0x407160
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
push ebx
push esi
push edi
lea edi, [ebp - 0x868]
mov ecx, 0x21a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x42a3e8
mov eax, dword [ebp + 8]
push eax
call fcn.00418304
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40719f
xor al, al
jmp 0x40753d
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00418a1a
add esp, 0xc
mov dword [ebp - 8], 6
push 1
mov eax, dword [ebp - 8]
neg eax
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00418a1a
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
push 1
push 2
lea ecx, [ebp - 0xa]
push ecx
call fcn.00418903
add esp, 0x10
xor eax, eax
mov ax, word [ebp - 0xa]
add eax, 2
mov dword [ebp - 8], eax
push 1
mov eax, dword [ebp - 8]
neg eax
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00418a1a
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call fcn.00418781
add esp, 4
mov dword [ebp - 0x10], eax
xor eax, eax
mov ax, word [ebp - 0xa]
cmp eax, 0x400
jle 0x407237
movsx ecx, word [0x42f890]
add ecx, 0x1c
push ecx
push str.c:development_reflexivearcade_sdk_developmentlib_ra_apifunctions.cpp
push str.SignatureLength___MAX_SIGNATURE_LENGTH
call fcn.004184a3
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
xor ecx, ecx
mov cx, word [ebp - 0xa]
push ecx
push 1
lea edx, [ebp - 0x410]
push edx
call fcn.00418903
add esp, 0x10
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00418a1a
add esp, 0xc
mov esi, esp
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.00418ad3
test eax, eax
jne 0x4072c6
mov esi, esp
push 0xf0000008
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.00418ad3
test eax, eax
jne 0x4072c6
mov eax, dword [ebp - 4]
push eax
call fcn.0041821a
add esp, 4
xor al, al
jmp 0x40753d
mov esi, esp
lea eax, [ebp - 0x818]
push eax
push 0
push 0
push 0x8003
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp esi, esp
call fcn.00418ad3
test eax, eax
jne 0x40731b
mov eax, dword [ebp - 4]
push eax
call fcn.0041821a
add esp, 4
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.00418ad3
xor al, al
jmp 0x40753d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x81c], eax
mov byte [ebp - 0x81d], 0
xor eax, eax
mov al, byte [ebp - 0x81d]
test eax, eax
jne 0x407402
mov dword [ebp - 0x824], 0x400
cmp dword [ebp - 0x81c], 0x400
jge 0x407364
mov eax, dword [ebp - 0x81c]
mov dword [ebp - 0x824], eax
mov byte [ebp - 0x81d], 1
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x824]
push ecx
push 1
lea edx, [ebp - 0x814]
push edx
call fcn.00418903
add esp, 0x10
mov esi, esp
push 0
mov eax, dword [ebp - 0x824]
push eax
lea ecx, [ebp - 0x814]
push ecx
mov edx, dword [ebp - 0x818]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp esi, esp
call fcn.00418ad3
test eax, eax
jne 0x4073eb
mov eax, dword [ebp - 4]
push eax
call fcn.0041821a
add esp, 4
mov esi, esp
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.00418ad3
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.00418ad3
xor al, al
jmp 0x40753d
mov eax, dword [ebp - 0x81c]
sub eax, dword [ebp - 0x824]
mov dword [ebp - 0x81c], eax
jmp 0x40732b
mov eax, dword [ebp - 4]
push eax
call fcn.0041821a
add esp, 4
mov dword [ebp - 0x828], 0
mov esi, esp
lea eax, [ebp - 0x828]
push eax
push 0
push 0
push 0x54
push 0x42f810
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
cmp esi, esp
call fcn.00418ad3
test eax, eax
jne 0x407479
mov esi, esp
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.00418ad3
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.00418ad3
xor al, al
jmp 0x40753d
mov esi, esp
push 0
push str.ReflexiveArcade_DLL_Signature
mov eax, dword [ebp - 0x828]
push eax
xor ecx, ecx
mov cx, word [ebp - 0xa]
push ecx
lea edx, [ebp - 0x410]
push edx
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
cmp esi, esp
call fcn.00418ad3
test eax, eax
jne 0x4074f7
mov esi, esp
mov eax, dword [ebp - 0x828]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp esi, esp
call fcn.00418ad3
mov esi, esp
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.00418ad3
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.00418ad3
xor al, al
jmp 0x40753d
mov esi, esp
mov eax, dword [ebp - 0x828]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp esi, esp
call fcn.00418ad3
mov esi, esp
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.00418ad3
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.00418ad3
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x868
cmp ebp, esp
call fcn.00418ad3
mov esp, ebp
pop ebp
ret