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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], ebx
cmp dword [edi + 0x14], 8
jb 0x442db7
mov esi, dword [edi]
jmp 0x442db9
mov esi, edi
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x442ddf
push 0
push dword [ebp + 8]
push esi
push ebx
call eax
jmp 0x442de7
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x442dfe
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x3c], 0
jb 0x442e0f
mov ecx, dword [edi]
jmp 0x442e11
mov ecx, edi
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 8]
or eax, 8
push eax
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x442deb
test eax, eax
jne 0x4430ae
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], eax
mov word [ebp - 0x38], ax
call fcn.0041b960
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x442e76
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x442e76
push 1
push 0x4ff620
lea ecx, [ebp - 0x38]
call fcn.0041b9f3
mov ebx, dword [ebp - 0x28]
xor esi, esi
mov edi, dword [ebp - 0x40]
mov ecx, 7
xor eax, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], esi
mov word [ebp - 0x20], ax
nop
mov dword [ebp - 0x44], 0x104
cmp esi, 0x104
ja 0x442ed3
cmp ecx, 0x104
je 0x442ed3
jae 0x442eba
push esi
push 0x104
lea ecx, [ebp - 0x20]
call fcn.0041cbba
mov ecx, dword [ebp - 0xc]
cmp ecx, 8
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [eax + esi*2], cx
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
cmp esi, 0x103
jb 0x442ef7
cmp ecx, 8
mov dword [ebp - 0x10], 0x103
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [eax + 0x206], cx
jmp 0x442f09
mov eax, 0x103
lea ecx, [ebp - 0x20]
push 0
sub eax, esi
push eax
call fcn.004208fb
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x44]
push 0
push 0
push 0
push 0
push ecx
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x442fbd
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x10]
cmp ecx, eax
ja 0x442f54
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], ecx
cmovae eax, dword [ebp - 0x20]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x442f61
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x20]
call fcn.004208fb
mov ecx, dword [ebp - 0x28]
cmp ebx, ecx
ja 0x442f7e
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], ebx
cmovae eax, dword [ebp - 0x38]
xor ecx, ecx
mov word [eax + ebx*2], cx
jmp 0x442f8d
mov eax, ebx
sub eax, ecx
lea ecx, [ebp - 0x38]
push 0
push eax
call fcn.004208fb
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.0041c836
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x38]
push esi
mov ecx, edi
call fcn.00442d90
add esp, 4
test eax, eax
jne 0x442fc0
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
jmp 0x442e90
mov esi, dword [ebp + 8]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x48]
cmp dword [edi + 0x14], 8
jb 0x442fd4
mov edi, dword [edi]
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x442ffa
push 0
push esi
push edi
push dword [ebp - 0x40]
call eax
jmp 0x443004
push edi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x443059
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x4430bf
add eax, eax
cmp eax, 0x1000
jb 0x443050
test cl, 0x1f
jne 0x4430c4
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4430c9
sub ecx, eax
cmp ecx, 4
jb 0x4430ce
cmp ecx, 0x23
ja 0x4430d3
mov ecx, eax
push ecx
call fcn.004cbd7a
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0
cmp eax, 8
jb 0x4430ac
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x7fffffff
ja 0x4430d8
add eax, eax
cmp eax, 0x1000
jb 0x4430a3
test cl, 0x1f
jne 0x4430dd
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4430e2
sub ecx, eax
cmp ecx, 4
jb 0x4430e7
cmp ecx, 0x23
ja 0x4430ec
mov ecx, eax
push ecx
call fcn.004cbd7a
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
int3