Function at 0x100832d0
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 0x100b8855
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xc8
mov eax, dword [0x10110040]
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.1008e600
add esp, 0xc
lea ecx, [ebp - 0x6c]
call fcn.1003c820
mov dword [ebp - 4], 0
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
cmp dword [eax + 0xa8c], 0
je 0x10083bde
test esi, esi
je 0x10083bde
cmp dword [esi + 0x218], 0xcafebabe
jne 0x10083bde
lea eax, [esi + 0x48]
mov dword [ebp - 0x88], eax
mov eax, dword [eax]
test eax, eax
je 0x10083bde
cmp dword [eax + 0x3c], 0
je 0x10083bde
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 0x1008340d
cmp eax, 0x502
jne 0x100833ab
mov ecx, str.GL_INVALID_OPERATION
jmp 0x100833df
cmp eax, 0x500
jne 0x100833b9
mov ecx, str.GL_INVALID_ENUM
jmp 0x100833df
cmp eax, 0x501
jne 0x100833c7
mov ecx, str.GL_INVALID_VALUE
jmp 0x100833df
cmp eax, 0x503
jne 0x100833d5
mov ecx, str.GL_STACK_OVERFLOW
jmp 0x100833df
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.10003df0
mov ecx, dword [sym.Redline.dll_class_LogFile__pLog]
add esp, 0x10
call fcn.100335a0
xor al, al
mov byte [ebp - 0x6d], al
mov byte [ebp - 0x79], al
cmp byte [ebp - 0x81], al
je 0x100837b3
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, 0x8fc
mov edi, dword [esi + 0xa94]
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.10031160
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.10031160
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 0x100834a4
mov esi, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov ecx, dword [ebp - 0x78]
jmp 0x10083448
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x68]
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov dword [eax + 0x95c], ecx
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov byte [eax + 0x8f8], 0
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
cmp byte [eax + 0x16e], 0
je 0x100835d1
push 0
push 0x40
mov byte [ebp - 4], 1
push dword [eax + 0xa94]
push dword [ebp - 0x44]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jne 0x10083c34
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 0x10083c66
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 + 0x380]
sub esp, 0xc
add eax, dword [edx + 0x37c]
mov ecx, esp
sub esp, 0xc
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov eax, dword [edx + 0x370]
mov dword [ecx], eax
mov ecx, esp
mov eax, dword [edx + 0x37c]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov eax, dword [edx + 0x370]
mov dword [ecx], eax
lea ecx, [ebp - 0x9c]
call fcn.100848a0
mov esi, dword [sym.Redline.dll_class_VeriteLib__pLib]
add esp, 0x1c
mov edx, dword [ebp - 0x94]
mov eax, dword [esi + 0x380]
add eax, dword [esi + 0x37c]
cmp edx, eax
je 0x1008360c
mov eax, dword [ebp - 0x9c]
mov byte [ebp - 0x6d], 1
test eax, eax
je 0x100835b3
mov eax, dword [eax]
jmp 0x100835b5
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 + 0xa8c], eax
mov dword [ebp - 4], 0
mov edi, str.GL_STACK_UNDERFLOW
mov esi, str.GL_OUT_OF_MEMORY
push 0x84c2
call dword [0x1015f5dc]
call dword [sym.imp.OPENGL32.dll_glGetError]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x10083890
cmp eax, 0x502
jne 0x1008382e
mov ecx, str.GL_INVALID_OPERATION
jmp 0x10083862
mov eax, dword [esi + 0xcc]
xor dl, dl
mov byte [ebp - 0x6d], dl
mov byte [ebp - 0x79], dl
test eax, eax
je 0x100835ca
cmp dword [eax + 0x218], 0xcafebabe
jne 0x100835ca
mov eax, dword [eax + 0x48]
test eax, eax
je 0x100835ca
cmp dword [eax + 0x3c], 0
je 0x100835ca
call fcn.1007d160
mov esi, eax
test esi, esi
je 0x100835ca
mov edx, dword [sym.Redline.dll_class_VeriteLib__pLib]
cmp dword [edx + 0x380], 0x200
jb 0x100836b8
mov ecx, dword [edx + 0x378]
mov eax, dword [edx + 0x374]
dec ecx
and ecx, dword [edx + 0x37c]
mov eax, dword [eax + ecx*4]
lea ecx, [edx + 0xe18]
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.10018900
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
add dword [eax + 0x380], 0xffffffff
jne 0x100836ac
mov dword [eax + 0x37c], 0
jmp 0x100836b2
inc dword [eax + 0x37c]
mov edx, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov dword [edx + 0xa8c], esi
movups xmm0, xmmword [ebp - 0x30]
mov dword [ebp - 0xc8], esi
mov esi, dword [sym.Redline.dll_class_VeriteLib__pLib]
add esi, 0x370
movups xmmword [ebp - 0xa0], xmm0
mov eax, dword [esi + 0x10]
inc eax
cmp dword [esi + 8], eax
ja 0x100836ec
push ecx
mov ecx, esi
call fcn.10084960
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 0x10083720
push 0x18
call fcn.10089661
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 0x100835ca
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 + 0xa94]
test eax, eax
je 0x1008380d
test ecx, ecx
je 0x10083800
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 + 0x8f8], 0
jmp 0x100835db
push 0x40
push 0
push eax
call fcn.1008e600
add esp, 0xc
call fcn.10096ec9
mov dword [eax], 0x16
call fcn.1009210e
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov byte [eax + 0x8f8], 0
jmp 0x100835db
cmp eax, 0x500
jne 0x1008383c
mov ecx, str.GL_INVALID_ENUM
jmp 0x10083862
cmp eax, 0x501
jne 0x1008384a
mov ecx, str.GL_INVALID_VALUE
jmp 0x10083862
cmp eax, 0x503
jne 0x10083858
mov ecx, str.GL_STACK_OVERFLOW
jmp 0x10083862
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.10003df0
mov ecx, dword [sym.Redline.dll_class_LogFile__pLog]
add esp, 0x10
call fcn.100335a0
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
push dword [eax + 0xa8c]
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 0x1008392a
cmp ecx, 0x502
jne 0x100838c4
mov eax, str.GL_INVALID_OPERATION
jmp 0x100838fc
cmp ecx, 0x500
jne 0x100838d3
mov eax, str.GL_INVALID_ENUM
jmp 0x100838fc
cmp ecx, 0x501
jne 0x100838e2
mov eax, str.GL_INVALID_VALUE
jmp 0x100838fc
cmp ecx, 0x503
jne 0x100838f1
mov eax, str.GL_STACK_OVERFLOW
jmp 0x100838fc
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.10003df0
mov ecx, dword [sym.Redline.dll_class_LogFile__pLog]
add esp, 0x10
call fcn.100335a0
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 0x10083a09
cmp ecx, 0x502
jne 0x100839a3
mov eax, str.GL_INVALID_OPERATION
jmp 0x100839db
cmp ecx, 0x500
jne 0x100839b2
mov eax, str.GL_INVALID_ENUM
jmp 0x100839db
cmp ecx, 0x501
jne 0x100839c1
mov eax, str.GL_INVALID_VALUE
jmp 0x100839db
cmp ecx, 0x503
jne 0x100839d0
mov eax, str.GL_STACK_OVERFLOW
jmp 0x100839db
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.10003df0
mov ecx, dword [sym.Redline.dll_class_LogFile__pLog]
add esp, 0x10
call fcn.100335a0
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
cmp byte [eax + 0x16e], 0
jne 0x10083a6d
cmp byte [eax + 0x8c], 0
push dword [eax + 0xa94]
push 0x1401
push 0x1908
je 0x10083a47
push 1
push 0x10
push 0
push 0
push 0
push 0xde1
call dword [sym.imp.OPENGL32.dll_glTexSubImage2D]
jmp 0x10083a9b
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 0x10083a9b
cmp byte [ebp - 0x6d], 0
jne 0x10083a9b
push dword [eax + 0xa94]
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 0x10083b18
cmp eax, 0x502
jne 0x10083ab6
mov ecx, str.GL_INVALID_OPERATION
jmp 0x10083aea
cmp eax, 0x500
jne 0x10083ac4
mov ecx, str.GL_INVALID_ENUM
jmp 0x10083aea
cmp eax, 0x501
jne 0x10083ad2
mov ecx, str.GL_INVALID_VALUE
jmp 0x10083aea
cmp eax, 0x503
jne 0x10083ae0
mov ecx, str.GL_STACK_OVERFLOW
jmp 0x10083aea
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.10003df0
mov ecx, dword [sym.Redline.dll_class_LogFile__pLog]
add esp, 0x10
call fcn.100335a0
push 0x84c0
call dword [0x1015f5dc]
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov byte [eax + 0xac6], 1
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov dword [eax + 0xad0], 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 + 0xac8], ecx
mov eax, dword [sym.Redline.dll_class_VeriteLib__pLib]
mov ecx, dword [edx + 0x2c]
mov dword [eax + 0xacc], ecx
call dword [sym.imp.OPENGL32.dll_glGetError]
mov dword [ebp - 0x88], eax
test eax, eax
je 0x10083c0e
cmp eax, 0x502
jne 0x10083b84
mov edi, str.GL_INVALID_OPERATION
jmp 0x10083bb6
cmp eax, 0x500
jne 0x10083b92
mov edi, str.GL_INVALID_ENUM
jmp 0x10083bb6
cmp eax, 0x501
jne 0x10083ba0
mov edi, str.GL_INVALID_VALUE
jmp 0x10083bb6
cmp eax, 0x503
jne 0x10083bae
mov edi, str.GL_STACK_OVERFLOW
jmp 0x10083bb6
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.10003df0
add esp, 0x10
jmp 0x10083c03
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.10003ed0
mov ecx, dword [sym.Redline.dll_class_LogFile__pLog]
call fcn.100335a0
lea ecx, [ebp - 0x6c]
call fcn.1003ca90
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.10089573
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.1003ca50
push str.Error_while_opening_hashing_data
lea ecx, [ebp - 0xb4]
call fcn.10002330
push 0x1010cc9c
lea eax, [ebp - 0xb4]
push eax
call fcn.1008e58e
lea ecx, [ebp - 0x6c]
call fcn.1003ca50
push str.Error_while_finalising_hash_generation
lea ecx, [ebp - 0xc0]
call fcn.10002330
push 0x1010cc9c
lea eax, [ebp - 0xc0]
push eax
call fcn.1008e58e
int3