Function at 0x41877c
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
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
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
cmp dword [ebp + 0x14], 0
jne 0x4187da
mov dword [ebp - 4], 0x8003
jmp 0x418826
cmp dword [ebp + 0x14], 1
jne 0x4187f0
mov dword [ebp - 4], 0x8004
jmp 0x418826
cmp dword [ebp + 0x14], 2
jne 0x418806
mov dword [ebp - 4], 0x800c
jmp 0x418826
cmp dword [ebp + 0x14], 3
jne 0x41881c
mov dword [ebp - 4], 0x800e
jmp 0x418826
mov eax, 0xfffffffb
jmp 0x418ad7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00418aff
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41884d
mov eax, 0xfffffffc
jmp 0x418ad7
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x418880
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x418897
mov eax, 0xfffffffd
jmp 0x418ad7
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x4188b3
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004481fd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4188c4
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4188db
mov eax, 0x48c3a9
push eax
push 1
mov ebx, 0x194
call fcn.00449860
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], esp
push 0
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x418906
add eax, 8
push eax
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x418926
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41895f
mov dword [ebp - 0x28], esp
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x418955
push 6
call fcn.004481f1
add esp, 4
mov eax, 0xfffffffe
jmp 0x418ad7
mov dword [ebp - 0x1c], 0
push dword [ebp + 0x10]
call fcn.00413dbf
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x418985
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x41899c
mov eax, 0x48c3a9
push eax
push 1
mov ebx, 0x194
call fcn.00449860
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], esp
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4189cf
add eax, 8
push eax
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4189ef
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x418aab
mov dword [ebp - 0x28], esp
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x418a1e
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x28], esp
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x418a3d
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x80090006
jne 0x418a57
mov eax, 0xffffffff
jmp 0x418ad7
cmp dword [ebp - 0x24], 0
jle 0x418a85
fld qword [0x733f8f]
fild dword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fsub qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00402ffd
jmp 0x418ad7
cmp dword [ebp - 0x24], 0
jge 0x418a9c
mov eax, dword [ebp - 0x24]
jmp 0x418ad7
mov eax, 0xfffffffa
jmp 0x418ad7
mov dword [ebp - 0x28], esp
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x418acd
push 6
call fcn.004481f1
add esp, 4
mov eax, 0
jmp 0x418ad7
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x418ae8
push ebx
call fcn.00448209
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x418af8
push ebx
call fcn.00448209
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14