Function at 0x4a37c0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x52ac90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov al, byte [esp + 0x6c]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x48], al
call fcn.0040d630
mov cl, byte [esp + 0x7c]
push ebx
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
mov dword [esp + 0x78], ebx
call fcn.0040d630
mov dl, byte [esp + 0x7c]
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 1
mov byte [esp + 0x38], dl
call fcn.0040d630
mov al, byte [esp + 0x7c]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 2
mov byte [esp + 0x18], al
call fcn.0040d630
mov esi, dword [esp + 0x7c]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call ebp
add esp, 4
lea ecx, [esp + 0x14]
push eax
push esi
call fcn.0040fea0
push esi
mov byte [esp + 0x78], 3
call ebp
add esp, 4
cmp word [esi + eax*2 - 2], 0x5c
je 0x4a38cf
lea edi, [eax - 1]
cmp edi, ebx
jl 0x4a38cf
lea eax, [esi + edi*2]
cmp word [eax], 0x5c
je 0x4a3880
dec edi
sub eax, 2
cmp edi, ebx
jge 0x4a3870
jmp 0x4a38cf
lea esi, [esi + edi*2 + 2]
push esi
call ebp
add esp, 4
lea ecx, [esp + 0x44]
push eax
push esi
call fcn.0040fea0
push edi
lea ecx, [esp + 0x58]
push ebx
push ecx
lea ecx, [esp + 0x20]
call fcn.004a60f0
mov edx, dword [0x535110]
lea ecx, [esp + 0x14]
push edx
push ebx
push eax
mov byte [esp + 0x80], 4
call fcn.0040fca0
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x78], 3
call fcn.0040d630
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x4a38e2
mov ecx, 0x535104
mov dword [esp + 0x7c], ecx
jmp 0x4a38e8
mov dword [esp + 0x7c], ebx
mov ecx, ebx
mov ax, word [ecx]
test ax, ax
je 0x4a3906
cmp ax, 0x5c
je 0x4a391b
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4a38f0
mov dword [esp + 0x7c], ecx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 2
call fcn.0040d630
jmp 0x4a3a54
mov dword [esp + 0x7c], ecx
xor edi, edi
mov esi, 0x53a760
jmp 0x4a392c
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x4a3935
mov ebx, 0x535104
mov eax, dword [esi]
push eax
call ebp
mov ecx, dword [esi]
push eax
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0x10
test eax, eax
je 0x4a395a
add esi, 0xc
inc edi
cmp esi, 0x53a808
jb 0x4a3928
jmp 0x4a3906
mov edx, dword [esp + 0x7c]
lea esi, [edx + 2]
push esi
call ebp
add esp, 4
lea ecx, [esp + 0x24]
push eax
push esi
call fcn.0040fea0
lea esi, [edi + edi*2]
shl esi, 2
mov edi, dword [esi + 0x53a764]
push edi
call ebp
add esp, 4
lea ecx, [esp + 0x34]
push eax
push edi
call fcn.0040fea0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x54]
push eax
push 0x5607a8
push ecx
call fcn.00413d10
add esp, 0xc
mov edx, dword [0x535110]
lea ecx, [esp + 0x34]
push edx
push 0
push eax
mov byte [esp + 0x80], 5
call fcn.004a7080
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x78], 3
call fcn.0040d630
mov esi, dword [esi + 0x53a768]
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 2
call fcn.0040d630
test esi, esi
je 0x4a3a54
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor edi, edi
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4a3a00
mov eax, 0x535104
xor ecx, ecx
cmp edi, 1
sete cl
push ecx
push 0x20006
push eax
lea ecx, [esp + 0x60]
call fcn.004a1d00
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4a3a25
mov eax, 0x535104
push eax
push esi
call ebx
test eax, eax
je 0x4a3a43
cmp eax, 5
jne 0x4a3a4b
lea ecx, [esp + 0x54]
call fcn.004a1e60
inc edi
cmp edi, 2
jge 0x4a3a54
jmp 0x4a39f3
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x54]
call fcn.004a1e60
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 1
call fcn.0040d630
mov ecx, dword [esp + 0x28]
xor esi, esi
cmp ecx, esi
je 0x4a3a8c
mov al, byte [ecx - 1]
test al, al
je 0x4a3a80
cmp al, 0xff
je 0x4a3a80
dec al
mov byte [ecx - 1], al
jmp 0x4a3a8c
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
pop edi
cmp ecx, esi
pop esi
pop ebp
pop ebx
je 0x4a3ad3
mov al, byte [ecx - 1]
test al, al
je 0x4a3ac7
cmp al, 0xff
je 0x4a3ac7
dec al
mov byte [ecx - 1], al
mov eax, dword [esp]
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp]
mov dword fs:[0], ecx
add esp, 0x68
ret