Function at 0x40813f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov al, byte [0x451740]
push ebx
push esi
push edi
mov byte [ebp - 0x34], al
xor eax, eax
lea edi, [ebp - 0x33]
mov esi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
mov dword [ebp - 0x18], esi
cmp word [esi + 0x11b8], bx
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
je 0x408185
push dword [esi + 0x11b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov word [esi + 0x11b8], bx
lea eax, [ebp - 0x10]
mov edi, str.SoftwareWordcraft_International_LtdUnimessageClass2
push eax
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4081a7
mov ax, 1
jmp 0x408386
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.SoftwareRender
mov dword [ebp - 4], 4
push dword [ebp - 0x10]
call esi
push dword [ebp + 8]
lea eax, [ebp - 0xfc]
push edi
push str._s_s
push eax
call fcn.0042b964
mov eax, dword [ebp - 0x18]
add esp, 0x10
lea edi, [eax + 0x11b4]
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0xfc]
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x408354
cmp dword [ebp - 0x20], 1
jne 0x408288
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.DeviceName
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x34]
push eax
push str.SoftwareWordcraft_International_LtdUnimessageClass2
lea eax, [ebp - 0xfc]
push str._s_s
push eax
call fcn.0042b964
add esp, 0x10
cmp byte [ebp - 0x34], bl
lea eax, [ebp - 0xfc]
jne 0x408270
mov eax, str.SoftwareWordcraft_International_LtdUnimessageClass2
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x408354
mov eax, dword [ebp - 0x18]
mov word [eax + 0x11b8], 1
mov eax, 0x440a28
mov dword [ebp + 8], eax
jmp 0x4082a1
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 4
push ecx
lea ecx, [ebp - 0xc]
push dword [eax + 4]
push ecx
push ebx
push dword [eax]
push dword [edi]
call esi
add dword [ebp + 8], 8
cmp dword [ebp + 8], 0x440a58
jb 0x40829e
mov dword [ebp - 0x14], ebx
mov dword [ebp + 8], 0x4409f8
push dword [ebp - 0x14]
lea eax, [ebp - 0xfc]
push str.ColumnWidth_u
push eax
call fcn.0042b964
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0xfc]
push ebx
push eax
push dword [edi]
call esi
add dword [ebp + 8], 4
inc dword [ebp - 0x14]
cmp dword [ebp + 8], 0x440a08
jb 0x4082d1
cmp dword [ebp - 8], ebx
jne 0x408359
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.SoftwareRender
push dword [edi]
call esi
cmp dword [ebp - 8], ebx
je 0x408375
lea eax, [ebp - 8]
push 4
push eax
push 4
push ebx
push str.SoftwareRender
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 8], ebx
je 0x408375
mov eax, dword [ebp - 0x18]
push str.Crashed_in_earlier_OpenGL_session___force_to_use_software_rendering
add eax, 0x5c
mov word [0x452f06], 1
push eax
call fcn.0041e63d
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x1c], ebx
setne al
pop edi
pop esi
pop ebx
leave
ret 4