Function at 0x40cd70
Capabilities:
Delete registry key
Delete registry value
Link many functions at runtime
Query or enumerate registry key

Disassembly:
sub esp, 0x5c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
xor edi, edi
push str.rpcrt4.dll
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call ebx
cmp eax, edi
mov dword [0x6d0c48], eax
jne 0x40cd9f
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UuidFromStringA
push eax
call esi
cmp eax, edi
mov dword [0x6d0c44], eax
jne 0x40cdbf
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret
push str.WS2_32
call ebx
cmp eax, edi
mov dword [0x6d0c64], eax
jne 0x40cdd8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret
push str.WSCDeinstallProvider
push eax
call esi
cmp eax, edi
mov dword [0x6d0c4c], eax
jne 0x40cdf2
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov eax, dword [0x6d0c64]
push str.WSCInstallProvider
push eax
call esi
cmp eax, edi
mov dword [0x6d0c60], eax
jne 0x40ce11
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov ecx, dword [0x6d0c64]
push str.WSCUpdateProvider
push ecx
call esi
mov edx, dword [0x6d0c64]
push str.WSCEnumProtocols
push edx
mov dword [0x6d0c54], eax
call esi
cmp eax, edi
mov dword [0x6d0c5c], eax
jne 0x40ce44
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov eax, dword [0x6d0c64]
push str.WSCWriteProviderOrder
push eax
call esi
mov ecx, dword [0x6d0c64]
push str.WSCGetProviderPath
push ecx
mov dword [0x6d0c58], eax
call esi
cmp eax, edi
mov dword [0x6d0c50], eax
jne 0x40ce76
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret
lea edx, [esp + 0x18]
push ebp
push edx
push 0xf003f
push edi
push 0x69ffa4
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cfe3
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push edi
push edi
push edi
lea edx, [esp + 0x54]
push ecx
push edx
push edi
push eax
mov dword [esp + 0x40], 0x28
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x40cfd6
lea ecx, [esp + 0x34]
lea edx, [esp + 0x44]
push ecx
push edx
call dword [0x6d0c44]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40ceec
push eax
call fcn.005e6206
add esp, 4
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [0x6d0c5c]
mov edx, dword [esp + 0x14]
push edx
call fcn.005e6c79
add esp, 4
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x40cf85
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push edi
call dword [0x6d0c5c]
cmp eax, 0xffffffff
je 0x40cf85
xor edx, edx
cmp eax, edi
jle 0x40cf85
mov ecx, dword [esp + 0x10]
lea ebx, [ecx + 0x14]
mov ecx, 4
lea edi, [esp + 0x34]
mov esi, ebx
xor ebp, ebp
repe cmpsd dword [esi], dword es:[edi]
je 0x40cf5d
inc edx
add ebx, 0x274
cmp edx, eax
jl 0x40cf3f
jmp 0x40cf83
lea ecx, [edx + edx*4]
push eax
shl ecx, 3
sub ecx, edx
lea edx, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + edx*4 + 0x24]
lea edx, [esp + 0x14]
push edx
push ecx
mov dword [esp + 0x30], ecx
call fcn.0040cbd0
add esp, 0xc
xor edi, edi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [0x6d0c4c]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edi
push edi
push edi
lea eax, [esp + 0x54]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x40], 0x28
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x40cecb
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d011
mov esi, 0x6a04f0
mov ecx, dword [esi]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [0x6d0c44]
lea edx, [esp + 0x18]
lea eax, [esp + 0x34]
push edx
push eax
call dword [0x6d0c4c]
add esi, 4
cmp esi, 0x6a0534
jl 0x40cfe8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
xor esi, esi
push eax
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], edi
call dword [0x6d0c5c]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40d042
push eax
call fcn.005e6206
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005e6c79
add esp, 4
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x40d0be
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
push ecx
push eax
push edi
call dword [0x6d0c5c]
cmp eax, 0xffffffff
je 0x40d0be
xor edx, edx
cmp eax, edi
jle 0x40d0be
mov ecx, dword [esp + 0x10]
lea ebx, [ecx + 0x14]
mov ecx, 4
mov edi, 0x6a0538
mov esi, ebx
xor ebp, ebp
repe cmpsd dword [esi], dword es:[edi]
je 0x40d0a0
inc edx
add ebx, 0x274
cmp edx, eax
jl 0x40d07b
mov esi, dword [esp + 0x28]
xor edi, edi
jmp 0x40d0be
lea eax, [edx + edx*4]
mov esi, 1
shl eax, 3
sub eax, edx
xor edi, edi
lea ecx, [edx + eax*4]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx*4 + 0x24]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
push ecx
push 0x6a0538
call dword [0x6d0c4c]
cmp esi, edi
pop ebp
je 0x40d139
mov edx, dword [esp + 0xc]
push edx
call fcn.005e6206
add esp, 4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], edi
push eax
push ecx
push edi
push edi
mov dword [esp + 0x20], edi
call dword [0x6d0c5c]
mov edx, dword [esp + 0x10]
push edx
call fcn.005e6c79
add esp, 4
cmp eax, edi
mov dword [esp + 0xc], eax
je 0x40d14a
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
push edi
call dword [0x6d0c5c]
cmp eax, 0xffffffff
je 0x40d139
mov ecx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.0040cbd0
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x40d14a
push eax
call fcn.005e6206
add esp, 4
mov edx, dword [0x6d0c64]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edx
call esi
mov eax, dword [0x6d0c48]
push eax
call esi
mov ecx, dword [0x6d12f4]
push str.lastintres
push ecx
mov dword [0x6d0c54], edi
mov dword [0x6d0c50], edi
mov dword [0x6d0c4c], edi
mov dword [0x6d0c60], edi
mov dword [0x6d0c5c], edi
mov dword [0x6d0c44], edi
mov dword [0x6d0c58], edi
mov dword [0x6d0c64], edi
mov dword [0x6d0c48], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x5c
ret