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

Disassembly:
sub esp, 0x5c
push esi
push edi
xor edi, edi
push str.rpcrt4.dll
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
call fcn.0044abc0
add esp, 4
cmp eax, edi
mov dword [0x6fc428], eax
jne 0x40de5d
pop edi
xor eax, eax
pop esi
add esp, 0x5c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UuidFromStringA
push eax
call esi
cmp eax, edi
mov dword [0x6fc424], eax
jne 0x40de7c
pop edi
xor eax, eax
pop esi
add esp, 0x5c
ret
push str.WS2_32.dll
call fcn.0044abc0
add esp, 4
cmp eax, edi
mov dword [0x6fc444], eax
jne 0x40de9a
pop edi
xor eax, eax
pop esi
add esp, 0x5c
ret
push str.WSCDeinstallProvider
push eax
call esi
cmp eax, edi
mov dword [0x6fc42c], eax
jne 0x40deb3
pop edi
xor eax, eax
pop esi
add esp, 0x5c
ret
mov eax, dword [0x6fc444]
push str.WSCInstallProvider
push eax
call esi
cmp eax, edi
mov dword [0x6fc440], eax
jne 0x40ded1
pop edi
xor eax, eax
pop esi
add esp, 0x5c
ret
mov ecx, dword [0x6fc444]
push str.WSCUpdateProvider
push ecx
call esi
mov edx, dword [0x6fc444]
push str.WSCEnumProtocols
push edx
mov dword [0x6fc434], eax
call esi
cmp eax, edi
mov dword [0x6fc43c], eax
jne 0x40df03
pop edi
xor eax, eax
pop esi
add esp, 0x5c
ret
mov eax, dword [0x6fc444]
push str.WSCWriteProviderOrder
push eax
call esi
mov ecx, dword [0x6fc444]
push str.WSCGetProviderPath
push ecx
mov dword [0x6fc438], eax
call esi
cmp eax, edi
mov dword [0x6fc430], eax
jne 0x40df34
pop edi
xor eax, eax
pop esi
add esp, 0x5c
ret
push ebx
lea edx, [esp + 0x18]
push ebp
push edx
push 0xf003f
push edi
push 0x6c9034
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e0a2
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 0x40e095
lea ecx, [esp + 0x34]
lea edx, [esp + 0x44]
push ecx
push edx
call dword [0x6fc424]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40dfab
push eax
call fcn.00609aba
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 [0x6fc43c]
mov edx, dword [esp + 0x14]
push edx
call fcn.0060a459
add esp, 4
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x40e044
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push edi
call dword [0x6fc43c]
cmp eax, 0xffffffff
je 0x40e044
xor edx, edx
cmp eax, edi
jle 0x40e044
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 0x40e01c
inc edx
add ebx, 0x274
cmp edx, eax
jl 0x40dffe
jmp 0x40e042
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.0040dc90
add esp, 0xc
xor edi, edi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [0x6fc42c]
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 0x40df8a
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e0d0
mov esi, 0x6c9550
mov ecx, dword [esi]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [0x6fc424]
lea edx, [esp + 0x18]
lea eax, [esp + 0x34]
push edx
push eax
call dword [0x6fc42c]
add esi, 4
cmp esi, 0x6c9594
jl 0x40e0a7
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 [0x6fc43c]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40e101
push eax
call fcn.00609aba
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0060a459
add esp, 4
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x40e17d
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
push ecx
push eax
push edi
call dword [0x6fc43c]
cmp eax, 0xffffffff
je 0x40e17d
xor edx, edx
cmp eax, edi
jle 0x40e17d
mov ecx, dword [esp + 0x10]
lea ebx, [ecx + 0x14]
mov ecx, 4
mov edi, 0x6c9598
mov esi, ebx
xor ebp, ebp
repe cmpsd dword [esi], dword es:[edi]
je 0x40e15f
inc edx
add ebx, 0x274
cmp edx, eax
jl 0x40e13a
mov esi, dword [esp + 0x28]
xor edi, edi
jmp 0x40e17d
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 0x6c9598
call dword [0x6fc42c]
pop ebp
cmp esi, edi
pop ebx
je 0x40e1f9
mov edx, dword [esp + 8]
push edx
call fcn.00609aba
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 8], edi
push eax
push ecx
push edi
push edi
mov dword [esp + 0x1c], edi
call dword [0x6fc43c]
mov edx, dword [esp + 0xc]
push edx
call fcn.0060a459
add esp, 4
cmp eax, edi
mov dword [esp + 8], eax
je 0x40e20a
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
push edi
call dword [0x6fc43c]
cmp eax, 0xffffffff
je 0x40e1f9
mov ecx, dword [esp + 0x1c]
push eax
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.0040dc90
add esp, 0xc
mov eax, dword [esp + 8]
cmp eax, edi
je 0x40e20a
push eax
call fcn.00609aba
add esp, 4
mov edx, dword [0x6fc444]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edx
call esi
mov eax, dword [0x6fc428]
push eax
call esi
mov ecx, dword [0x6fcafc]
push str.lastintres
push ecx
mov dword [0x6fc434], edi
mov dword [0x6fc430], edi
mov dword [0x6fc42c], edi
mov dword [0x6fc440], edi
mov dword [0x6fc43c], edi
mov dword [0x6fc424], edi
mov dword [0x6fc438], edi
mov dword [0x6fc444], edi
mov dword [0x6fc428], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
pop edi
mov eax, 1
pop esi
add esp, 0x5c
ret