Function at 0x1037761
Capabilities:
Identify system language via api
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x104019c
call fcn.0103c428
sub esp, 0x158
mov eax, dword [0x10490cc]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0xd8], esi
xor ebx, ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xa8], 0x20
mov dword [ebp - 0x58], ebx
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xfc], 0x1006098
mov dword [ebp - 0xf8], 0x1006074
mov dword [ebp - 0xf4], 0x1006050
mov dword [ebp - 0xe0], 0x1006034
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
xor eax, eax
lea edi, [ebp - 0x15c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xd4], ebx
xor edi, edi
inc edi
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.01035530
mov dword [ebp - 0xc8], eax
cmp eax, ebx
jne 0x1037899
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x100591c
push dword [esi + 0x3e4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xb4], eax
cmp eax, ebx
jne 0x1037876
mov eax, dword [ebp - 0xa8]
shr eax, 1
mov word [ebp + eax*2 - 0x58], bx
push 0x1002e40
lea eax, [ebp - 0x58]
push eax
call fcn.01030c4c
test eax, eax
jne 0x10378da
mov dword [ebp - 0xa4], edi
jmp 0x10378da
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x114], eax
push 0x10425f0
lea eax, [ebp - 0x114]
jmp 0x1037fb5
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x134], eax
cmp eax, 0xffffffff
je 0x10378be
lea ecx, [ebp - 0x130]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x10378cc
mov word [ebp - 0x124], bx
mov word [ebp - 0x120], bx
push ebx
push ebx
push ebx
push edi
push 0xb07b
call fcn.01032306
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xa0], ebx
push 4
pop edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xe8], edi
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xe8]
push eax
push ebx
push 0x100590c
push dword [esi + 0x3e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xb4], eax
cmp eax, ebx
jne 0x1037941
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x144], eax
cmp word [ebp - 0xb8], ax
jne 0x1037987
or dword [ebp - 0xa0], 0xffffffff
mov dword [ebp - 0xa8], edi
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xe8]
push eax
push ebx
push 0x10058e8
push dword [esi + 0x3e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xb4], eax
cmp eax, ebx
jne 0x1037991
cmp dword [ebp - 0xa0], ebx
jne 0x1037991
mov dword [ebp - 0xb0], 1
push ebx
call fcn.010339df
push eax
lea ecx, [ebp - 0xc0]
call fcn.010326bc
mov byte [ebp - 4], 2
push 3
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0xc0]
push eax
mov ecx, esi
call fcn.01035d01
test eax, eax
jne 0x10379d3
mov dword [ebp - 0xa4], 1
cmp dword [ebp - 0xc8], ebx
jne 0x1037a45
cmp dword [ebp - 0xa4], ebx
jne 0x10379ef
cmp dword [ebp - 0xb0], ebx
je 0x1037de4
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x138], eax
cmp eax, 0xffffffff
je 0x1037a14
lea ecx, [ebp - 0x130]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1037a22
mov word [ebp - 0x124], bx
mov word [ebp - 0x120], bx
push ebx
push ebx
push ebx
push 1
push 0xb0b8
call fcn.01032306
cmp dword [ebp - 0xa4], ebx
jne 0x1037a45
cmp dword [ebp - 0xb0], ebx
je 0x1037de4
lea eax, [ebp - 0x9c]
push eax
push 0x1006dd4
push 1
push ebx
push 0x1006d64
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xac], eax
cmp eax, ebx
jge 0x1037a6f
push eax
call fcn.0103c0cf
cmp dword [ebp - 0xc8], ebx
jne 0x1037a83
cmp dword [ebp - 0xa4], ebx
je 0x1037b6f
mov dword [ebp - 0xc4], ebx
cmp dword [ebp - 0xc4], 3
jae 0x1037b6f
mov eax, dword [ebp - 0xc4]
push dword [ebp + eax*4 - 0xfc]
lea ecx, [ebp - 0xe4]
call fcn.01007727
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0xc0]
call fcn.01008088
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xbc]
push ecx
push eax
push dword [ebp - 0x9c]
mov ecx, esi
call fcn.01035fbd
mov edi, eax
mov dword [ebp - 0xac], edi
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xf0]
cmp ecx, ebx
je 0x1037aff
call fcn.01007c31
mov dword [ebp - 0xf0], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xe4]
cmp ecx, ebx
je 0x1037b18
call fcn.01007c31
mov dword [ebp - 0xe4], ebx
cmp edi, ebx
jl 0x1037b24
cmp dword [ebp - 0xbc], ebx
je 0x1037b35
push ebx
push 3
lea eax, [ebp - 0xfc]
push eax
mov ecx, esi
call fcn.01035b3d
cmp edi, ebx
jge 0x1037b3f
push edi
call fcn.0103c0cf
cmp dword [ebp - 0xbc], ebx
je 0x1037b61
mov dword [ebp - 0x104], 0xc34f
push 0x1041aec
lea eax, [ebp - 0x104]
jmp 0x1037fb5
inc dword [ebp - 0xc4]
push 4
pop edi
jmp 0x1037a89
cmp dword [ebp - 0xb0], ebx
je 0x1037d1c
mov dword [ebp - 0xa0], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov dword [ebp - 0x14c], eax
cmp word [ebp - 0xb8], ax
je 0x1037ccd
push ebx
push dword [ebp - 0xb8]
call fcn.01033a97
push eax
lea ecx, [ebp - 0xd0]
call fcn.010326bc
mov byte [ebp - 4], 5
mov dword [ebp - 0xcc], ebx
cmp dword [ebp - 0xcc], 1
jae 0x1037cb2
mov eax, dword [ebp - 0xcc]
push dword [ebp + eax*4 - 0xe0]
lea ecx, [ebp - 0xdc]
call fcn.01007727
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xd0]
call fcn.01008088
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
push ecx
push eax
push dword [ebp - 0x9c]
mov ecx, esi
call fcn.01035fbd
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xec]
cmp ecx, ebx
je 0x1037c34
call fcn.01007c31
mov dword [ebp - 0xec], ebx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xdc]
cmp ecx, ebx
je 0x1037c4d
call fcn.01007c31
mov dword [ebp - 0xdc], ebx
cmp dword [ebp - 0xac], ebx
jl 0x1037c5d
cmp dword [ebp - 0xbc], ebx
je 0x1037ca7
mov dword [ebp - 0x98], ebx
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0xb8]
push eax
push 0x1004fdc
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push 1
lea eax, [ebp - 0xe0]
push eax
mov ecx, esi
call fcn.01035b3d
push 4
pop edi
inc dword [ebp - 0xcc]
jmp 0x1037bc0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xd0]
cmp ecx, ebx
je 0x1037cd4
call fcn.01007c31
mov dword [ebp - 0xd0], ebx
jmp 0x1037cd4
or dword [ebp - 0xa0], 0xffffffff
push edi
lea eax, [ebp - 0xa0]
push eax
push edi
push ebx
push 0x10058e8
push dword [esi + 0x3e8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xb4], eax
cmp eax, ebx
je 0x1037d1c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10c], eax
push 0x10425f0
lea eax, [ebp - 0x10c]
jmp 0x1037fb5
mov eax, dword [ebp - 0x9c]
cmp eax, ebx
je 0x1037d32
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x9c], ebx
push 3
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0xfc]
push eax
mov ecx, esi
call fcn.0103540c
push 0x1002e40
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push 0x1002e40
push 1
push ebx
push 0x100591c
push dword [esi + 0x3e4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xb4], eax
cmp eax, ebx
je 0x1037d9c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x100], eax
push 0x10425f0
lea eax, [ebp - 0x100]
jmp 0x1037fb5
push edi
lea eax, [ebp - 0xb8]
push eax
push edi
push ebx
push 0x100590c
push dword [esi + 0x3e8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xb4], eax
cmp eax, ebx
je 0x1037de4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x108], eax
push 0x10425f0
lea eax, [ebp - 0x108]
jmp 0x1037fb5
mov eax, dword [esi + 0x3e8]
cmp eax, ebx
je 0x1037dfb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x3e8], ebx
add esi, 0x3e4
mov eax, dword [esi]
cmp eax, ebx
je 0x1037e10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xc0]
cmp ecx, ebx
je 0x1037e29
call fcn.01007c31
mov dword [ebp - 0xc0], ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0xd4], ebx
je 0x1037f11
mov ecx, dword [ebp - 0xd4]
call fcn.01007c31
mov dword [ebp - 0xd4], ebx
jmp 0x1037f11
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xc8], ebx
jne 0x1037f2d
cmp dword [ebp - 0xa4], ebx
jne 0x1037f2d
cmp dword [ebp - 0xb0], ebx
je 0x1037f39
lea eax, [ebp - 0x130]
push eax
call fcn.0103143d
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0103bfcf
pop edi
pop esi
pop ebx
leave
ret
push eax
call sub.msvcrt.dll__CxxThrowException
int3