Function at 0x405799
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4230f5
call fcn.00412f2c
sub esp, 0x6c
mov eax, dword [0x42eb5c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
xor edi, edi
push str.kernel32.dll
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x28], eax
call ebx
cmp eax, edi
je 0x4058f1
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov dword [ebp - 0x24], 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 - 0x30], ecx
call esi
push dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], 2
call ebx
test eax, eax
je 0x405865
call eax
movzx eax, ax
mov dword [ebp - 0x24], 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 - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], 4
xor edi, edi
mov ebx, dword [ebp - 0x2c]
push 0x20
pop esi
push esi
lea eax, [ebp - 0x78]
push edi
mov dword [ebp + ebx*4 - 0x50], 0x800
push eax
inc ebx
call fcn.00412b60
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], 0x4264ac
mov dword [ebp - 0x64], 0x3e8
mov dword [ebp - 0x5c], 0x400000
mov dword [ebp - 0x74], 0x88
call fcn.00404f29
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], edi
call fcn.00404fd9
test al, al
je 0x4058c8
lea ecx, [ebp - 0x58]
call fcn.0040500f
xor esi, esi
cmp ebx, edi
jle 0x405a18
push dword [ebp + esi*4 - 0x50]
mov ecx, dword [ebp - 0x3c]
call fcn.00405550
cmp eax, edi
pop ecx
jne 0x405a16
inc esi
cmp esi, ebx
jl 0x4058d2
jmp 0x405a18
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4059ae
lea eax, [ebp - 0x28]
push eax
push 0x20019
push edi
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [ebp - 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x405867
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push dword [ebp - 0x28]
mov dword [ebp - 0x38], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x4059a0
cmp dword [ebp - 0x34], 1
jne 0x4059a0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push 0x426480
push eax
call fcn.0041310c
add esp, 0xc
cmp eax, 1
jne 0x4059a0
movzx eax, word [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x24], eax
movzx eax, word [ebp - 0x30]
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 - 0x50], eax
call esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405867
push str.ntdll.dll
call esi
cmp eax, edi
je 0x405867
lea ecx, [ebp - 0x24]
push ecx
push 0x404f13
push 1
push 0x10
push eax
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x24], di
je 0x405867
movzx eax, word [ebp - 0x24]
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 - 0x50], eax
call esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], 2
jmp 0x405867
mov edi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0040562f
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00411aba
leave
ret 4