Function at 0x10076980
Capabilities:
Hash data via bcrypt

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab655
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xc8
mov eax, dword [0x10102040]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x81], dl
mov esi, ecx
mov dword [ebp - 0x74], esi
push 0x30
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.100817d0
add esp, 0xc
lea ecx, [ebp - 0x6c]
call fcn.10039920
mov dword [ebp - 4], 0
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
cmp dword [eax + 0x8b4], 0
je 0x1007728e
test esi, esi
je 0x1007728e
cmp dword [esi + 0x218], 0xcafebabe
jne 0x1007728e
lea eax, [esi + 0x48]
mov dword [ebp - 0x88], eax
mov eax, dword [eax]
test eax, eax
je 0x1007728e
cmp dword [eax + 0x3c], 0
je 0x1007728e
call dword [sym.imp.OPENGL32.dll_glGetError]
mov dword [ebp - 0x78], eax
mov edi, str.GL_STACK_UNDERFLOW
mov esi, str.GL_OUT_OF_MEMORY
test eax, eax
je 0x10076abd
cmp eax, 0x502
jne 0x10076a5b
mov ecx, str.GL_INVALID_OPERATION
jmp 0x10076a8f
cmp eax, 0x500
jne 0x10076a69
mov ecx, str.GL_INVALID_ENUM
jmp 0x10076a8f
cmp eax, 0x501
jne 0x10076a77
mov ecx, str.GL_INVALID_VALUE
jmp 0x10076a8f
cmp eax, 0x503
jne 0x10076a85
mov ecx, str.GL_STACK_OVERFLOW
jmp 0x10076a8f
cmp eax, 0x504
mov ecx, edi
cmovne ecx, esi
sub esp, 0x18
mov dword [ebp - 0x80], ecx
mov ecx, esp
lea eax, [ebp - 0x78]
lea edx, [ebp - 0x80]
push str.UpdatePalette_On_Entry
push eax
push 0x15
push str.GL_Error_____:_
call fcn.10003bf0
mov ecx, dword [sym.Redline.dll_class_LogFile__pLog]
add esp, 0x10
call fcn.10030d30
xor al, al
mov byte [ebp - 0x6d], al
mov byte [ebp - 0x79], al
cmp byte [ebp - 0x81], al
je 0x10076e63
mov eax, dword [ebp - 0x74]
mov esi, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov dword [ebp - 0x80], 8
mov ecx, dword [eax + 0x68]
mov eax, 0x724
mov edi, dword [esi + 0x8bc]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x8c], eax
mov esi, dword [eax + esi]
mov edx, esi
push edi
shr edx, 0x10
call fcn.1002eb20
mov cl, byte [edi]
add esp, 4
movzx eax, byte [edi + 2]
mov byte [edi + 2], cl
mov ecx, dword [ebp - 0x78]
mov byte [edi], al
add edi, 4
push edi
movzx edx, si
call fcn.1002eb20
movzx eax, byte [edi + 2]
add esp, 4
mov cl, byte [edi]
mov byte [edi], al
mov eax, dword [ebp - 0x8c]
mov byte [edi + 2], cl
add eax, 4
add edi, 4
mov dword [ebp - 0x8c], eax
sub dword [ebp - 0x80], 1
je 0x10076b54
mov esi, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov ecx, dword [ebp - 0x78]
jmp 0x10076af8
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x68]
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov dword [eax + 0x784], ecx
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov byte [eax + 0x720], 0
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
cmp byte [eax + 0x15f], 0
je 0x10076c81
push 0
push 0x40
mov byte [ebp - 4], 1
push dword [eax + 0x8bc]
push dword [ebp - 0x44]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jne 0x100772e4
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
push dword [ebp - 0x44]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jne 0x10077316
mov eax, dword [ebp - 0x68]
xorps xmm0, xmm0
mov edx, dword [sym.Redline.dll_class_VeriteLib__pLib]
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x30], xmm0
mov eax, dword [edx + 0x1e8]
sub esp, 0xc
add eax, dword [edx + 0x1e4]
mov ecx, esp
sub esp, 0xc
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov eax, dword [edx + 0x1d8]
mov dword [ecx], eax
mov ecx, esp
mov eax, dword [edx + 0x1e4]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov eax, dword [edx + 0x1d8]
mov dword [ecx], eax
lea ecx, [ebp - 0x9c]
call fcn.10077e70
mov esi, dword [sym.Redline.dll_class_VeriteLib__pLib]
add esp, 0x1c
mov edx, dword [ebp - 0x94]
mov eax, dword [esi + 0x1e8]
add eax, dword [esi + 0x1e4]
cmp edx, eax
je 0x10076cbc
mov eax, dword [ebp - 0x9c]
mov byte [ebp - 0x6d], 1
test eax, eax
je 0x10076c63
mov eax, dword [eax]
jmp 0x10076c65
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x8b4], eax
mov dword [ebp - 4], 0
mov edi, str.GL_STACK_UNDERFLOW
mov esi, str.GL_OUT_OF_MEMORY
push 0x84c2
call dword [0x10151314]
call dword [sym.imp.OPENGL32.dll_glGetError]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x10076f40
cmp eax, 0x502
jne 0x10076ede
mov ecx, str.GL_INVALID_OPERATION
jmp 0x10076f12
mov eax, dword [esi + 0xcc]
xor dl, dl
mov byte [ebp - 0x6d], dl
mov byte [ebp - 0x79], dl
test eax, eax
je 0x10076c7a
cmp dword [eax + 0x218], 0xcafebabe
jne 0x10076c7a
mov eax, dword [eax + 0x48]
test eax, eax
je 0x10076c7a
cmp dword [eax + 0x3c], 0
je 0x10076c7a
call fcn.1006fbc0
mov esi, eax
test esi, esi
je 0x10076c7a
mov edx, dword [sym.Redline.dll_class_VeriteLib__pLib]
cmp dword [edx + 0x1e8], 0x200
jb 0x10076d68
mov ecx, dword [edx + 0x1e0]
mov eax, dword [edx + 0x1dc]
dec ecx
and ecx, dword [edx + 0x1e4]
mov eax, dword [eax + ecx*4]
lea ecx, [edx + 0xc0c]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x98], xmm0
push dword [ebp - 0x98]
call fcn.10017e30
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
add dword [eax + 0x1e8], 0xffffffff
jne 0x10076d5c
mov dword [eax + 0x1e4], 0
jmp 0x10076d62
inc dword [eax + 0x1e4]
mov edx, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov dword [edx + 0x8b4], esi
movups xmm0, xmmword [ebp - 0x30]
mov dword [ebp - 0xc8], esi
mov esi, dword [sym.Redline.dll_class_VeriteLib__pLib]
add esi, 0x1d8
movups xmmword [ebp - 0xa0], xmm0
mov eax, dword [esi + 0x10]
inc eax
cmp dword [esi + 8], eax
ja 0x10076d9c
push ecx
mov ecx, esi
call fcn.10077f30
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
lea eax, [edx - 1]
and ecx, eax
lea edi, [edx - 1]
mov dword [esi + 0xc], ecx
mov eax, dword [esi + 0x10]
add eax, ecx
and edi, eax
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 4]
cmp dword [eax + edi*4], 0
jne 0x10076dd0
push 0x18
call fcn.1007c9c1
mov ecx, dword [esi + 4]
add esp, 4
mov dword [ecx + edi*4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
dec ecx
and ecx, dword [ebp - 0x74]
movups xmm0, xmmword [ebp - 0xa0]
mov eax, dword [eax + ecx*4]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0xc8]
movq qword [eax + 0x10], xmm0
inc dword [esi + 0x10]
jmp 0x10076c7a
mov eax, dword [ebp - 0x88]
mov eax, dword [eax]
mov ecx, dword [eax + 0x24]
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov eax, dword [eax + 0x8bc]
test eax, eax
je 0x10076ebd
test ecx, ecx
je 0x10076eb0
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [eax + 0x30], xmm0
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov byte [eax + 0x720], 0
jmp 0x10076c8b
push 0x40
push 0
push eax
call fcn.100817d0
add esp, 0xc
call fcn.1008a089
mov dword [eax], 0x16
call fcn.100852ce
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov byte [eax + 0x720], 0
jmp 0x10076c8b
cmp eax, 0x500
jne 0x10076eec
mov ecx, str.GL_INVALID_ENUM
jmp 0x10076f12
cmp eax, 0x501
jne 0x10076efa
mov ecx, str.GL_INVALID_VALUE
jmp 0x10076f12
cmp eax, 0x503
jne 0x10076f08
mov ecx, str.GL_STACK_OVERFLOW
jmp 0x10076f12
cmp eax, 0x504
mov ecx, edi
cmovne ecx, esi
sub esp, 0x18
mov dword [ebp - 0x78], ecx
mov ecx, esp
lea eax, [ebp - 0x74]
lea edx, [ebp - 0x78]
push str.UpdatePalette_Switching_texture_unit
push eax
push 0x15
push str.GL_Error_____:_
call fcn.10003bf0
mov ecx, dword [sym.Redline.dll_class_LogFile__pLog]
add esp, 0x10
call fcn.10030d30
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
push dword [eax + 0x8b4]
push 0xde1
call dword [sym.imp.OPENGL32.dll_glBindTexture]
call dword [sym.imp.OPENGL32.dll_glGetError]
mov ecx, eax
mov dword [ebp - 0x74], ecx
test ecx, ecx
je 0x10076fda
cmp ecx, 0x502
jne 0x10076f74
mov eax, str.GL_INVALID_OPERATION
jmp 0x10076fac
cmp ecx, 0x500
jne 0x10076f83
mov eax, str.GL_INVALID_ENUM
jmp 0x10076fac
cmp ecx, 0x501
jne 0x10076f92
mov eax, str.GL_INVALID_VALUE
jmp 0x10076fac
cmp ecx, 0x503
jne 0x10076fa1
mov eax, str.GL_STACK_OVERFLOW
jmp 0x10076fac
cmp ecx, 0x504
mov eax, edi
cmovne eax, esi
sub esp, 0x18
mov dword [ebp - 0x78], eax
mov ecx, esp
lea eax, [ebp - 0x74]
lea edx, [ebp - 0x78]
push str.UpdatePalette_Binding_textures
push eax
push 0x15
push str.GL_Error_____:_
call fcn.10003bf0
mov ecx, dword [sym.Redline.dll_class_LogFile__pLog]
add esp, 0x10
call fcn.10030d30
mov esi, dword [sym.imp.OPENGL32.dll_glTexParameteri]
push 0x2900
push 0x2802
push 0xde1
call esi
push 0x2900
push 0x2803
push 0xde1
call esi
mov esi, dword [sym.imp.OPENGL32.dll_glTexParameterf]
push ecx
mov dword [esp], 0x46180000
push 0x2801
push 0xde1
call esi
push ecx
mov dword [esp], 0x46180000
push 0x2800
push 0xde1
call esi
call dword [sym.imp.OPENGL32.dll_glGetError]
mov ecx, eax
mov esi, str.GL_OUT_OF_MEMORY
mov dword [ebp - 0x74], ecx
test ecx, ecx
je 0x100770b9
cmp ecx, 0x502
jne 0x10077053
mov eax, str.GL_INVALID_OPERATION
jmp 0x1007708b
cmp ecx, 0x500
jne 0x10077062
mov eax, str.GL_INVALID_ENUM
jmp 0x1007708b
cmp ecx, 0x501
jne 0x10077071
mov eax, str.GL_INVALID_VALUE
jmp 0x1007708b
cmp ecx, 0x503
jne 0x10077080
mov eax, str.GL_STACK_OVERFLOW
jmp 0x1007708b
cmp ecx, 0x504
mov eax, edi
cmovne eax, esi
sub esp, 0x18
mov dword [ebp - 0x78], eax
mov ecx, esp
lea eax, [ebp - 0x74]
lea edx, [ebp - 0x78]
push str.UpdatePalette_texture_parameters
push eax
push 0x15
push str.GL_Error_____:_
call fcn.10003bf0
mov ecx, dword [sym.Redline.dll_class_LogFile__pLog]
add esp, 0x10
call fcn.10030d30
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
cmp byte [eax + 0x15f], 0
jne 0x1007711d
cmp byte [eax + 0x8c], 0
push dword [eax + 0x8bc]
push 0x1401
push 0x1908
je 0x100770f7
push 1
push 0x10
push 0
push 0
push 0
push 0xde1
call dword [sym.imp.OPENGL32.dll_glTexSubImage2D]
jmp 0x1007714b
push 0
push 1
push 0x10
push 0x1908
push 0
push 0xde1
call dword [sym.imp.OPENGL32.dll_glTexImage2D]
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov byte [eax + 0x8c], 1
jmp 0x1007714b
cmp byte [ebp - 0x6d], 0
jne 0x1007714b
push dword [eax + 0x8bc]
push 0x1401
push 0x1908
push 0
push 1
push 0x10
push 0x1908
push 0
push 0xde1
call dword [sym.imp.OPENGL32.dll_glTexImage2D]
call dword [sym.imp.OPENGL32.dll_glGetError]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x100771c8
cmp eax, 0x502
jne 0x10077166
mov ecx, str.GL_INVALID_OPERATION
jmp 0x1007719a
cmp eax, 0x500
jne 0x10077174
mov ecx, str.GL_INVALID_ENUM
jmp 0x1007719a
cmp eax, 0x501
jne 0x10077182
mov ecx, str.GL_INVALID_VALUE
jmp 0x1007719a
cmp eax, 0x503
jne 0x10077190
mov ecx, str.GL_STACK_OVERFLOW
jmp 0x1007719a
cmp eax, 0x504
mov ecx, edi
cmovne ecx, esi
sub esp, 0x18
mov dword [ebp - 0x78], ecx
mov ecx, esp
lea eax, [ebp - 0x74]
lea edx, [ebp - 0x78]
push str.UpdatePalette_glTexImage2D
push eax
push 0x15
push str.GL_Error_____:_
call fcn.10003bf0
mov ecx, dword [sym.Redline.dll_class_LogFile__pLog]
add esp, 0x10
call fcn.10030d30
push 0x84c0
call dword [0x10151314]
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov byte [eax + 0x8ee], 1
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov dword [eax + 0x8f8], 2
mov eax, dword [ebp - 0x88]
mov edx, dword [eax]
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov ecx, dword [edx + 0x28]
mov dword [eax + 0x8f0], ecx
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov ecx, dword [edx + 0x2c]
mov dword [eax + 0x8f4], ecx
call dword [sym.imp.OPENGL32.dll_glGetError]
mov dword [ebp - 0x88], eax
test eax, eax
je 0x100772be
cmp eax, 0x502
jne 0x10077234
mov edi, str.GL_INVALID_OPERATION
jmp 0x10077266
cmp eax, 0x500
jne 0x10077242
mov edi, str.GL_INVALID_ENUM
jmp 0x10077266
cmp eax, 0x501
jne 0x10077250
mov edi, str.GL_INVALID_VALUE
jmp 0x10077266
cmp eax, 0x503
jne 0x1007725e
mov edi, str.GL_STACK_OVERFLOW
jmp 0x10077266
cmp eax, 0x504
cmovne edi, esi
sub esp, 0x18
mov dword [ebp - 0x74], edi
mov ecx, esp
lea eax, [ebp - 0x88]
lea edx, [ebp - 0x74]
push str.UpdatePalette_setting_palette_size
push eax
push 0x15
push str.GL_Error_____:_
call fcn.10003bf0
add esp, 0x10
jmp 0x100772b3
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0x1a
movups xmmword [ecx], xmm0
push str.Palette_texture_ID_is_null
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10003cd0
mov ecx, dword [sym.Redline.dll_class_LogFile__pLog]
call fcn.10030d30
lea ecx, [ebp - 0x6c]
call fcn.10039b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007c8d3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x5c], eax
call fcn.10039b50
push str.Error_while_opening_hashing_data
lea ecx, [ebp - 0xb4]
call fcn.10002310
push 0x100feacc
lea eax, [ebp - 0xb4]
push eax
call fcn.1008175e
lea ecx, [ebp - 0x6c]
call fcn.10039b50
push str.Error_while_finalising_hash_generation
lea ecx, [ebp - 0xc0]
call fcn.10002310
push 0x100feacc
lea eax, [ebp - 0xc0]
push eax
call fcn.1008175e
int3