Function at 0x410bad
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c8]
sub esp, 0xa48
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp + 0x9c4], eax
mov eax, dword [ebp + 0x9d0]
push ebx
push esi
push edi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x9d4]
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x1a4]
push ebx
push eax
mov dword [ebp - 0x6c], ebx
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 0xc
call edi
push eax
push dword [ebp - 0x68]
lea eax, [ebp + 0x1a4]
push 0x402988
push esi
push eax
call fcn.0040b092
add esp, 0x14
lea eax, [ebp - 0x6c]
push eax
push 1
push ebx
lea eax, [ebp + 0x1a4]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410e10
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x402978
push dword [ebp - 0x6c]
mov dword [ebp - 0x7c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410e10
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp + 0x3ac]
push ebx
push eax
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp - 0x64]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0x18
call edi
push eax
push 0x402948
lea eax, [ebp + 0x3ac]
push esi
push eax
call fcn.0040b092
push dword [ebp - 0x68]
lea eax, [ebp - 0x64]
push 0x402930
push esi
push eax
call fcn.0040b092
add esp, 0x20
lea eax, [ebp - 0x74]
push eax
push 0x20006
push ebx
lea eax, [ebp - 0x64]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410ce9
lea eax, [ebp + 0x3ac]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x70]
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x68], eax
je 0x410e10
push esi
lea eax, [ebp + 0x7bc]
push ebx
push eax
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp + 0x8c0]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0x18
push esi
lea eax, [ebp + 0x8c0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
je 0x410d76
lea eax, [ebp + 0x8c0]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_strrchr]
mov byte [eax], bl
lea eax, [ebp + 0x8c0]
push eax
push 0x402920
lea eax, [ebp + 0x7bc]
push esi
push eax
call fcn.00410b86
add esp, 0x18
lea eax, [ebp + 0x7bc]
push eax
call edi
cmp eax, ebx
jne 0x410d85
push 0x402914
call edi
cmp eax, ebx
je 0x410e10
push 0x402900
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x410e10
push esi
lea eax, [ebp + 0x5b4]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push dword [ebp - 0x78]
lea eax, [ebp + 0x5b4]
push esi
push eax
call fcn.0040b0b9
push 0x4028e0
push esi
lea eax, [ebp + 0x5b4]
push eax
call fcn.0040c808
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
lea eax, [ebp + 0x5b4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410e10
push ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0x70]
push dword [ebp - 0x68]
call edi
test eax, eax
push esi
je 0x410e0a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x410e12
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp + 0x9c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fdc4
add ebp, 0x9c8
leave
ret 8