Function at 0x406400
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 0x4293d0
mov eax, dword [ebp + 8]
push eax
call fcn.0041d684
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40643f
xor al, al
jmp 0x4067dd
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.0041dd9a
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.0041dd9a
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
push 1
push 2
lea ecx, [ebp - 0xa]
push ecx
call fcn.0041dc83
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.0041dd9a
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call fcn.0041db01
add esp, 4
mov dword [ebp - 0x10], eax
xor eax, eax
mov ax, word [ebp - 0xa]
cmp eax, 0x400
jle 0x4064d7
movsx ecx, word [0x42e178]
add ecx, 0x1c
push ecx
push str.c:development_reflexivearcade_sdk_developmentlib_ra_apifunctions.cpp
push str.SignatureLength___MAX_SIGNATURE_LENGTH
call fcn.0041d823
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.0041dc83
add esp, 0x10
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.0041dd9a
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.0041de53
test eax, eax
jne 0x406566
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.0041de53
test eax, eax
jne 0x406566
mov eax, dword [ebp - 4]
push eax
call fcn.0041d59a
add esp, 4
xor al, al
jmp 0x4067dd
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.0041de53
test eax, eax
jne 0x4065bb
mov eax, dword [ebp - 4]
push eax
call fcn.0041d59a
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.0041de53
xor al, al
jmp 0x4067dd
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 0x4066a2
mov dword [ebp - 0x824], 0x400
cmp dword [ebp - 0x81c], 0x400
jge 0x406604
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.0041dc83
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.0041de53
test eax, eax
jne 0x40668b
mov eax, dword [ebp - 4]
push eax
call fcn.0041d59a
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.0041de53
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.0041de53
xor al, al
jmp 0x4067dd
mov eax, dword [ebp - 0x81c]
sub eax, dword [ebp - 0x824]
mov dword [ebp - 0x81c], eax
jmp 0x4065cb
mov eax, dword [ebp - 4]
push eax
call fcn.0041d59a
add esp, 4
mov dword [ebp - 0x828], 0
mov esi, esp
lea eax, [ebp - 0x828]
push eax
push 0
push 0
push 0x54
push 0x42e108
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
cmp esi, esp
call fcn.0041de53
test eax, eax
jne 0x406719
mov esi, esp
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.0041de53
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.0041de53
xor al, al
jmp 0x4067dd
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.0041de53
test eax, eax
jne 0x406797
mov esi, esp
mov eax, dword [ebp - 0x828]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp esi, esp
call fcn.0041de53
mov esi, esp
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.0041de53
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.0041de53
xor al, al
jmp 0x4067dd
mov esi, esp
mov eax, dword [ebp - 0x828]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp esi, esp
call fcn.0041de53
mov esi, esp
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.0041de53
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.0041de53
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x868
cmp ebp, esp
call fcn.0041de53
mov esp, ebp
pop ebp
ret