Function at 0x5c5de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x76b77b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x86dc84]
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 0x785e10
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5c5e5b
push 0x102
push 0x785e2c
call fcn.0052630c
test eax, eax
je 0x5c5e5b
int3
push 0x785e64
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 0x5c5fa9
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 0x5c5fa4
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 0x5c61cf
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
je 0x5c610c
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 0x5c6107
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 0x5c60fa
cmp dword [ebp - 0x290], 1
jne 0x5c60fa
lea eax, [ebp - 0x2b8]
push eax
push 0x785eec
lea ecx, [ebp - 0x2b4]
push ecx
call fcn.005246dd
add esp, 0xc
mov dword [ebp - 0x2bc], eax
cmp dword [ebp - 0x2bc], 1
jne 0x5c60fa
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 0x5c61cf
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2c0], 0
je 0x5c61cf
mov word [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
push 0x5c6470
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 0x5c61cf
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
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 0x5c6219
xor eax, eax
jmp 0x5c6320
push 0x20
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00523260
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.00526988
mov dword [ebp - 4], 0
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x278]
call fcn.00529304
movzx eax, al
test eax, eax
je 0x5c6283
lea ecx, [ebp - 0x278]
call fcn.005236f2
mov dword [ebp - 0x2c4], 0
jmp 0x5c629e
mov ecx, dword [ebp - 0x2c4]
add ecx, 1
mov dword [ebp - 0x2c4], ecx
mov edx, dword [ebp - 0x2c4]
cmp edx, dword [ebp - 0x1c]
jge 0x5c62fe
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.005c6340
add esp, 0xc
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
je 0x5c62fc
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.00521271
mov eax, dword [ebp - 0x2cc]
jmp 0x5c6320
jmp 0x5c628f
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.00521271
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.005287fb
mov esp, ebp
pop ebp
ret