Function at 0x427060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51856b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x5c5c30]
xor eax, ebp
mov dword [ebp - 0x48], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov word [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x1c], 0
push 0x524098
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4270db
push 0x11d
push 0x5240b4
call fcn.0045b590
test eax, eax
je 0x4270db
int3
push 0x5240ec
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x280], eax
cmp dword [ebp - 0x280], 0
je 0x427229
call dword [ebp - 0x280]
mov word [ebp - 0x24], ax
movzx edx, word [ebp - 0x24]
and edx, 0x3ff
mov dword [ebp - 0x14], edx
movzx eax, word [ebp - 0x24]
sar eax, 0xa
mov dword [ebp - 0x284], eax
movzx ecx, word [ebp - 0x284]
shl ecx, 0xa
movzx edx, word [ebp - 0x14]
or ecx, edx
movzx eax, cx
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
push ecx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov edx, dword [ebp - 0x1c]
mov dword [ebp + edx*4 - 0x270], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
movzx ecx, word [ebp - 0x14]
mov dword [ebp - 0x27c], ecx
mov edx, dword [ebp - 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x270], eax
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
push str.GetSystemDefaultUILanguage
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x427224
call dword [ebp - 0x10]
mov word [ebp - 0x24], ax
movzx ecx, word [ebp - 0x24]
and ecx, 0x3ff
mov dword [ebp - 0x14], ecx
movzx edx, word [ebp - 0x24]
sar edx, 0xa
mov dword [ebp - 0x284], edx
movzx eax, word [ebp - 0x284]
shl eax, 0xa
movzx ecx, word [ebp - 0x14]
or eax, ecx
movzx edx, ax
mov dword [ebp - 0x27c], edx
mov eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x270], eax
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
push ecx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov edx, dword [ebp - 0x1c]
mov dword [ebp + edx*4 - 0x270], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x42744f
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
je 0x42738c
mov dword [ebp - 0x288], 0
lea ecx, [ebp - 0x288]
push ecx
push 0x20019
push 0
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
jne 0x427387
mov dword [ebp - 0x294], 0x20
lea edx, [ebp - 0x294]
push edx
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x290]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x288]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
jne 0x42737a
cmp dword [ebp - 0x290], 1
jne 0x42737a
lea eax, [ebp - 0x2b8]
push eax
push 0x524174
lea ecx, [ebp - 0x2b4]
push ecx
call fcn.004dc030
add esp, 0xc
mov dword [ebp - 0x2bc], eax
cmp dword [ebp - 0x2bc], 1
jne 0x42737a
mov dx, word [ebp - 0x2b8]
mov word [ebp - 0x24], dx
movzx eax, word [ebp - 0x24]
and eax, 0x3ff
mov dword [ebp - 0x14], eax
movzx ecx, word [ebp - 0x24]
sar ecx, 0xa
mov dword [ebp - 0x284], ecx
movzx edx, word [ebp - 0x284]
shl edx, 0xa
movzx eax, word [ebp - 0x14]
or edx, eax
movzx ecx, dx
mov dword [ebp - 0x27c], ecx
mov edx, dword [ebp - 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x270], eax
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
push ecx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov edx, dword [ebp - 0x1c]
mov dword [ebp + edx*4 - 0x270], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x288]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42744f
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2c0], 0
je 0x42744f
mov word [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
push 0x427790
push 1
push 0x10
mov eax, dword [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
movzx ecx, word [ebp - 0x24]
test ecx, ecx
je 0x42744f
movzx edx, word [ebp - 0x24]
and edx, 0x3ff
mov dword [ebp - 0x14], edx
movzx eax, word [ebp - 0x24]
sar eax, 0xa
mov dword [ebp - 0x284], eax
movzx ecx, word [ebp - 0x284]
shl ecx, 0xa
movzx edx, word [ebp - 0x14]
or ecx, edx
movzx eax, cx
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
push ecx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov edx, dword [ebp - 0x1c]
mov dword [ebp + edx*4 - 0x270], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
movzx ecx, word [ebp - 0x14]
mov dword [ebp - 0x27c], ecx
mov edx, dword [ebp - 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x270], eax
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [0x5c7808], 0
jne 0x42746f
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x270], 0x800
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x52], 0
mov word [ebp - 0x54], 0
push 0x105
lea edx, [ebp - 0x25c]
push edx
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4274a2
xor eax, eax
jmp 0x4275a9
push 0x20
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.004db5b0
add esp, 0xc
mov dword [ebp - 0x44], 0x20
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], 0x3e8
mov dword [ebp - 0x28], 0x400000
mov dword [ebp - 0x40], 0x88
push 0xffffffffffffffff
lea ecx, [ebp - 0x278]
call fcn.004293c0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x278]
call fcn.00429570
movzx eax, al
test eax, eax
je 0x42750c
lea ecx, [ebp - 0x278]
call fcn.00429640
mov dword [ebp - 0x2c4], 0
jmp 0x427527
mov ecx, dword [ebp - 0x2c4]
add ecx, 1
mov dword [ebp - 0x2c4], ecx
mov edx, dword [ebp - 0x2c4]
cmp edx, dword [ebp - 0x1c]
jge 0x427587
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [ebp + eax*4 - 0x270]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004275d0
add esp, 0xc
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
je 0x427585
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.00429550
mov eax, dword [ebp - 0x2cc]
jmp 0x4275a9
jmp 0x427518
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.00429550
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.004d1610
mov esp, ebp
pop ebp
ret