Function at 0x422e80
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0xd8], ebx
mov eax, dword [ebx + 0xb4]
test byte [eax + 0x244], 1
je 0x422ef6
cmp dword [eax + 0x418], 0
je 0x422ef6
mov esi, dword [ebx + 0xbc]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x422eef
nop dword [eax]
mov edx, dword [ecx + 0x34]
test dl, 0x40
je 0x422ee8
mov eax, dword [ecx + 0x40]
shr eax, 8
dec eax
test al, al
jne 0x422ee8
test dl, 4
jne 0x422f09
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x422ed0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [ecx + 0x14]
and edx, 0xffffffbb
push edi
movups xmmword [ebp - 0xd0], xmm0
mov dword [ecx + 0x34], edx
movups xmm0, xmmword [ecx + 0x24]
movups xmmword [ebp - 0xc0], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0xb4]
xor edx, edx
xor esi, esi
mov dword [ebp - 0x98], edx
xor ecx, ecx
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xb0], 0x67452301
mov dword [ebp - 0xac], 0xefcdab89
mov dword [ebp - 0xa8], 0x98badcfe
mov dword [ebp - 0xa4], 0x10325476
mov dword [ebp - 0xa0], 0xc3d2e1f0
mov dword [ebp - 0x50], ecx
mov ebx, dword [eax + 0x480]
mov dword [ebp - 0xd4], ebx
lea ebx, [eax + 0x358]
test ebx, ebx
je 0x422ff9
mov edi, 8
mov dword [ebp - 0x9c], edi
nop word [eax + eax]
mov eax, 0x40
mov esi, edi
sub eax, ecx
cmp edi, eax
cmovae esi, eax
lea eax, [ebp - 0x90]
push esi
add eax, ecx
push ebx
push eax
call fcn.004d6950
mov ecx, dword [ebp - 0x50]
add esp, 0xc
add ecx, esi
add ebx, esi
sub edi, esi
mov dword [ebp - 0x50], ecx
cmp ecx, 0x40
jne 0x422fe9
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0xb0]
push eax
call fcn.004b2a40
xor ecx, ecx
mov dword [ebp - 0x50], ecx
test edi, edi
jne 0x422fa0
mov edx, dword [ebp - 0x98]
mov esi, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xd8]
lea ebx, [ebp - 0xd0]
mov edi, 0x20
mov eax, dword [eax + 0xb4]
mov eax, dword [eax + 0x480]
mov dword [ebp - 0xd4], eax
lea eax, [esi + 0x20]
mov dword [ebp - 0x9c], eax
cmp eax, edi
jae 0x423030
inc edx
mov dword [ebp - 0x98], edx
mov eax, 0x40
mov esi, edi
sub eax, ecx
cmp edi, eax
cmovae esi, eax
lea eax, [ebp - 0x90]
push esi
add eax, ecx
push ebx
push eax
call fcn.004d6950
mov ecx, dword [ebp - 0x50]
add esp, 0xc
add ecx, esi
add ebx, esi
sub edi, esi
mov dword [ebp - 0x50], ecx
cmp ecx, 0x40
jne 0x423079
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0xb0]
push eax
call fcn.004b2a40
xor ecx, ecx
mov dword [ebp - 0x50], ecx
test edi, edi
jne 0x423030
mov ebx, dword [ebp - 0xd8]
lea eax, [ebp - 0xb0]
push eax
mov ecx, dword [ebx + 0xb4]
mov ecx, dword [ecx + 0x480]
call fcn.004b2720
mov eax, dword [ebx + 0xb4]
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, dword [eax + 0x4ec]
call fcn.004794e0
test eax, eax
jne 0x4231f8
push 0x2c6
lea eax, [ebp - 0xd4]
push eax
call fcn.004bd020
mov esi, dword [ebp - 0xd4]
push 0x14
push dword [ebp - 0xd8]
push 0x2c6
push esi
call fcn.004bbdb0
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd4], 0x28
push eax
mov eax, dword [ebx + 0xb4]
add eax, 0x3b8
push eax
push ecx
lea eax, [ebp - 0xb0]
push eax
push esi
call fcn.004bc800
mov edi, eax
test esi, esi
je 0x423152
mov ecx, dword [esi + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
test ecx, ecx
je 0x42313d
call fcn.004c2a10
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x423149
call fcn.004bfe20
push esi
call fcn.004d9a63
add esp, 4
push dword [ebp - 0xdc]
call fcn.004d9a63
add esp, 4
push dword [ebp - 0xe0]
call fcn.004d9a63
add esp, 4
push dword [ebp - 0xd8]
call fcn.004d9a63
add esp, 4
test edi, edi
jne 0x4231fd
mov eax, dword [ebx + 0xb4]
movsd xmm0, qword [eax + 0x358]
movsd qword [eax + 0x350], xmm0
mov eax, dword [ebx + 0xb4]
add eax, 0x368
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.004ae8f0
mov eax, dword [ebx + 0xb4]
movups xmm0, xmmword [eax + 0x3b8]
movups xmmword [eax + 0x388], xmm0
movups xmm0, xmmword [eax + 0x3c8]
movups xmmword [eax + 0x398], xmm0
movq xmm0, qword [eax + 0x3d8]
movq qword [eax + 0x3a8], xmm0
mov eax, dword [ebx + 0xb4]
movsd xmm0, qword [eax + 0x358]
movsd qword [eax + 0x348], xmm0
jmp 0x4231fd
mov edi, 2
push edi
push str.superpower_failed__d
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push 0x20
push eax
call fcn.00415570
mov ecx, dword [ebx + 0xb4]
lea eax, [ebp - 0x48]
add esp, 0x14
mov ecx, dword [ecx + 0x478]
push eax
push 0xbcd3f497
call fcn.0045bc70
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret