Function at 0x45a210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ac7c
mov eax, dword fs:[0]
push eax
sub esp, 0x950
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x940], ecx
mov dword [ebp - 0x4c], 0x400
lea ecx, [ebp - 0x2c]
call fcn.00401f60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00401f60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x498]
call fcn.00401f60
mov byte [ebp - 4], 2
push str.Keyboard_LayoutPreload
lea ecx, [ebp - 0x48]
call fcn.00401f90
push 0x47c398
lea ecx, [ebp - 0x498]
call fcn.00401f90
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.00450b10
add esp, 8
mov byte [ebp - 4], 3
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x8f8]
push eax
call fcn.004509f0
add esp, 8
mov dword [ebp - 0x944], eax
mov ecx, dword [ebp - 0x944]
mov dword [ebp - 0x948], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x948]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040b760
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8f8]
call fcn.0040d000
mov dword [ebp - 0x58], 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401fb0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45a56b
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x47c]
push edx
lea eax, [ebp - 0x58]
push eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401fb0
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45a56b
lea ecx, [ebp - 0x4b4]
call fcn.00401f60
mov byte [ebp - 4], 5
lea edx, [ebp - 0x47c]
push edx
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0x914]
push ecx
call fcn.004130d0
add esp, 0xc
mov dword [ebp - 0x94c], eax
mov edx, dword [ebp - 0x94c]
mov dword [ebp - 0x950], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x950]
push eax
lea ecx, [ebp - 0x4b4]
call fcn.0040b760
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x914]
call fcn.0040d000
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x4b4]
call fcn.00401fb0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45a4d4
mov dword [ebp - 0x4d4], 0x400
lea edx, [ebp - 0x4d4]
push edx
lea eax, [ebp - 0x8d4]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push str.Layout_text
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45a4d4
mov eax, dword [ebp - 0x940]
mov ecx, dword [eax]
mov dword [ebp - 0x8dc], ecx
push 0x3c
call fcn.004316e7
add esp, 4
mov dword [ebp - 0x91c], eax
cmp dword [ebp - 0x91c], 0
je 0x45a439
mov ecx, dword [ebp - 0x91c]
call fcn.0041c720
mov dword [ebp - 0x954], eax
jmp 0x45a443
mov dword [ebp - 0x954], 0
mov edx, dword [ebp - 0x954]
mov dword [ebp - 0x918], edx
mov eax, dword [ebp - 0x918]
mov dword [ebp - 0x8d8], eax
lea ecx, [ebp - 0x47c]
push ecx
mov ecx, dword [ebp - 0x8d8]
call fcn.00401f90
lea edx, [ebp - 0x8d4]
push edx
mov ecx, dword [ebp - 0x8d8]
add ecx, 0x1c
call fcn.00401f90
mov eax, dword [ebp - 0x8d8]
mov dword [eax + 0x38], 0
cmp dword [ebp - 0x8dc], 0
je 0x45a4c6
mov ecx, dword [ebp - 0x8dc]
cmp dword [ecx + 0x38], 0
je 0x45a4b5
mov edx, dword [ebp - 0x8dc]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x8dc], eax
jmp 0x45a498
mov ecx, dword [ebp - 0x8dc]
mov edx, dword [ebp - 0x8d8]
mov dword [ecx + 0x38], edx
jmp 0x45a4d4
mov eax, dword [ebp - 0x940]
mov ecx, dword [ebp - 0x8d8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0x4d0]
push edx
call fcn.00450b10
add esp, 8
mov byte [ebp - 4], 7
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x938]
push ecx
call fcn.004509f0
add esp, 8
mov dword [ebp - 0x958], eax
mov edx, dword [ebp - 0x958]
mov dword [ebp - 0x95c], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x95c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b760
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x938]
call fcn.0040d000
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4d0]
call fcn.0040dc10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4b4]
call fcn.0040d000
jmp 0x45a318
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x940]
xor eax, eax
cmp dword [edx], 0
setne al
mov dword [ebp - 0x93c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.0040dc10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x498]
call fcn.0040d000
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040d000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040d000
mov eax, dword [ebp - 0x93c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret