Function at 0x1003d2ca
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp word [ebp + 0xc], 1
jg 0x1003d359
push dword [ebp + 8]
call fcn.1003d6cf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1001650e
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1003d335
push ebx
call fcn.10101422
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1003d345
push ebx
call fcn.10101422
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x1003d6b7
cmp word [ebp + 0xc], 2
jne 0x1003d370
mov dword [ebp - 4], 0x8001
jmp 0x1003d414
cmp word [ebp + 0xc], 3
jne 0x1003d387
mov dword [ebp - 4], 0x8002
jmp 0x1003d414
cmp word [ebp + 0xc], 4
jne 0x1003d39e
mov dword [ebp - 4], 0x8004
jmp 0x1003d414
cmp word [ebp + 0xc], 5
jne 0x1003d3b5
mov dword [ebp - 4], 0x800c
jmp 0x1003d414
cmp word [ebp + 0xc], 6
jne 0x1003d3cc
mov dword [ebp - 4], 0x800d
jmp 0x1003d414
cmp word [ebp + 0xc], 7
jne 0x1003d3e3
mov dword [ebp - 4], 0x800e
jmp 0x1003d414
cmp word [ebp + 0xc], 7
jg 0x1003d3fd
cmp word [ebp + 0xc], 0
jl 0x1003d3fd
xor eax, eax
jmp 0x1003d402
mov eax, 1
test eax, eax
je 0x1003d414
mov eax, 0x1010b29a
jmp 0x1003d6b7
mov dword [ebp - 0x18], esp
push 0xf0000000
push 0x18
push 0x1010b29a
push 0x1010b29a
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1003d455
push 0x33a
push 0x424300d
push 6
call fcn.1010142e
add esp, 0xc
push htons
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x1003d46a
mov eax, 0x1010b24e
push eax
push 1
mov ebx, 0x194
call fcn.10102400
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x1003d497
add eax, 8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1003d4c1
push 0x3a0
push 0x424300d
push 6
call fcn.1010142e
add esp, 0xc
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1003d4fe
push 0x3c4
push 0x424300d
push 6
call fcn.1010142e
add esp, 0xc
push htons
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x1003d513
mov eax, 0x1010b24e
push eax
push 1
mov ebx, 0x194
call fcn.10102400
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x1003d540
add eax, 8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1003d56a
push 0x434
push 0x424300d
push 6
call fcn.1010142e
add esp, 0xc
mov dword [ebp - 0x18], esp
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1003d5a9
push 0x458
push 0x424300d
push 6
call fcn.1010142e
add esp, 0xc
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x1bc
call fcn.10102410
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1003d5dc
push ebx
call fcn.10101422
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10008331
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1003d629
push 0x4f8
push 0x424300d
push 6
call fcn.1010142e
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1003d655
push 0x523
push 0x424300d
push 6
call fcn.1010142e
add esp, 0xc
mov dword [ebp - 0x18], esp
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1003d686
push 0x54a
push 0x424300d
push 6
call fcn.1010142e
add esp, 0xc
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1001650e
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1003d6af
push ebx
call fcn.10101422
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x1003d6b7
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1003d6c8
push ebx
call fcn.10101422
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc