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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x41c690]
xor eax, esp
mov dword [esp + 0x58], eax
cmp word [esp + 0x68], 0
push ebx
push esi
mov esi, dword [esp + 0x6c]
lea ebx, [esi + 8]
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], 0
mov dword [ebx], 0
jne 0x401e77
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0xff
and ax, cx
movzx edx, ax
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x6c]
sub eax, 0
je 0x401eac
sub eax, 1
jne 0x401f3e
mov eax, dword [esi + 4]
test eax, eax
je 0x401e99
push eax
call fcn.0040920a
add esp, 4
mov dword [esi + 4], 0
mov eax, str.Explain
mov edi, str.Last_Help
jmp 0x401ecb
mov eax, dword [esi]
test eax, eax
je 0x401ebb
push eax
call fcn.0040920a
add esp, 4
mov dword [esi], 0
mov eax, str.Counter
mov edi, str.Last_Counter
movzx ecx, word [esp + 0x74]
push ecx
push eax
push str._s__03x
lea edx, [esp + 0x30]
push 0x1f
push edx
call fcn.00409384
add esp, 0x14
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.softwaremicrosoftwindows_ntcurrentversionperflib
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401f3e
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push reloc.WSOCK32.dll_bind
call esi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0
push 0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x38], 4
call edi
test eax, eax
je 0x401f74
mov eax, dword [esp + 0x18]
push eax
call esi
mov esi, dword [esp + 0xc]
pop edi
test esi, esi
pop esi
pop ebx
jne 0x401f65
cmp word [esp + 0x68], 9
je 0x401f65
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x60]
push 9
push ecx
push edx
call fcn.00401e30
add esp, 0xc
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00408f97
add esp, 0x5c
ret
mov ecx, dword [esp + 0x18]
push ecx
call esi
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push SysStringLen
mov dword [esp + 0x2c], 0
call edi
test eax, eax
jne 0x401f3e
mov eax, dword [esp + 0x14]
inc eax
lea esi, [eax + eax]
mov dword [esp + 0x14], eax
test esi, esi
je 0x401f3e
push esi
call fcn.0040911d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x401f3e
push esi
push 0
push eax
call fcn.00409190
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x401f3e
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push 0
lea edx, [esp + 0x34]
push edx
push SysStringLen
call edi
test eax, eax
jne 0x402226
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x40203b
mov esi, dword [ebx]
lea esi, [esi*4 + 0x14]
test esi, esi
jne 0x402018
mov eax, dword [esp + 0x10]
xor edi, edi
mov dword [eax], edi
jmp 0x402073
push esi
call fcn.0040911d
mov edi, eax
add esp, 4
test edi, edi
je 0x402033
push esi
push 0
push edi
call fcn.00409190
add esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [eax], edi
jmp 0x402073
cmp eax, 1
jne 0x402073
mov esi, dword [ebx]
lea esi, [esi*4 + 0x14]
test esi, esi
jne 0x402051
xor edi, edi
jmp 0x40206c
push esi
call fcn.0040911d
mov edi, eax
add esp, 4
test edi, edi
je 0x40206c
push esi
push 0
push edi
call fcn.00409190
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], edi
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x40222a
push esi
call fcn.00401060
mov ecx, dword [esp + 0x14]
add ecx, 8
add esp, 4
cmp eax, dword [ecx]
ja 0x40222a
mov ecx, dword [esp + 0x6c]
lea edi, [esi + edi*2 + 2]
mov dword [esp + 0xc], edi
test ecx, ecx
jne 0x40214a
mov edx, dword [esp + 0x10]
mov esi, dword [edx]
lea ebx, [eax*4]
mov eax, dword [esi + ebx]
add esi, ebx
test eax, eax
je 0x4020d3
push eax
call fcn.0040920a
add esp, 4
mov eax, edi
mov dword [esi], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4020e0
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 4]
test esi, esi
jne 0x4020fb
xor edi, edi
jmp 0x402116
push esi
call fcn.0040911d
mov edi, eax
add esp, 4
test edi, edi
je 0x402116
push esi
push 0
push edi
call fcn.00409190
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [ebx + ecx], edi
mov edx, dword [eax]
cmp dword [ebx + edx], 0
lea eax, [ebx + edx]
je 0x4021e3
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x402134
jmp 0x4021e3
cmp ecx, 1
jne 0x4021e7
lea ebx, [eax*4]
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 4]
mov eax, dword [esi + ebx]
add esi, ebx
test eax, eax
je 0x402173
push eax
call fcn.0040920a
add esp, 4
mov eax, edi
mov dword [esi], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402180
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 4]
test esi, esi
jne 0x40219b
xor edi, edi
jmp 0x4021b6
push esi
call fcn.0040911d
mov edi, eax
add esp, 4
test edi, edi
je 0x4021b6
push esi
push 0
push edi
call fcn.00409190
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], edi
mov edx, dword [eax + 4]
cmp dword [ebx + edx], 0
lea eax, [ebx + edx]
je 0x4021e3
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4021d2
mov edi, dword [esp + 0xc]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4021f0
sub eax, edx
sar eax, 1
lea esi, [edi + eax*2 + 2]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
jne 0x402088
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040920a
add esp, 4
jmp 0x401f42
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040920a
add esp, 4
jmp 0x401f42