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

Disassembly:
push ebp
lea ebp, [esp - 0x9c8]
sub esp, 0xa48
mov eax, dword [0x419010]
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 0x4026c0
push esi
push eax
call fcn.0040da14
add esp, 0x14
lea eax, [ebp - 0x6c]
push eax
push 1
push ebx
lea eax, [ebp + 0x1a4]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414aac
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x4026ac
push dword [ebp - 0x6c]
mov dword [ebp - 0x7c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414aac
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 0x40267c
lea eax, [ebp + 0x3ac]
push esi
push eax
call fcn.0040da14
push dword [ebp - 0x68]
lea eax, [ebp - 0x64]
push 0x402664
push esi
push eax
call fcn.0040da14
add esp, 0x20
lea eax, [ebp - 0x74]
push eax
push 0x20006
push ebx
lea eax, [ebp - 0x64]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414985
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 0x414aac
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 0x414a12
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 0x402654
lea eax, [ebp + 0x7bc]
push esi
push eax
call fcn.00414822
add esp, 0x18
lea eax, [ebp + 0x7bc]
push eax
call edi
cmp eax, ebx
jne 0x414a21
push 0x402648
call edi
cmp eax, ebx
je 0x414aac
push 0x402634
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x414aac
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.0040da3b
push 0x402614
push esi
lea eax, [ebp + 0x5b4]
push eax
call fcn.0040f96e
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 0x414aac
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 0x414aa6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x414aae
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.00413c2a
add ebp, 0x9c8
leave
ret 8