Function at 0x46bbd0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x513717
mov eax, dword fs:[0]
push eax
sub esp, 0x5f0
mov eax, dword [0x56957c]
xor eax, esp
mov dword [esp + 0x5e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56957c]
xor eax, esp
push eax
lea eax, [esp + 0x604]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x614]
mov esi, ecx
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], esi
je 0x46c210
lea ecx, [esp + 0x24]
call fcn.004174b0
xor ebx, ebx
mov dword [esp + 0x60c], ebx
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x46bc65
call fcn.004f21c6
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0xc]
push str.34745C63_B2F0_4784_8B67_5E12C8701A31
push eax
push str.SoftWareMicrosoftCTFSortOrderAssemblyItem
push str._s0x_08X_s
lea edi, [esp + 0x34]
call fcn.00417ef0
add esp, 0x10
lea eax, [esp + 0x30]
cmp byte [esp + 0x140], bl
jne 0x46bc99
mov eax, dword [esp + 0x2c]
add eax, 4
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea ecx, [esp + 0x288]
mov dword [esp + method.t_reg.virtual_0], vtable.t_reg.0
call fcn.004174b0
mov eax, str.HKEY_CURRENT_USER
lea edx, [esp + 0x288]
mov dword [esp + 0x280], ebx
mov dword [esp + 0x284], VariantClear
call fcn.00417710
mov byte [esp + 0x60c], 1
cmp byte [esp + 0x140], 0
lea eax, [esp + 0x30]
jne 0x46bcfc
mov eax, dword [esp + 0x2c]
push 1
push 1
add eax, 4
push eax
push esi
lea ecx, [esp + 0x28c]
call fcn.00418930
test al, al
jne 0x46bd6a
mov ecx, esi
call fcn.00416430
push 0x55003c
push 0x549858
mov edx, eax
call fcn.00417ed0
add esp, 8
lea ecx, [esp + 0x27c]
call fcn.004188e0
cmp byte [esp + 0x140], 0
mov dword [esp + 0x24], vtable.t_str.0
jne 0x46bd63
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
cmp eax, ecx
je 0x46bd63
push eax
call fcn.004ed7b6
add esp, 4
xor al, al
jmp 0x46c212
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x46c186
mov dword [esp + 0x18], 0
nop
lea ecx, [esp + 0x3ac]
call fcn.004174b0
cmp byte [esp + 0x140], 0
lea eax, [esp + 0x30]
jne 0x46bdae
mov eax, dword [esp + 0x2c]
push ebx
add eax, 4
push eax
push str._s_08d
lea edi, [esp + 0x3b8]
call fcn.00417ef0
mov edi, vtable.t_reg.0
add esp, 0xc
lea ecx, [esp + 0x158]
mov dword [esp + 0x14c], edi
call fcn.004174b0
mov eax, str.HKEY_CURRENT_USER
lea edx, [esp + 0x158]
mov dword [esp + 0x150], 0
mov dword [esp + 0x154], VariantClear
call fcn.00417710
mov byte [esp + 0x60c], 3
cmp byte [esp + 0x4c8], 0
lea eax, [esp + 0x3b8]
jne 0x46be26
mov eax, dword [esp + 0x3b4]
push 1
push 1
add eax, 4
push eax
push esi
lea ecx, [esp + 0x15c]
call fcn.00418930
test al, al
je 0x46c23a
lea ecx, [esp + 0x4d4]
call fcn.004174b0
mov byte [esp + 0x60c], 4
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x46be77
call fcn.004f21c6
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + edx + 0x1f]
lea eax, [eax + edx + 0x10]
movzx edx, byte [eax + 0xe]
push ecx
movzx ecx, byte [eax + 0xd]
push edx
movzx edx, byte [eax + 0xc]
push ecx
movzx ecx, byte [eax + 0xb]
push edx
movzx edx, byte [eax + 0xa]
push ecx
movzx ecx, byte [eax + 9]
push edx
movzx edx, byte [eax + 8]
push ecx
movzx ecx, word [eax + 6]
push edx
movzx edx, word [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
lea edi, [esp + 0x504]
call fcn.00417ef0
add esp, 0x30
cmp byte [esp + 0x5f0], 0
lea ecx, [esp + 0x4e0]
jne 0x46bee4
mov ecx, dword [esp + 0x4dc]
add ecx, 4
mov eax, ecx
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46bef0
push 0x54ba34
sub eax, edi
push esi
lea edx, [esp + 0x154]
sar eax, 1
push edx
add eax, eax
mov edx, 1
call fcn.00418cf0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x46bf39
call fcn.004f21c6
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x18]
lea eax, [edx + ecx + 0x20]
movzx ecx, byte [eax + 0xf]
movzx edx, byte [eax + 0xe]
push ecx
movzx ecx, byte [eax + 0xd]
push edx
movzx edx, byte [eax + 0xc]
push ecx
movzx ecx, byte [eax + 0xb]
push edx
movzx edx, byte [eax + 0xa]
push ecx
movzx ecx, byte [eax + 9]
push edx
movzx edx, byte [eax + 8]
push ecx
movzx ecx, word [eax + 6]
push edx
movzx edx, word [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
lea edi, [esp + 0x504]
call fcn.00417ef0
add esp, 0x30
cmp byte [esp + 0x5f0], 0
lea ecx, [esp + 0x4e0]
jne 0x46bfa5
mov ecx, dword [esp + 0x4dc]
add ecx, 4
mov eax, ecx
lea edi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46bfb0
push str.Profile
sub eax, edi
push esi
lea edx, [esp + 0x154]
sar eax, 1
push edx
add eax, eax
mov edx, 1
call fcn.00418cf0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x46bff9
call fcn.004f21c6
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x18]
cmp dword [eax + edi], 0
jne 0x46c05e
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x46c025
call fcn.004f21c6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub ecx, eax
lea esi, [eax + edi]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x46c04a
call fcn.004f21c6
mov edi, dword [ebp + 0xc]
add edi, dword [esp + 0x18]
call fcn.00468170
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x46c07e
call fcn.004f21c6
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + edi]
add eax, edi
push str.KeyboardLayout
mov dword [esp + 0x24], edx
push esi
lea eax, [esp + 0x154]
mov edx, 4
push eax
mov eax, edx
lea ecx, [esp + 0x2c]
call fcn.00418cf0
cmp byte [esp + 0x5f0], 0
mov edi, vtable.t_str.0
mov dword [esp + 0x4d4], edi
jne 0x46c0d9
mov eax, dword [esp + 0x4dc]
lea ecx, [esp + 0x4e0]
cmp eax, ecx
je 0x46c0d9
push eax
call fcn.004ed7b6
add esp, 4
mov eax, dword [esp + 0x150]
mov dword [esp + method.t_reg.virtual_0], vtable.t_reg.0
test eax, eax
je 0x46c0f6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x274], 0
mov dword [esp + 0x150], 0
mov dword [esp + 0x158], edi
jne 0x46c12d
mov eax, dword [esp + 0x160]
lea edx, [esp + 0x164]
cmp eax, edx
je 0x46c12d
push eax
call fcn.004ed7b6
add esp, 4
mov byte [esp + 0x60c], 1
cmp byte [esp + 0x4c8], 0
mov dword [esp + 0x3ac], edi
jne 0x46c161
mov eax, dword [esp + 0x3b4]
lea ecx, [esp + 0x3b8]
cmp eax, ecx
je 0x46c161
push eax
call fcn.004ed7b6
add esp, 4
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
add dword [esp + 0x18], 0x30
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jb 0x46bd90
mov eax, dword [esp + 0x280]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x280]
mov dword [esp + method.t_reg.virtual_0], vtable.t_reg.0
test eax, eax
je 0x46c1b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x3a4], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x280], 0
mov dword [esp + 0x288], esi
jne 0x46c1ed
mov eax, dword [esp + 0x290]
lea ecx, [esp + 0x294]
cmp eax, ecx
je 0x46c1ed
push eax
call fcn.004ed7b6
add esp, 4
cmp byte [esp + 0x140], 0
mov dword [esp + 0x24], esi
jne 0x46c210
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
je 0x46c210
push eax
call fcn.004ed7b6
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x604]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5e8]
xor ecx, esp
call fcn.004ecddb
add esp, 0x5fc
ret
mov ecx, esi
call fcn.00416430
push 0x550074
push 0x549858
mov edx, eax
call fcn.00417ed0
mov eax, dword [esp + 0x158]
add esp, 8
mov dword [esp + 0x14c], edi
test eax, eax
je 0x46c26e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x274], 0
mov edi, vtable.t_str.0
mov dword [esp + 0x150], 0
mov dword [esp + 0x158], edi
jne 0x46c2aa
mov eax, dword [esp + 0x160]
lea ecx, [esp + 0x164]
cmp eax, ecx
je 0x46c2aa
push eax
call fcn.004ed7b6
add esp, 4
cmp byte [esp + 0x4c8], 0
mov dword [esp + 0x3ac], edi
jne 0x46c2d6
mov eax, dword [esp + 0x3b4]
lea edx, [esp + 0x3b8]
cmp eax, edx
je 0x46c2d6
push eax
call fcn.004ed7b6
add esp, 4
mov eax, dword [esp + 0x280]
mov dword [esp + method.t_reg.virtual_0], vtable.t_reg.0
test eax, eax
je 0x46c2f3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x3a4], 0
mov dword [esp + 0x280], 0
mov dword [esp + 0x288], edi
jne 0x46c32a
mov eax, dword [esp + 0x290]
lea ecx, [esp + 0x294]
cmp eax, ecx
je 0x46c32a
push eax
call fcn.004ed7b6
add esp, 4
cmp byte [esp + 0x140], 0
mov dword [esp + 0x24], edi
jne 0x46bd63
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
jmp 0x46bd58