Function at 0x40485c
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x244
mov eax, 0x5a948f
call fcn.00553ddb
lea eax, [ebp - 0x220]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push 0x5bf568
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0x234], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40489b
xor eax, eax
jmp 0x404ae2
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x228]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x220]
mov dword [ebp - 0x228], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4048d0
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404894
mov edi, ebx
mov esi, ebx
mov dword [ebp - 0x238], 0x208
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], ebx
cmp dword [ebp - 0x228], 0
mov dword [ebp - 4], ebx
jbe 0x404ac1
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp - 0x220]
mov dword [ebp - 0x238], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x21c]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404a95
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x22c]
push eax
push ebx
push str.Target_IME
push dword [ebp - 0x21c]
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x224], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4049e8
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x24c], eax
jne 0x4049e8
push dword [ebp - 0x21c]
inc esi
call edi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402773
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.00405254
mov ecx, dword [ebp - 0x230]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.004033f4
jmp 0x404a96
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x22c]
push eax
push ebx
push str.Key_Modifiers
push dword [ebp - 0x21c]
mov dword [ebp - 0x224], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404a25
push dword [ebp - 0x21c]
jmp 0x404a60
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x22c]
push eax
push ebx
push str.Virtual_Key
push dword [ebp - 0x21c]
mov dword [ebp - 0x224], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x21c]
test eax, eax
je 0x404a65
inc esi
call edi
jmp 0x404a96
call edi
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x248], eax
jne 0x404a95
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x250]
jne 0x404a95
push 0x10
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00555255
add esp, 0xc
mov dword [ebp - 0x234], eax
inc esi
cmp esi, dword [ebp - 0x228]
jb 0x404906
mov edi, dword [ebp - 0x240]
mov ebx, dword [ebp - 0x244]
jmp 0x404ac1
push dword [ebx]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add ebx, 4
cmp ebx, edi
jne 0x404ab0
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x244]
call fcn.0040522e
mov eax, dword [ebp - 0x234]
call fcn.00553d8a
ret 0xc