Function at 0x409a40
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x493488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c0
mov eax, dword [0x4bdc98]
push ebx
push esi
push edi
xor eax, ebp
push 0x4a1130
mov dword [esp + 0x2c8], eax
lea eax, [esp + 0x14]
push 0x4bec28
push eax
mov esi, ecx
call fcn.00402280
push 0x4be314
push eax
lea ecx, [esp + 0x5c]
xor edi, edi
push ecx
mov dword [esp + 0x2ec], edi
call fcn.00402180
push 0x4a1130
push eax
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x2f8], 1
call fcn.00402280
push 0x4a0a70
push eax
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x304], 2
call fcn.00402280
add esp, 0x30
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2d4], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x48]
mov byte [esp + 0x2d4], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2d4], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov word [esp + 0xb8], di
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0xba]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x98]
mov ebx, 8
cmp eax, ebx
mov eax, dword [esp + 0x84]
jae 0x409b45
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0xbc]
push str.__s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x64]
mov byte [esp + 0x2d4], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
cmp dword [0x4be460], ebx
mov eax, dword [0x4be44c]
mov byte [esp + 0x2d4], bl
jae 0x409b9c
mov eax, 0x4be44c
lea ecx, [esp + 0xc]
push ecx
push 3
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409c75
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004090d0
mov edi, eax
test edi, edi
je 0x409c27
cmp dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x68]
jae 0x409be6
lea eax, [esp + 0x68]
cmp dword [esi + 0xbc], ebx
jb 0x409bf6
mov esi, dword [esi + 0xa8]
jmp 0x409bfc
add esi, 0xa8
push eax
push esi
call dword [sym.imp.MSVCR71.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x409c27
cmp dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x68]
jae 0x409c19
lea eax, [esp + 0x68]
mov edx, dword [esp + 0xc]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor edi, edi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x64]
mov byte [esp + 0x2d4], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2d4], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x80]
mov dword [esp + 0x2d4], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
jmp 0x409cb6
lea ecx, [esp + 0x64]
mov byte [esp + 0x2d4], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2d4], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x80]
mov dword [esp + 0x2d4], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x2cc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491e29
mov esp, ebp
pop ebp
ret