Function at 0x49a330
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4a1af0
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x49a3a6
mov eax, ebx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0
or eax, 8
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x49a3ad
xor esi, esi
cmp eax, 2
je 0x49a714
mov esi, eax
jmp 0x49a714
xor esi, esi
jmp 0x49a714
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], 0
push edi
call fcn.005d3244
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x49a3ec
sub esp, 0xc
mov al, byte [ebp - 0x54]
lea ecx, [ebp - 0x38]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00405590
jmp 0x49a408
mov eax, esi
mov dword [ebp - 0x28], esi
lea ecx, [ebp - 0x38]
add eax, esi
push eax
push edi
push ecx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x38], 0
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x49a43b
mov ecx, dword [ebp - 0x24]
cmp ecx, 7
jbe 0x49a444
mov eax, dword [ebp - 0x38]
cmp word [eax + edx*2 - 2], 0x5c
je 0x49a44f
cmp edx, ecx
jae 0x49a454
lea ecx, [edx + 1]
mov dword [ebp - 0x28], ecx
mov word [eax + edx*2], 0x5c
mov word [eax + edx*2 + 2], 0
jmp 0x49a47c
mov dword [ebp - 0x3c], 0
jmp 0x49a482
lea eax, [ebp - 0x38]
cmp word [eax + edx*2 - 2], 0x5c
jne 0x49a422
mov dword [ebp - 0x3c], edx
jmp 0x49a482
mov dword [ebp - 0x10], 2
sub esp, 0xc
mov al, byte [ebp - 0x54]
lea ecx, [ebp - 0x38]
mov byte [esp + 4], al
mov dword [esp + 8], 0x5c
mov dword [esp], 1
call fcn.0040a570
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], 0
mov dword [ebp - 0x10], 3
nop dword [eax]
mov dword [ebp - 0x5c], 0x104
push 0x104
lea eax, [ebp - 0x54]
push eax
call fcn.0042fcb0
add esp, 8
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x5c]
push ecx
push eax
push 0
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x49a68a
mov esi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x44]
mov eax, esi
sub eax, ecx
jbe 0x49a520
mov edx, dword [ebp - 0x40]
mov edi, edx
sub edi, ecx
cmp edi, eax
jae 0x49a540
sub esp, 0x10
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x54]
mov dword [esp + 8], eax
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.0040e070
jmp 0x49a569
cmp dword [ebp - 0x40], 7
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x54]
jbe 0x49a52f
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x44], esi
mov word [eax + esi*2], 0
jmp 0x49a56c
cmp edx, 7
lea edi, [ebp - 0x54]
mov dword [ebp - 0x44], esi
jbe 0x49a54e
mov edi, dword [ebp - 0x54]
test eax, eax
je 0x49a563
add eax, eax
lea ecx, [edi + ecx*2]
push eax
push 0
push ecx
call fcn.0061e8c0
add esp, 0xc
mov word [edi + esi*2], 0
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
mov eax, edi
sub eax, ecx
jbe 0x49a5b0
mov edx, dword [ebp - 0x24]
mov esi, edx
sub esi, ecx
cmp esi, eax
jae 0x49a5d0
sub esp, 0x10
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.0040e070
jmp 0x49a5f9
cmp dword [ebp - 0x24], 7
lea eax, [ebp - 0x38]
jbe 0x49a5bc
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], edi
mov word [eax + edi*2], 0
jmp 0x49a5f9
cmp edx, 7
lea esi, [ebp - 0x38]
mov dword [ebp - 0x28], edi
jbe 0x49a5de
mov esi, dword [ebp - 0x38]
test eax, eax
je 0x49a5f3
add eax, eax
lea ecx, [esi + ecx*2]
push eax
push 0
push ecx
call fcn.0061e8c0
add esp, 0xc
mov word [esi + edi*2], 0
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x40], 7
lea ecx, [ebp - 0x54]
jbe 0x49a608
mov ecx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, edi
sub esi, edx
cmp esi, eax
jae 0x49a640
sub esp, 0x10
movzx edx, byte [ebp - 0x20]
mov byte [esp + 4], dl
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x38]
mov dword [esp + 0xc], eax
mov dword [esp], eax
call fcn.0040b010
jmp 0x49a667
lea esi, [edx + eax]
cmp edi, 7
lea edi, [ebp - 0x38]
mov dword [ebp - 0x28], esi
jbe 0x49a651
mov edi, dword [ebp - 0x38]
add eax, eax
lea edx, [edi + edx*2]
push eax
push ecx
push edx
call fcn.0061e340
add esp, 0xc
mov word [edi + esi*2], 0
cmp dword [ebp - 0x24], 7
lea eax, [ebp - 0x38]
jbe 0x49a673
mov eax, dword [ebp - 0x38]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.0049a330
add esp, 0xc
test eax, eax
je 0x49a4a0
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ecx, dword [ebp - 0x40]
mov esi, eax
cmp ecx, 8
jb 0x49a6dd
mov eax, dword [ebp - 0x54]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x49a6d3
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x49a727
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x49a714
mov eax, dword [ebp - 0x38]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x49a70a
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x49a733
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
call fcn.006207e0
mov dword [ebp - 0x10], 1
call fcn.006207e0
nop
push ebp
sub esp, 0x20
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x49a79e
mov eax, dword [ebp - 0x54]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x49a794
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x49a7a3
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x20
pop ebp
ret
call fcn.006207e0
nop dword [eax + eax]
push ebp
sub esp, 0x20
add ebp, 0xc
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x49a7ee
mov eax, dword [ebp - 0x38]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x49a7e4
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x49a7f3
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x20
pop ebp
ret
call fcn.006207e0
int3