Function at 0x4048f5
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x43217c
call fcn.004201b0
sub esp, 0x7c
mov eax, dword [0x4416f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
xor edi, edi
push 0x43467c
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x3c], edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x38], eax
call ebx
cmp eax, edi
je 0x404a57
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov dword [ebp - 0x34], eax
movzx eax, ax
mov ecx, eax
shr eax, 0xa
mov edi, 0x3ff
shl eax, 0xa
and ecx, edi
movzx ecx, cx
movzx eax, ax
or eax, ecx
push eax
mov dword [ebp - 0x40], ecx
call esi
push dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x3c], 2
call ebx
test eax, eax
je 0x4049c1
call eax
movzx eax, ax
mov dword [ebp - 0x34], eax
movzx eax, ax
mov ecx, eax
shr eax, 0xa
shl eax, 0xa
and ecx, edi
movzx edi, cx
movzx eax, ax
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x50], eax
call esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], 4
xor edi, edi
mov ebx, dword [ebp - 0x3c]
push 0x20
pop esi
push esi
lea eax, [ebp - 0x88]
push edi
mov dword [ebp + ebx*4 - 0x58], 0x800
push eax
inc ebx
call fcn.00420660
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x80], 0x43463c
mov dword [ebp - 0x74], 0x3e8
mov dword [ebp - 0x6c], 0x400000
mov dword [ebp - 0x84], 0x88
call fcn.004040ac
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], edi
call fcn.0040415c
test al, al
je 0x404a30
lea ecx, [ebp - 0x68]
call fcn.00404192
xor esi, esi
cmp ebx, edi
jle 0x404a50
push dword [ebp + esi*4 - 0x58]
mov ecx, dword [ebp - 0x5c]
call fcn.004046b2
cmp eax, edi
pop ecx
jne 0x404b7c
inc esi
cmp esi, ebx
jl 0x404a36
xor esi, esi
jmp 0x404b7e
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x404b14
lea eax, [ebp - 0x38]
push eax
push 0x20019
push edi
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4049c3
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x44]
push eax
push edi
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x60], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x404b06
cmp dword [ebp - 0x44], 1
jne 0x404b06
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push 0x4345e4
push eax
call fcn.0042063d
add esp, 0xc
cmp eax, 1
jne 0x404b06
movzx eax, word [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x34], eax
movzx eax, word [ebp - 0x40]
mov ecx, eax
shr eax, 0xa
shl eax, 0xa
and ecx, 0x3ff
movzx ebx, cx
movzx eax, ax
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x58], eax
call esi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x3c], 2
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4049c3
push str.ntdll.dll
call esi
cmp eax, edi
je 0x4049c3
lea ecx, [ebp - 0x34]
push ecx
push 0x404096
push 1
push 0x10
push eax
mov dword [ebp - 0x34], edi
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x34], di
je 0x4049c3
movzx eax, word [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
shr eax, 0xa
shl eax, 0xa
and ecx, 0x3ff
movzx ebx, cx
movzx eax, ax
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x58], eax
call esi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x3c], 2
jmp 0x4049c3
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0040478b
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f6fd
leave
ret 4