Function at 0x53d080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69b02b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x7933bc]
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 0x6d1488
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x53d0fb
push 0x11d
push 0x6d14a4
call fcn.004e0811
test eax, eax
je 0x53d0fb
int3
push 0x6d14dc
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 0x53d249
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 0x53d244
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 0x53d46f
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
je 0x53d3ac
mov dword [ebp - 0x288], 0
lea ecx, [ebp - 0x288]
push ecx
push 0x20019
push 0
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
jne 0x53d3a7
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 0x53d39a
cmp dword [ebp - 0x290], 1
jne 0x53d39a
lea eax, [ebp - 0x2b8]
push eax
push 0x6d1564
lea ecx, [ebp - 0x2b4]
push ecx
call fcn.004dec8c
add esp, 0xc
mov dword [ebp - 0x2bc], eax
cmp dword [ebp - 0x2bc], 1
jne 0x53d39a
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 0x53d46f
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2c0], 0
je 0x53d46f
mov word [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
push 0x53d7b0
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 0x53d46f
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 [0x7975ac], 0
jne 0x53d48f
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 0x53d4c2
xor eax, eax
jmp 0x53d5c9
push 0x20
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.004dd8b9
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.004e0e38
mov dword [ebp - 4], 0
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x278]
call fcn.004e36ab
movzx eax, al
test eax, eax
je 0x53d52c
lea ecx, [ebp - 0x278]
call fcn.004ddd41
mov dword [ebp - 0x2c4], 0
jmp 0x53d547
mov ecx, dword [ebp - 0x2c4]
add ecx, 1
mov dword [ebp - 0x2c4], ecx
mov edx, dword [ebp - 0x2c4]
cmp edx, dword [ebp - 0x1c]
jge 0x53d5a7
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.0053d5f0
add esp, 0xc
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
je 0x53d5a5
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.004db258
mov eax, dword [ebp - 0x2cc]
jmp 0x53d5c9
jmp 0x53d538
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.004db258
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.004e2bca
mov esp, ebp
pop ebp
ret