Function at 0x40a230
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41db5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
mov al, byte [esp + 2]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x18], al
call fcn.0040cc10
mov edi, 0x401008
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.0040cd20
test al, al
je 0x40a2ab
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x401008
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.0040cd00
mov eax, dword [esp + 0x460]
push ebx
push 0x8000000
push 3
push ebx
push 1
push bind
push eax
mov dword [esp + 0x470], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
or edi, 0xffffffff
cmp ebp, edi
mov dword [esp + 0x38], ebp
jne 0x40a32d
mov esi, dword [esp + 0x45c]
mov cl, byte [esp + 0x14]
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.0040cc10
mov edx, dword [0x407740]
lea eax, [esp + 0x14]
push edx
push ebx
push eax
mov ecx, esi
call fcn.0040c540
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x458], edi
call fcn.0040cc10
jmp 0x40a61f
push 0xf0000000
push 1
push ebx
lea ecx, [esp + 0x30]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40a38b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x45c]
mov dl, byte [esp + 0x14]
push ebx
mov ecx, esi
mov byte [esi], dl
call fcn.0040cc10
mov eax, dword [0x407740]
lea ecx, [esp + 0x14]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.0040c540
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x458], edi
call fcn.0040cc10
jmp 0x40a61f
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40a3bb
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x40a34c
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x30]
push ebx
push edx
lea eax, [esp + 0x54]
push 0x400
push eax
push ebp
call edi
mov esi, eax
cmp esi, ebx
je 0x40a411
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40a411
mov edx, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x50]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
push ebx
je 0x40a469
lea eax, [esp + 0x34]
lea ecx, [esp + 0x50]
push eax
push 0x400
push ecx
push ebp
call edi
mov esi, eax
cmp esi, ebx
jne 0x40a3da
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, ebx
jne 0x40a4ca
mov edx, dword [esp + 0x24]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x45c]
mov cl, byte [esp + 0x14]
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.0040cc10
mov edx, dword [0x407740]
lea eax, [esp + 0x14]
push edx
push ebx
push eax
jmp 0x40a5f4
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x45c]
mov cl, byte [esp + 0x14]
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.0040cc10
mov edx, dword [0x407740]
lea eax, [esp + 0x14]
push edx
push ebx
push eax
mov ecx, esi
call fcn.0040c540
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x458], 0xffffffff
call fcn.0040cc10
jmp 0x40a61f
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ebx
lea edx, [esp + 0x40]
push ecx
push edx
push 2
push eax
mov dword [esp + 0x40], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40a5a9
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], ebx
cmp eax, ebx
jbe 0x40a5a9
mov edx, dword [esp + 0x34]
xor ecx, ecx
lea eax, [esp + 0x12]
mov byte [esp + 0x12], bl
mov cl, byte [esp + edx + 0x3c]
mov byte [esp + 0x13], bl
push ecx
push 0x403664
push eax
call fcn.0041531f
lea edi, [esp + 0x1e]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x1c]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x407740]
sub ecx, edx
cmp ecx, esi
ja 0x40a54c
call fcn.00412f64
cmp esi, ebx
jbe 0x40a594
mov edx, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
lea ebp, [edx + esi]
push ebp
call fcn.0040cd20
test al, al
je 0x40a590
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, esi
lea esi, [esp + 0x12]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [ecx + ebp], bl
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jb 0x40a502
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x24]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x45c]
mov dl, byte [esp + 0x14]
lea ecx, [esp + 0x14]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x407740]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.0040c540
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x40a61f
mov al, byte [ecx - 1]
cmp al, bl
je 0x40a615
cmp al, 0xff
je 0x40a615
dec al
mov byte [ecx - 1], al
jmp 0x40a61f
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov ecx, dword [esp + 0x44c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x448
ret