Function at 0x42c670
Capabilities:
Access peb ldr_data
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x60271c
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x464]
mov dword fs:[0], eax
mov eax, dword [esp + 0x474]
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov eax, dword [eax]
mov esi, ecx
sub eax, 0x10
mov dword [esp + 0x38], esi
call fcn.0040a210
add eax, 0x10
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x46c], ebx
call fcn.00431780
lea eax, [esp + 0x28]
push eax
mov ecx, str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
call fcn.00409dd0
mov byte [esp + 0x46c], 1
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x2c], ebp
lea ecx, [esp + 0x20]
push ecx
push 0x20019
mov byte [esp + 0x474], 2
mov edx, dword [esp + 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
je 0x42c7c6
push esi
mov ecx, 0x626e46
call fcn.00426330
lea eax, [ebp - 0x10]
mov byte [esp + 0x46c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c76d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x46c], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c794
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x46c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c7bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x42c9fd
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], ebx
push 0x208
lea ecx, [esp + 0x258]
push ebx
push ecx
mov dword [esp + 0x40], 0x104
call fcn.005da970
add esp, 0xc
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x28]
push ebx
push ebx
push ebx
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x268]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x42c96a
push 0x206
lea ecx, [esp + 0x52]
push ebx
push ecx
mov word [esp + 0x58], bx
call fcn.005da970
mov ecx, dword [esp + 0x2c]
add esp, 0xc
lea edx, [esp + 0x30]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x260]
push eax
push ecx
mov dword [esp + 0x50], 0x208
call edi
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x48]
push ecx
push ebx
push str.IME_File
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x30]
push eax
call ebp
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x50]
call fcn.00409dd0
mov byte [esp + 0x46c], 3
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x42c8b9
mov ecx, esi
lea eax, [esp + 0x18]
call fcn.00403540
mov edx, dword [esp + 0x18]
lea eax, [esi + 1]
push eax
push edx
call fcn.005d45bb
add esp, 8
cmp esi, ebx
jl 0x42ca25
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x42ca25
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov word [ecx + esi*2], bx
mov edx, dword [esp + 0x18]
push edx
push eax
call fcn.005d2da6
add esp, 8
test eax, eax
je 0x42c932
add dword [esp + 0x24], 1
mov byte [esp + 0x46c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c7d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42c7d0
lea edx, [esp + 0x254]
lea edi, [esp + 0x2c]
call fcn.00403760
mov byte [esp + 0x46c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c96a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push ecx
call ebp
mov esi, dword [esp + 0x2c]
add esi, 0xfffffff0
mov eax, esi
call fcn.0040a210
mov edi, dword [esp + 0x38]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x46c], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x42c9a9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x46c], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c9d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x46c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c9fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.005d28b3
add esp, 0x45c
ret
push 0x80070057
call fcn.00403650
int3