Function at 0x405630
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 0x4103a0
mov eax, dword [ebp + 8]
push eax
call fcn.00408172
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40566f
xor al, al
jmp 0x405a0d
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.004087ee
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.004087ee
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
push 1
push 2
lea ecx, [ebp - 0xa]
push ecx
call fcn.00408706
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.004087ee
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call fcn.004085ae
add esp, 4
mov dword [ebp - 0x10], eax
xor eax, eax
mov ax, word [ebp - 0xa]
cmp eax, 0x400
jle 0x405707
movsx ecx, word [0x4143c8]
add ecx, 0x1b
push ecx
push str.c:development_reflexivearcade_sdk_developmentlib_ra_apifunctions.cpp
push str.SignatureLength___MAX_SIGNATURE_LENGTH
call fcn.004082c4
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.00408706
add esp, 0x10
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.004087ee
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.0040887a
test eax, eax
jne 0x405796
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.0040887a
test eax, eax
jne 0x405796
mov eax, dword [ebp - 4]
push eax
call fcn.004080ca
add esp, 4
xor al, al
jmp 0x405a0d
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.0040887a
test eax, eax
jne 0x4057eb
mov eax, dword [ebp - 4]
push eax
call fcn.004080ca
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.0040887a
xor al, al
jmp 0x405a0d
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 0x4058d2
mov dword [ebp - 0x824], 0x400
cmp dword [ebp - 0x81c], 0x400
jge 0x405834
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.00408706
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.0040887a
test eax, eax
jne 0x4058bb
mov eax, dword [ebp - 4]
push eax
call fcn.004080ca
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.0040887a
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.0040887a
xor al, al
jmp 0x405a0d
mov eax, dword [ebp - 0x81c]
sub eax, dword [ebp - 0x824]
mov dword [ebp - 0x81c], eax
jmp 0x4057fb
mov eax, dword [ebp - 4]
push eax
call fcn.004080ca
add esp, 4
mov dword [ebp - 0x828], 0
mov esi, esp
lea eax, [ebp - 0x828]
push eax
push 0
push 0
push 0x54
push 0x414358
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
cmp esi, esp
call fcn.0040887a
test eax, eax
jne 0x405949
mov esi, esp
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.0040887a
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.0040887a
xor al, al
jmp 0x405a0d
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.0040887a
test eax, eax
jne 0x4059c7
mov esi, esp
mov eax, dword [ebp - 0x828]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp esi, esp
call fcn.0040887a
mov esi, esp
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.0040887a
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.0040887a
xor al, al
jmp 0x405a0d
mov esi, esp
mov eax, dword [ebp - 0x828]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp esi, esp
call fcn.0040887a
mov esi, esp
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.0040887a
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.0040887a
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x868
cmp ebp, esp
call fcn.0040887a
mov esp, ebp
pop ebp
ret