Function at 0x40df45
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
mov eax, 0x2130
call fcn.005251d0
mov esi, esp
mov dword [esi + 0x2118], ebp
lea eax, [esi + 0x2120]
mov dword [esi + 0x48], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x501280
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
movzx eax, byte [edx + 4]
test eax, eax
jne 0x40e442
mov eax, dword [edx]
mov dword [esi + 0x1c], edx
lea ecx, [esi + 0xb0]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
and dword [esi + 0x2128], 0
push eax
call fcn.00401235
pop eax
cmp byte [esi + 0xb0], 4
jne 0x40e456
lea edi, [esi + 0xd0]
mov eax, dword [edi - 0x1c]
mov ecx, edi
mov dword [esi + 0x18], eax
call fcn.004ff0a8
lea eax, [esi + 0x118]
lea ecx, [esi + 0x60]
mov byte [edi + 0x40], 0
and dword [edi - 0x1c], 0
and dword [edi - 0x20], 0
mov dword [edi - 0x18], 0x67452301
mov dword [edi - 0x14], 0xefcdab89
mov dword [edi - 0x10], 0x98badcfe
mov dword [edi - 0xc], 0x10325476
mov dword [edi - 8], 0xc3d2e1f0
mov dword [ecx], eax
mov dword [ecx + 4], 0x2000
and dword [ecx + 8], 0
and dword [ecx + 0xc], 0
mov edx, dword [esi + 0x18]
lea eax, [esi + 0x60]
mov dword [esi + 0x2128], 2
lea ecx, [esi + 0x20]
push eax
call fcn.004d3720
pop eax
cmp byte [esi + 0x20], 4
jne 0x40e1a7
mov edx, dword [esi + 0x64]
mov edi, dword [esi + 0x68]
cmp edi, edx
ja 0x40e433
test edi, edi
je 0x40e1d9
mov eax, dword [esi + 0x60]
mov dword [esi + 4], eax
test edi, edi
je 0x40e1d0
lea eax, [esi + 0xb0]
mov dword [esi + 0x34], eax
mov al, byte [esi + 0x110]
movzx edx, al
push 0x40
pop ecx
sub ecx, edx
mov ebx, edi
mov dword [esi + 0xc], edi
sub ebx, ecx
jae 0x40e0d2
mov dword [esi + 8], edx
mov ecx, edx
lea edx, [esi + 0xd0]
push 0x5a83a8
push 0x40
call fcn.0043347d
pop ecx
pop edi
mov ecx, dword [esi + 0xc]
mov edi, edx
mov edx, eax
push 0x5a83b8
push edi
call fcn.00401000
pop ecx
pop edi
mov ecx, eax
push 0x5a83c8
push dword [esi + 0xc]
push dword [esi + 4]
call fcn.00463d7d
add esp, 0xc
mov eax, dword [esi + 8]
add eax, dword [esi + 0xc]
mov dword [esi + 8], eax
jmp 0x40e181
test al, al
mov eax, dword [esi + 4]
je 0x40e124
mov dword [esi + 8], ecx
mov ecx, edx
lea edx, [esi + 0xd0]
mov dword [esi + 0x10], ebx
push 0x5a8368
push 0x40
call fcn.0043347d
pop ecx
pop edi
mov ecx, eax
push 0x5a8378
push dword [esi + 8]
push dword [esi + 4]
call fcn.00463d7d
add esp, 0xc
lea ecx, [esi + 0x34]
lea edx, [esi + 0xd0]
push 1
call fcn.004084ba
pop eax
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x10]
add eax, dword [esi + 4]
cmp edi, 0x40
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edi
jb 0x40e146
mov edx, dword [esi + 0x14]
mov eax, edi
lea ecx, [esi + 0x34]
shr eax, 6
push eax
call fcn.004084ba
mov edi, dword [esi + 0x10]
add esp, 4
and edi, 0x3f
lea edx, [esi + 0xd0]
mov ecx, edi
mov dword [esi + 8], edi
push 0x5a8388
push 0x40
call fcn.00401000
mov ecx, dword [esi + 0x10]
add esp, 8
mov edi, dword [esi + 0x14]
and ecx, 0xffffffc0
add edi, ecx
mov ecx, eax
push 0x5a8398
push dword [esi + 8]
push edi
call fcn.00463d7d
add esp, 0xc
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov byte [esi + 0x110], al
push 0x5a8518
push ecx
call fcn.0043347d
pop ecx
pop edi
mov dword [esi + 4], eax
mov edi, edx
jmp 0x40e05a
lea ecx, [esi + 0x20]
call fcn.00401820
test al, al
je 0x40e3f9
movsd xmm0, qword [esi + 0x20]
lea eax, [esi + 0x34]
movsd qword [esi + 0x34], xmm0
push eax
call fcn.00404ed9
pop eax
jmp 0x40e01a
and dword [esi + 0x68], 0
jmp 0x40e01a
push 0x68
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0x118]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [esi + 0x4c]
call fcn.004ff097
lea edx, [esi + 0x138]
mov eax, dword [edx - 0x20]
movsd xmm0, qword [edx - 0x10]
movzx ecx, byte [edx + 0x40]
mov dword [esi + 8], eax
mov eax, dword [edx - 8]
movsd qword [esi + 0x28], xmm0
movsd xmm0, qword [edx - 0x18]
mov dword [esi + 4], ecx
mov dword [esi + 0x30], eax
mov eax, dword [edx - 0x1c]
mov byte [esi + ecx + 0x138], 0x80
movsd qword [esi + 0x20], xmm0
inc ecx
mov dword [esi + 0xc], eax
push 0x5a83d8
push 0x40
call fcn.0043347d
pop ecx
pop edi
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov ebx, dword [esi + 4]
shld ecx, edi, 9
shl edi, 9
lea ebx, [ebx*8]
bswap ecx
or ebx, edi
mov edi, ecx
mov ecx, dword [esi + 4]
bswap ebx
test edx, edx
je 0x40e270
mov byte [eax], 0
inc eax
dec edx
jmp 0x40e265
not ecx
mov dword [esi + 0x2128], 2
test cl, 0x38
jne 0x40e2b7
lea ecx, [esi + 0x20]
lea edx, [esi + 0x138]
mov dword [esi + 4], ebx
mov dword [esi + 0xc], edi
call fcn.004ffe27
lea edi, [esi + 0x60]
mov ecx, edi
call fcn.004ff0a8
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov edx, edi
mov dword [edi + 0x38], ecx
lea ecx, [esi + 0x20]
mov dword [edi + 0x3c], eax
call fcn.004ffe27
jmp 0x40e2d1
lea ecx, [esi + 0x20]
lea edx, [esi + 0x138]
mov dword [esi + 0x170], edi
mov dword [esi + 0x174], ebx
call fcn.004ffe27
lea ecx, [esi + 0x60]
lea edx, [esi + 0x34]
lea eax, [esi + 0x34]
mov byte [esi + 0x178], 0
mov dword [edx], ecx
and dword [edx + 4], 0
lea ecx, [esi + 0x4c]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x14
mov dword [edx + 0x10], 4
lea ecx, [esi + 0x60]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.004ff0d3
pop eax
pop ecx
mov eax, dword [esi + 0x80]
mov edi, dword [esi + 0x68]
mov edx, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
mov ebx, dword [esi + 0x7c]
mov dword [esi + 0xc], eax
mov dword [esi + 8], edx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
cmp ebx, dword [esi + 0xc]
jae 0x40e365
test edi, edi
je 0x40e365
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 8]
mov eax, dword [eax + ebx*4]
mov ecx, edx
imul ecx, ebx
add ecx, edi
bswap eax
mov dword [esi + 0x34], eax
push 0x5a89c4
push 4
lea eax, [esi + 0x34]
push eax
mov dword [esi + 4], ebx
call fcn.00463d7d
add esp, 0xc
mov ebx, dword [esi + 4]
mov edi, dword [esi + 0x14]
inc ebx
jmp 0x40e328
lea edi, [esi + 0x60]
movsd xmm0, qword [esi + 0x4c]
movsd xmm1, qword [esi + 0x54]
mov eax, dword [esi + 0x5c]
lea edx, [esi + 0x118]
lea ecx, [esi + 0x34]
mov dword [esi + 0x34], edi
xor edi, edi
mov dword [edx], 0x5a7aa4
mov dword [esi + 0x38], 0x401018
inc edi
mov dword [edx + 4], edi
and dword [edx + 0x10], 0
mov dword [edx + 8], ecx
lea ecx, [esi + 0xa4]
mov dword [edx + 0xc], edi
movsd qword [esi + 0x60], xmm0
movsd qword [esi + 0x68], xmm1
mov dword [esi + 0x70], eax
call fcn.004071d2
and dword [esi + 0x2128], 0
push dword [esi + 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0xac]
mov ecx, dword [esi + 0x48]
movsd xmm0, qword [esi + 0xa4]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x1c]
movsd qword [ecx], xmm0
mov byte [eax + 4], 1
mov eax, dword [esi + 0x2120]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm0, qword [esi + 0x20]
mov dword [esi + 0x2128], 3
movsd qword [esi + 0x118], xmm0
push 0x2b
pop edx
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x52b05c
push 0x52aa10
lea eax, [esi + 0x118]
push eax
call fcn.00526c20
add esp, 0xc
jmp 0x40e48d
mov ecx, edi
push 0x5a84d8
call fcn.00526980
pop eax
jmp 0x40e48d
mov ecx, 0x52b06c
cmp eax, 1
jne 0x40e451
call fcn.00526f40
call fcn.00526f80
movsd xmm0, qword [esi + 0xb0]
lea eax, [esi + 0x118]
mov dword [esi + 0x2128], 1
movsd qword [eax], xmm0
push 0x2b
pop edx
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x52b04c
push 0x52aa10
push eax
call fcn.00526c20
add esp, 0xc
ud2