Function at 0x40337c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x43fe46
call fcn.004151bc
sub esp, 0xe0
mov al, byte [ebp + 0xb]
push ebx
push esi
mov dword [ebp - 0x34], ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x58], al
call fcn.00404e00
mov esi, str.English
push esi
call fcn.00415410
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00404e9a
mov al, byte [ebp + 0xb]
push 1
pop edi
lea ecx, [ebp - 0x68]
push ebx
mov dword [ebp - 4], edi
mov byte [ebp - 0x68], al
call fcn.00404e00
mov esi, 0x45331c
push esi
call fcn.00415410
pop ecx
push eax
push esi
lea ecx, [ebp - 0x68]
call fcn.00404e9a
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
mov byte [ebp - 0x48], al
call fcn.00404e00
mov esi, str.Latin
push esi
call fcn.00415410
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00404e9a
mov byte [ebp - 4], 3
call fcn.00401158
mov dword [ebp - 0x2c], eax
mov esi, str.0409
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004155a0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004012ca
test al, al
je 0x4035cc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], 0xa
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40351a
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push 0x467e68
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403511
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.00404e00
lea eax, [ebp - 0x74]
push eax
call fcn.00415410
pop ecx
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404e9a
mov eax, dword [ebp - 0x20]
push 4
add eax, 0xfffffffc
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 4
call fcn.004047fb
push dword [0x444460]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
push ebx
push eax
call fcn.00404afc
push edi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 4
call fcn.00404e00
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x4034f8
mov eax, 0x444464
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004155a0
pop ecx
mov byte [ebp - 4], 3
pop ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00404e00
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xb8]
push str._04s
push eax
call dword [0x467d20]
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.00415510
add esp, 0x14
test eax, eax
jne 0x40360e
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push str.SystemCurrentControlSetControlNLSLocale
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40360e
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push 0x467e68
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4035c1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xec]
push str._04s
push eax
call dword [0x467d20]
mov esi, str.041E
lea eax, [ebp - 0xec]
push esi
push eax
call fcn.00415490
add esp, 0x14
test eax, eax
je 0x4035c1
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004155a0
pop ecx
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40360e
mov ecx, dword [ebp - 0x2c]
call fcn.004012f9
test al, al
je 0x40360e
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GetUserDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x34]
cmp eax, ebx
mov dword [ecx + 0x70], eax
je 0x40360e
call eax
push eax
lea eax, [ebp - 0x14]
push str._04x
push eax
call dword [0x467d20]
add esp, 0xc
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.00404e00
lea eax, [ebp - 0x14]
push eax
call fcn.00415410
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404e9a
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 6
call fcn.004040cd
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00404e00
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.00404e00
lea eax, [ebp - 0x14]
push eax
call fcn.00415410
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404e9a
lea eax, [ebp - 0x48]
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 7
call fcn.00404927
mov dword [ebp - 0x38], edi
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00404e00
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00404e00
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00404e00
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00404e00
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4