Function at 0x46e0e0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x88], ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x94], edi
test ebx, ebx
je 0x46eb02
test esi, esi
je 0x46eb02
lea eax, [edi + 0x1c]
push eax
mov dword [ebp - 0xbc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x14]
lea edx, [ebp - 0xb0]
push edx
mov ecx, dword [eax + 0x49c]
mov eax, dword [edi + 0x34]
push dword [eax + 0x9c]
add eax, 0x10
push eax
push ebx
call fcn.004a73f0
test eax, eax
jne 0x46eaf6
mov eax, dword [edi + 0x14]
push ebx
push dword [ebp - 0xb0]
mov ecx, dword [eax + 0x4a0]
mov eax, dword [edi + 0x34]
push dword [eax + 0x9c]
call fcn.004ace30
test eax, eax
jne 0x46eaf6
mov eax, dword [edi + 0x34]
mov ecx, dword [eax + 0x9c]
mov eax, dword [ecx + 4]
lea ecx, [ecx + eax*2]
mov eax, dword [ecx + 0xc]
add eax, dword [ecx + 8]
lea ecx, [ecx + 8]
test byte [ecx + eax*2 + 8], 1
lea edx, [ecx + eax*2]
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x4ec]
lea eax, [ebp - 0x10c]
push eax
lea eax, [edx + 0x1c]
mov edx, 0
cmove eax, edx
push eax
call fcn.00479620
test eax, eax
jne 0x46eaf6
push 0x20
call fcn.004d3886
mov ecx, eax
mov dword [ebp - 0xc0], eax
call fcn.004069a0
mov ecx, dword [edi + 0x14]
mov ebx, eax
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0xc4], ebx
mov ecx, dword [ecx + 0x4d8]
push esi
mov ecx, dword [ecx + 0xc0]
call fcn.0042f4e0
xor esi, esi
mov ecx, dword [ebx + 0x14]
mov eax, ecx
mov edx, dword [ebx + 0x10]
sub eax, edx
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0x98], 0
cmp eax, 8
jb 0x46eacd
lea eax, [edx + 4]
mov edx, dword [ebx + 4]
mov dword [ebx + 0x10], eax
mov edi, dword [edx + eax]
add eax, 4
mov dword [ebx + 0x10], eax
test edi, edi
je 0x46e242
lea esi, [edx + eax]
add eax, edi
mov dword [ebp - 0x98], esi
mov dword [ebx + 0x10], eax
xor esi, esi
sub ecx, eax
xor edi, edi
mov dword [ebp - 0x90], esi
cmp ecx, 8
jb 0x46e274
add eax, 4
mov dword [ebx + 0x10], eax
mov edi, dword [edx + eax]
add eax, 4
mov dword [ebx + 0x10], eax
test edi, edi
je 0x46e274
lea esi, [eax + edx]
add eax, edi
mov dword [ebp - 0x90], esi
mov dword [ebx + 0x10], eax
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xffffffff
mov dword [ebp - 0xdc], 0xffffffff
mov dword [ebp - 0xd8], 0xffffffff
mov dword [ebp - 0xd4], 0xffffffff
mov dword [ebp - 0xd0], 0xffffffff
test esi, esi
jne 0x46e2f5
mov esi, dword [ebp - 0xb0]
xor eax, eax
or esi, eax
jmp 0x46e1fb
cmp edi, 0xc
jb case.0x46e30c.4
mov edx, dword [esi]
lea ecx, [esi + 4]
cmp edx, 8
ja case.0x46e30c.4
jmp dword [edx*4 + 0x46eb1c]
mov edx, dword [ecx]
add ecx, 4
lea eax, [edx - 2]
cmp eax, 0xfe
ja case.0x46e30c.4
cmp dword [ecx + edx*2], 1
lea eax, [edx*2 + 0x48]
lea esi, [eax + 0x50]
cmovne esi, eax
lea eax, [esi + 0x18]
mov dword [ebp - 0x84], eax
cmp edi, eax
jb case.0x46e30c.4
mov ebx, dword [ebp - 0x94]
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 4]
push dword [eax + 0x32c]
push 0
call fcn.00453660
mov ebx, dword [ebp - 0xc4]
add esp, 8
test eax, eax
jne case.0x46e30c.4
mov eax, dword [ebp - 0x90]
test byte [esi + eax + 0x16], 1
mov eax, dword [ebp - 0x84]
je 0x46e388
add eax, 0x58
cmp edi, eax
jmp 0x46e488
cmp edi, 0x18
jb case.0x46e30c.4
mov edx, dword [ecx + 4]
mov eax, edx
mov esi, dword [ecx + 0x10]
mov ecx, dword [ecx + 8]
or eax, ecx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x8c], ecx
je case.0x46e30c.4
test esi, esi
je case.0x46e30c.4
cmp esi, 0x800000
ja case.0x46e30c.4
push 0
push esi
push ecx
push edx
call fcn.004f3670
or eax, edx
mov dword [ebp - 0x84], 1
jne 0x46e3ed
mov dword [ebp - 0x84], 0
push 0
push esi
push dword [ebp - 0x8c]
push dword [ebp - 0xa0]
call fcn.004f35c0
mov esi, eax
add esi, dword [ebp - 0x84]
shl esi, 5
add esi, 0x18
lea ecx, [esi + 0x18]
cmp edi, ecx
jmp 0x46e488
cmp edi, 0x14
jb case.0x46e30c.4
mov edx, dword [ecx + 4]
mov eax, edx
mov esi, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
or eax, ecx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x8c], ecx
je case.0x46e30c.4
test esi, esi
je case.0x46e30c.4
cmp esi, 0x800000
ja case.0x46e30c.4
push 0
push esi
push ecx
push edx
call fcn.004f3670
or eax, edx
mov dword [ebp - 0x84], 1
jne 0x46e464
mov dword [ebp - 0x84], 0
push 0
push esi
push dword [ebp - 0x8c]
push dword [ebp - 0xa0]
call fcn.004f35c0
mov esi, eax
add esi, dword [ebp - 0x84]
shl esi, 5
add esi, 0x14
cmp edi, esi
je 0x46e6d2
mov esi, dword [ebp - 0xb0]
mov eax, 1
or esi, eax
jmp 0x46e1fb
movzx esi, byte [ecx + 5]
add ecx, 4
movzx eax, byte [ecx]
add esi, eax
shl esi, 5
add esi, 0xc
jmp 0x46e486
mov eax, dword [ecx]
test eax, eax
jne 0x46e4e2
mov eax, dword [ecx + 4]
add ecx, 4
cmp eax, 0x100
ja case.0x46e30c.4
lea esi, [eax*2 + 0xc]
cmp edi, esi
jne case.0x46e30c.4
test eax, eax
je 0x46e6d2
cmp word [ecx + eax*2 + 2], 0
jmp 0x46e488
cmp eax, 1
jne 0x46e4ec
lea esi, [eax + 0xb]
jmp 0x46e486
cmp eax, 2
jne case.0x46e30c.4
mov eax, dword [ecx + 4]
add ecx, 8
cmp eax, 0x100
ja case.0x46e30c.4
cmp edi, 0x10
jb case.0x46e30c.4
mov edx, dword [ecx]
cmp edx, 0x290
ja case.0x46e30c.4
lea esi, [eax + 8]
lea esi, [edx + esi*2]
jmp 0x46e4ce
mov esi, dword [ecx]
add ecx, 4
mov dword [ebp - 0xa0], esi
lea eax, [esi - 2]
cmp eax, 0xfe
ja case.0x46e30c.4
lea eax, [esi*2 + 0x14]
cmp edi, eax
jb case.0x46e30c.4
lea eax, [ecx + esi*2]
mov esi, eax
mov dword [ebp - 0xa8], eax
mov eax, dword [esi]
add esi, 4
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], eax
mov esi, dword [esi]
mov dword [ebp - 0xac], esi
mov esi, dword [ebp - 0xb8]
add esi, 4
mov dword [ebp - 0xb8], esi
lea esi, [esi + eax*2]
add eax, dword [ebp - 0xac]
add eax, dword [ebp - 0xa0]
mov dword [ebp - 0x84], esi
lea esi, [eax*2 + 0x24]
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xa4], esi
mov esi, dword [ebp - 0x84]
lea eax, [esi + eax*2]
mov esi, dword [ebp - 0xa4]
mov dword [ebp - 0x9c], eax
mov eax, dword [eax]
and eax, 1
jne 0x46e5bd
cmp edx, 2
je case.0x46e30c.4
add esi, 0x50
test eax, eax
cmove esi, dword [ebp - 0xa4]
lea eax, [esi + 0x1c]
mov dword [ebp - 0x8c], eax
cmp edi, eax
jb case.0x46e30c.4
mov eax, dword [ebp - 0xa8]
cmp word [eax - 2], 0
jne case.0x46e30c.4
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x46e606
mov edx, dword [ebp - 0x84]
cmp word [edx - 2], 0
jne case.0x46e30c.4
mov edx, dword [ebp - 0xac]
test edx, edx
je 0x46e627
mov eax, dword [ebp - 0x9c]
cmp word [eax - 2], 0
mov eax, dword [ebp - 0xb4]
jne case.0x46e30c.4
cmp eax, 0x40
ja case.0x46e30c.4
cmp edx, 0x100
ja case.0x46e30c.4
mov edx, dword [ebp - 0x94]
mov eax, dword [edx + 0x34]
mov edx, dword [ebp - 0xa0]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x32c]
push eax
push 0
mov dword [ebp - 0xa4], eax
call fcn.00453660
add esp, 8
test eax, eax
jne case.0x46e30c.4
push dword [ebp - 0xa4]
mov edx, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb8]
push eax
call fcn.00453660
add esp, 8
test eax, eax
jne case.0x46e30c.4
push dword [ebp - 0xa4]
mov edx, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x84]
push 1
call fcn.00453660
add esp, 8
test eax, eax
jne case.0x46e30c.4
mov eax, dword [ebp - 0x90]
test byte [esi + eax + 0x1a], 1
mov eax, dword [ebp - 0x8c]
je 0x46e6ca
add eax, 0x58
cmp edi, eax
jne case.0x46e30c.4
cmp dword [ebp - 0x98], 0
je 0x46e775
test esi, esi
je 0x46e775
lea eax, [ebp - 0x80]
mov dword [ebp - 0x5c], 0
push eax
push esi
mov esi, dword [ebp - 0x90]
push esi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x80], 0x6a09e667
mov dword [ebp - 0x7c], 0xbb67ae85
mov dword [ebp - 0x78], 0x3c6ef372
mov dword [ebp - 0x74], 0xa54ff53a
mov dword [ebp - 0x70], 0x510e527f
mov dword [ebp - 0x6c], 0x9b05688c
mov dword [ebp - 0x68], 0x1f83d9ab
mov dword [ebp - 0x64], 0x5be0cd19
mov dword [ebp - 0x10], 0
call fcn.004b2370
lea eax, [ebp - 0x80]
push eax
call fcn.004b2880
mov edx, dword [ebp - 0x98]
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [ebp + ecx*4 - 0x80]
cmp eax, dword [edx + ecx*4]
jne case.0x46e30c.4
inc ecx
cmp ecx, 8
jb 0x46e760
jmp 0x46e77b
mov esi, dword [ebp - 0x90]
mov eax, dword [esi]
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x46e790
cmp eax, 6
jne case.0x46e30c.4
lea eax, [ebp - 0xc8]
push eax
push ecx
push esi
call fcn.004abd50
mov edx, dword [ebp - 0xc8]
test edx, edx
je 0x46e7e0
movzx eax, word [edx + 0x16]
mov ecx, eax
test al, 1
je 0x46e7e0
mov eax, dword [ebp - 0x9c]
and ecx, 0xfffe
mov word [edx + 0x16], cx
test eax, eax
je 0x46e7d9
cmp eax, 6
je 0x46e7d9
cmp eax, 1
je 0x46e7d9
cmp eax, 2
je 0x46e7d9
xor eax, eax
jmp 0x46e7de
mov eax, 0x58
sub edi, eax
lea eax, [ebp - 0xcc]
push eax
push ecx
push esi
call fcn.004abd50
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0xcc]
sub eax, esi
mov dword [ebp - 0x8c], eax
mov esi, dword [edx + 0x48]
mov eax, dword [ebp - 0x88]
mov dword [esi + 0x38], 0x7d5
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x38]
mov eax, dword [eax]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + 4]
mov dword [ecx + 0x34], eax
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + 8]
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x44], eax
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + 0x18]
mov dword [ecx + 0x48], eax
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x4c], eax
add ecx, 0x50
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x9c], ecx
push ecx
mov eax, dword [eax + 0x4c8]
mov ecx, eax
mov dword [ebp - 0xa8], eax
call fcn.0047ac20
test eax, eax
je 0x46e8aa
push dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa8]
call fcn.0047acd0
mov eax, dword [ebp - 0x8c]
shl eax, 0x10
add eax, edi
mov dword [esi + 0x8c], 2
lea edi, [esi + 0x38]
mov dword [edi + 0x58], eax
movzx eax, ax
push eax
mov eax, dword [ebp - 0x90]
push eax
lea eax, [edi + 0x64]
mov dword [edi + 0x5c], 4
push eax
mov dword [edi + 0x60], 0
call fcn.004d6950
movzx eax, word [edi + 0x58]
add esp, 0xc
mov dword [eax + edi + 0x64], 0
movzx ecx, word [edi + 0x58]
mov eax, dword [edi + 0x5c]
add ecx, 0x64
add eax, ecx
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x94]
push edi
mov ecx, dword [eax + 0x34]
call fcn.004ae570
test eax, eax
jne case.0x46e30c.4
push dword [ebp - 0x98]
push edi
push esi
push 1
call fcn.004ab3f0
test eax, eax
jne case.0x46e30c.4
push edi
mov edi, dword [ebp - 0x94]
push esi
mov ecx, dword [edi + 0x3c]
call fcn.004ab310
test eax, eax
jne 0x46ea86
lea eax, [esi + 0x20]
test eax, eax
je 0x46e966
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax], 0xe26af5e
mov dword [eax + 4], 0x7d5
mov dword [eax + 0x10], 2
mov eax, dword [edi + 0x14]
mov edi, dword [eax + 0x470]
lea ecx, [edi + 8]
mov dword [ebp - 0xa8], ecx
call fcn.004058a0
test esi, esi
je 0x46e9cd
mov ecx, dword [edi + 0x40]
mov eax, dword [edi + 0x48]
and ecx, 0xe5e81e33
mov dword [ebp - 0x9c], ecx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x46e9c4
nop dword [eax + eax]
cmp dword [eax + 8], 0xe5e81e33
je 0x46ea95
mov eax, dword [eax + 4]
test eax, eax
jne 0x46e9b0
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0xa8]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x46e9e8
dec eax
mov dword [ecx + 0x18], eax
test eax, eax
jne 0x46e9ef
mov dword [ecx + 0x1c], 0
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 0x20]
mov dword [ebp - 0xf8], 0xe5e81e33
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x98]
add eax, 0x18
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xf8]
push eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xf0], 0x20
mov dword [ebp - 0xec], 4
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx + 0x470]
call fcn.004039d0
lea ecx, [esi + 0x37]
mov edx, 0x20
add esi, 0x1f
mov al, byte [esi]
lea esi, [esi - 1]
mov edi, ecx
mov byte [ecx], al
dec ecx
sub edx, 1
jne 0x46ea58
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
add eax, 0x20
push edx
push eax
push edi
call fcn.0046cac0
test eax, eax
jne case.0x46e30c.4
mov esi, dword [ebp - 0xb0]
xor eax, eax
or esi, eax
jmp 0x46e1fb
lea eax, [ebp - 0xc0]
mov ecx, edi
push eax
lea eax, [ebp - 0x9c]
push eax
push 0x20
push esi
push 0xe5e81e33
call fcn.00404070
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x46e9cd
push eax
mov ecx, edi
call fcn.00404240
jmp 0x46e9cd
mov edx, dword [ebx]
mov ecx, ebx
push 1
call dword [edx]
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x10