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

Disassembly:
push 0xffffffffffffffff
push 0x52c34c
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x56b1dc]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
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.004020b0
add eax, 0x10
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x46c], ebx
call fcn.0040d1b0
lea eax, [esp + 0x28]
push eax
mov ecx, str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
call fcn.00402550
mov byte [esp + 0x46c], 1
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
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 [section..rdata]
push ebx
push edx
push 0x80000002
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
je 0x4227e6
push esi
mov ecx, 0x54235a
call fcn.0041efb0
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 0x42278d
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 0x4227b4
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 0x4227df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x422a1d
mov ebp, dword [0x531004]
mov dword [esp + 0x24], ebx
push 0x208
lea ecx, [esp + 0x258]
push ebx
push ecx
mov dword [esp + 0x40], 0x104
call fcn.00508d80
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 [0x531008]
cmp eax, ebx
jne 0x42298a
push 0x206
lea ecx, [esp + 0x52]
push ebx
push ecx
mov word [esp + 0x58], bx
call fcn.00508d80
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 [0x531040]
mov eax, dword [esp + 0x30]
push eax
call ebp
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x50]
call fcn.00402550
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 0x4228d9
mov ecx, esi
lea eax, [esp + 0x18]
call fcn.00402120
mov edx, dword [esp + 0x18]
lea eax, [esi + 1]
push eax
push edx
call fcn.00500cb5
add esp, 8
cmp esi, ebx
jl 0x422a47
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x422a47
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.005006a9
add esp, 8
test eax, eax
je 0x422952
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 0x4227f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4227f0
lea edx, [esp + 0x254]
lea edi, [esp + 0x2c]
call fcn.00402760
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 0x42298a
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.004020b0
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 0x4229c9
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 0x4229f0
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 0x422a1b
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.004ff939
add esp, 0x45c
ret 4
push 0x80070057
call fcn.004026a0
int3