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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e70b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push esi
mov ebx, ecx
mov ecx, 0x524cd2
push edi
call fcn.004e6414
mov edi, dword [ebx + 4]
mov dword [ebp - 0x18], 0
or edi, 0x2001f
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push edi
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x18]
test esi, esi
jne 0x403e93
xor esi, esi
test eax, eax
je 0x403e84
push eax
call ecx
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x20]
and edi, 0x300
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x403eae
test eax, eax
je 0x404015
push eax
call ecx
jmp 0x404015
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 0
push eax
call edi
test eax, eax
jne 0x403f18
nop dword [eax]
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403e00
mov esi, eax
test esi, esi
jne 0x403f64
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x403ee0
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x403f2f
push eax
call edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
mov esi, dword [ebx + 8]
test esi, esi
je 0x403fa8
cmp dword [esi], 0
mov ebx, dword [ebx]
je 0x403f9b
push 0x50fad4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x403f7a
mov esi, 1
jmp 0x40400b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404015
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404012
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403f5a
mov ecx, dword [ebp + 8]
push 0
push dword [esi]
push 0
push 0
push ecx
push ebx
call eax
jmp 0x404009
cmp dword [esi + 4], 0
je 0x403f5a
mov ecx, dword [ebp + 8]
push ecx
push ebx
jmp 0x404003
cmp byte [0x523c5d], 0
jne 0x403fe8
push 0x50fad4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403fda
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x523c60], eax
mov byte [0x523c5d], 1
jmp 0x403fed
mov eax, dword [0x523c60]
mov byte [0x523c5d], 1
jmp 0x403fed
mov eax, dword [0x523c60]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x404000
push 0
push dword [ebx + 4]
push ecx
push dword [ebx]
call eax
jmp 0x404009
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404015
push eax
call edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4