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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push edi
xor edi, edi
push str.rpcrt4.dll
xor ebx, ebx
mov dword [esp + 0xc], edi
call fcn.00447580
add esp, 4
mov dword [0x75a9d4], eax
cmp eax, edi
jne 0x40efd1
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x5c
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UuidFromStringA
push eax
call esi
mov dword [0x75a9d0], eax
cmp eax, edi
je 0x40f07d
push 0x6780d8
call fcn.00447580
add esp, 4
mov dword [0x75a9f0], eax
cmp eax, edi
je 0x40f07d
push str.WSCDeinstallProvider
push eax
call esi
mov dword [0x75a9d8], eax
cmp eax, edi
je 0x40f07d
mov eax, dword [0x75a9f0]
push str.WSCInstallProvider
push eax
call esi
mov dword [0x75a9ec], eax
cmp eax, edi
je 0x40f07d
mov ecx, dword [0x75a9f0]
push str.WSCUpdateProvider
push ecx
call esi
mov edx, dword [0x75a9f0]
push str.WSCEnumProtocols
push edx
mov dword [0x75a9e0], eax
call esi
mov dword [0x75a9e8], eax
cmp eax, edi
je 0x40f07d
mov eax, dword [0x75a9f0]
push str.WSCWriteProviderOrder
push eax
call esi
mov ecx, dword [0x75a9f0]
push str.WSCGetProviderPath
push ecx
mov dword [0x75a9e4], eax
call esi
mov dword [0x75a9dc], eax
cmp eax, edi
jne 0x40f091
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x5c
ret
push ebp
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push edi
push 0x675e10
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f212
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push edi
push edi
push edi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x54]
push edx
push edi
push eax
mov dword [esp + 0x40], 0x28
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x40f205
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x44]
push edx
call dword [0x75a9d0]
cmp ebx, edi
je 0x40f103
push ebx
call fcn.0061e83c
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
mov dword [esp + 0x20], edi
call dword [0x75a9e8]
mov edx, dword [esp + 0x10]
push edx
call fcn.0061f92f
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
cmp ebx, edi
je 0x40f1b2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push edi
call dword [0x75a9e8]
cmp eax, 0xffffffff
je 0x40f1b2
cmp eax, edi
jle 0x40f1b2
mov esi, ebx
lea edx, [esp + 0x30]
sub esi, edx
add esi, 0x14
lea ebx, [ebx]
mov edx, 0x10
lea ecx, [esp + 0x30]
lea esp, [esp]
cmp edx, 4
jb 0x40f191
mov ebp, dword [esi + ecx]
cmp ebp, dword [ecx]
jne 0x40f184
sub edx, 4
add ecx, 4
jmp 0x40f170
inc edi
add esi, 0x274
cmp edi, eax
jl 0x40f160
jmp 0x40f1b2
imul edi, edi, 0x274
mov edi, dword [edi + ebx + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x30], edi
call fcn.0040ede0
mov ebx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
call dword [0x75a9d8]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
xor edi, edi
push edi
push edi
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x54]
push ecx
push edi
push edx
mov dword [esp + 0x40], 0x28
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x40f0e6
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f240
mov esi, 0x74f2c0
mov edx, dword [esi]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [0x75a9d0]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [0x75a9d8]
add esi, 4
cmp esi, 0x74f304
jl 0x40f217
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
xor esi, esi
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], edi
call dword [0x75a9e8]
cmp ebx, edi
je 0x40f269
push ebx
call fcn.0061e83c
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0061f92f
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x40f2e8
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push edi
call dword [0x75a9e8]
cmp eax, 0xffffffff
je 0x40f2e8
cmp eax, edi
jle 0x40f2e8
mov esi, ebx
sub esi, 0x74f304
add esi, 0x14
mov edx, 0x10
mov ecx, 0x74f304
lea esp, [esp]
cmp edx, 4
jb 0x40f2d5
mov ebp, dword [esi + ecx]
cmp ebp, dword [ecx]
jne 0x40f2c4
sub edx, 4
add ecx, 4
jmp 0x40f2b0
inc edi
add esi, 0x274
cmp edi, eax
jl 0x40f2a2
mov esi, dword [esp + 0x18]
jmp 0x40f2e8
imul edi, edi, 0x274
mov ecx, dword [edi + ebx + 0x24]
mov dword [esp + 0x24], ecx
mov esi, 1
lea edx, [esp + 0x14]
push edx
push 0x74f304
call dword [0x75a9d8]
xor edi, edi
pop ebp
cmp esi, edi
je 0x40f363
push ebx
call fcn.0061e83c
add esp, 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
push edi
mov dword [esp + 0x1c], edi
call dword [0x75a9e8]
mov edx, dword [esp + 0xc]
push edx
call fcn.0061f92f
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
cmp ebx, edi
je 0x40f370
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
call dword [0x75a9e8]
cmp eax, 0xffffffff
je 0x40f363
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0040ede0
mov ebx, dword [esp + 0x20]
add esp, 0xc
cmp ebx, edi
je 0x40f370
push ebx
call fcn.0061e83c
add esp, 4
mov ecx, dword [0x75a9f0]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ecx
call esi
mov edx, dword [0x75a9d4]
push edx
call esi
mov eax, dword [0x75abd8]
push str.lastintres
push eax
mov dword [0x75a9e0], edi
mov dword [0x75a9dc], edi
mov dword [0x75a9d8], edi
mov dword [0x75a9ec], edi
mov dword [0x75a9e8], edi
mov dword [0x75a9d0], edi
mov dword [0x75a9e4], edi
mov dword [0x75a9f0], edi
mov dword [0x75a9d4], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x64]
pop esi
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0061d2ff
add esp, 0x5c
ret