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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1058
call fcn.005810a0
mov eax, dword [0x5de00c]
xor eax, esp
mov dword [esp + 0x1054], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], eax
push 0
mov esi, ecx
mov ecx, edi
push 0x5bd4a4
call fcn.00412890
mov eax, dword [esp + 0x14]
push 0x5aaa64
push esi
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
cmp dword [esp + 0x18], 0
je 0x4127e1
push 0
push 1
push 0
push 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0x8003
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push dword [esp + 0x18]
lea eax, [esp + 0x5c]
push 0x1000
push 1
push 0x1000
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread_s]
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4126b9
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x412679
mov al, byte [eax]
cmp al, 1
je 0x4127be
push 0
push esi
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [esp + 0x14]
push dword [esp + 0x18]
push 0x1000
add dword [eax], esi
push 1
adc dword [eax + 4], 0
lea eax, [esp + 0x64]
push 0x1000
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread_s]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x412668
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [esp + 0x20]
add esp, 4
push 0
push eax
push 0
push 2
push dword [esp + 0x30]
call esi
test eax, eax
je 0x41284d
mov eax, dword [esp + 0x1c]
inc eax
push eax
call fcn.0052d7ad
mov ecx, dword [esp + 0x20]
add esp, 4
inc ecx
mov dword [esp + 0x14], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x1c]
push 0
push eax
push dword [esp + 0x1c]
push 2
push dword [esp + 0x30]
call esi
xor esi, esi
test eax, eax
je 0x412839
cmp dword [esp + 0x1c], esi
jbe 0x412834
nop
mov eax, dword [esp + 0x14]
movzx eax, byte [esi + eax]
push eax
lea eax, [esp + 0x28]
push 0x5bd4a8
push eax
call fcn.00412570
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0x30]
lea eax, [ecx + 1]
add esp, 0xc
mov dword [esp + 0x2c], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412760
sub ecx, dword [esp + 0x2c]
mov eax, SysReAllocString
sub eax, edx
cmp eax, ecx
jb 0x41287b
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x412784
mov eax, dword [edi]
push ecx
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
push ecx
push dword [esp + 0x40]
lea ecx, [esp + 0x48]
call fcn.00412980
lea eax, [esp + 0x30]
cmp edi, eax
je 0x4127f7
mov ecx, edi
call fcn.00402760
movups xmm0, xmmword [esp + 0x30]
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [edi + 0x10], xmm0
jmp 0x412829
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1054]
xor ecx, esp
call fcn.0052d3c5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x44]
cmp ecx, 0x10
jb 0x412829
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41281f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412847
push ecx
push edx
call fcn.0052d747
add esp, 8
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x412730
mov esi, 1
push dword [esp + 0x14]
call fcn.0052d7a8
add esp, 4
jmp 0x41284f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xor esi, esi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x105c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0052d3c5
mov esp, ebp
pop ebp
ret
call fcn.00402990
int3