Function at 0x40d420
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43a03c
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x44252c]
xor eax, esp
mov dword [esp + 0x4b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44252c]
xor eax, esp
push eax
lea eax, [esp + 0x4cc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4e8]
mov eax, dword [esp + 0x4dc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [esp + 0x4e0]
mov ebp, dword [esp + 0x4e4]
mov ecx, 0x100
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
xor edx, edx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
push ecx
push edx
push 0xf003f
push edx
push edx
push edx
push esi
push eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x50], edx
call ebx
test eax, eax
je 0x40d4fe
push 0x23
xor esi, esi
push str.Cant_open_old_keys_in_the_registry
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], esi
mov byte [esp + 0x4c], 0
call fcn.00404fc0
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x4d8], esi
call fcn.00405cf0
push 0x43f120
lea eax, [esp + 0x60]
push eax
call fcn.004109bf
lea ecx, [esp + 0x30]
push ecx
push 0xf003f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d563
push 0x23
push str.Cant_open_new_keys_in_the_registry
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
call fcn.00404fc0
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x4d8], 1
call fcn.00405cf0
push 0x43f120
lea eax, [esp + 0x60]
push eax
call fcn.004109bf
cmp dword [esp + 0x2c], 2
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jne 0x40d6b5
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push str.Time
push ecx
mov dword [esp + 0x38], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d6b5
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push ebp
call ebx
test eax, eax
je 0x40d5fd
push str.Cant_open_old_keys_in_the_registry
lea ecx, [esp + 0x44]
call fcn.00405f40
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x4d8], 2
call fcn.00405cf0
push 0x43f120
lea edx, [esp + 0x60]
push edx
call fcn.004109bf
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xcc]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
xor esi, esi
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3dc]
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x40d692
jmp 0x40d630
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0xcc]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push 0
lea eax, [esp + 0x3d8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, 0x100
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x3dc]
push eax
inc esi
push esi
push ecx
call edi
test eax, eax
je 0x40d630
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push str.Time
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esp + 0x38], 1
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1cc]
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
xor esi, esi
push esi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x2dc]
push edx
push esi
push eax
call edi
test eax, eax
jne 0x40d78f
jmp 0x40d6f0
mov ecx, str.Time
lea eax, [esp + 0x2c8]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d720
test dl, dl
je 0x40d71c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d720
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d700
xor eax, eax
jmp 0x40d725
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d750
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x1cc]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x2d8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, 0x100
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1cc]
push ecx
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2dc]
push ecx
inc esi
push esi
push edx
call edi
test eax, eax
je 0x40d6f0
mov ecx, dword [esp + 0x14]
push 4
lea eax, [esp + 0x1cc]
push eax
push 4
push 0
push str.__Updated
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40d7f3
push str.Cant_mark_updated_key
lea ecx, [esp + 0x88]
call fcn.00405f40
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0xa4]
mov dword [esp + 0x4d8], 3
call fcn.00405cf0
push 0x43f120
lea eax, [esp + 0xa4]
push eax
call fcn.004109bf
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x4cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4b4]
xor ecx, esp
call fcn.00410f49
add esp, 0x4c4
ret