Function at 0x4074c0
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 0x42a3e0
mov eax, dword [ebp + 8]
push eax
call fcn.004186f6
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4074ff
xor al, al
jmp 0x40789d
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00418e14
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.00418e14
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
push 1
push 2
lea ecx, [ebp - 0xa]
push ecx
call fcn.00418cfd
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.00418e14
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call fcn.00418b7a
add esp, 4
mov dword [ebp - 0x10], eax
xor eax, eax
mov ax, word [ebp - 0xa]
cmp eax, 0x400
jle 0x407597
movsx ecx, word [0x42f9e8]
add ecx, 0x1c
push ecx
push str.c:code_reflexivearcade_sdk_developmentlib_ra_apifunctions.cpp
push str.SignatureLength___MAX_SIGNATURE_LENGTH
call fcn.00418890
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.00418cfd
add esp, 0x10
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00418e14
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.00418ecd
test eax, eax
jne 0x407626
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.00418ecd
test eax, eax
jne 0x407626
mov eax, dword [ebp - 4]
push eax
call fcn.0041860c
add esp, 4
xor al, al
jmp 0x40789d
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.00418ecd
test eax, eax
jne 0x40767b
mov eax, dword [ebp - 4]
push eax
call fcn.0041860c
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.00418ecd
xor al, al
jmp 0x40789d
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 0x407762
mov dword [ebp - 0x824], 0x400
cmp dword [ebp - 0x81c], 0x400
jge 0x4076c4
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.00418cfd
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.00418ecd
test eax, eax
jne 0x40774b
mov eax, dword [ebp - 4]
push eax
call fcn.0041860c
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.00418ecd
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.00418ecd
xor al, al
jmp 0x40789d
mov eax, dword [ebp - 0x81c]
sub eax, dword [ebp - 0x824]
mov dword [ebp - 0x81c], eax
jmp 0x40768b
mov eax, dword [ebp - 4]
push eax
call fcn.0041860c
add esp, 4
mov dword [ebp - 0x828], 0
mov esi, esp
lea eax, [ebp - 0x828]
push eax
push 0
push 0
push 0x54
push 0x42f968
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
cmp esi, esp
call fcn.00418ecd
test eax, eax
jne 0x4077d9
mov esi, esp
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.00418ecd
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.00418ecd
xor al, al
jmp 0x40789d
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.00418ecd
test eax, eax
jne 0x407857
mov esi, esp
mov eax, dword [ebp - 0x828]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp esi, esp
call fcn.00418ecd
mov esi, esp
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.00418ecd
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.00418ecd
xor al, al
jmp 0x40789d
mov esi, esp
mov eax, dword [ebp - 0x828]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp esi, esp
call fcn.00418ecd
mov esi, esp
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.00418ecd
mov esi, esp
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.00418ecd
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x868
cmp ebp, esp
call fcn.00418ecd
mov esp, ebp
pop ebp
ret