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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x404], edx
mov dword [ebp - 0x400], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45d8ec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push 0x45d8fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov eax, dword [esi + 0x374]
mov eax, dword [eax + 0x260]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [esi + 0x37c]
mov eax, dword [eax + 0x260]
mov edx, dword [eax]
call dword [edx + 0x44]
mov ebx, 0xe0010804
mov ecx, ebx
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0045d570
test eax, eax
je 0x45d8a6
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 4]
mov eax, 8
call fcn.00408780
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00404b34
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45d8a6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x3fc]
push eax
push edi
push 0
push 0x45d930
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45d7ec
lea eax, [ebp - 8]
lea edx, [ebp - 0x3fc]
mov ecx, 0x3e8
call fcn.00404760
push dword [ebp - 4]
push 0x45d944
push dword [ebp - 8]
lea eax, [ebp - 0x400]
mov edx, 3
call fcn.004049f4
mov edx, dword [ebp - 0x400]
mov eax, dword [esi + 0x374]
mov eax, dword [eax + 0x260]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 8]
call fcn.00404b34
mov edx, 0x45d948
call fcn.00408d80
test eax, eax
jne 0x45d7ec
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0045dd5c
mov eax, dword [ebp - 4]
call fcn.00404b34
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegDeleteKeyA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x3fc]
push eax
push edi
push 0
push 0x45d95c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45d89d
lea eax, [ebp - 8]
lea edx, [ebp - 0x3fc]
mov ecx, 0x3e8
call fcn.00404760
push dword [ebp - 4]
push 0x45d944
push dword [ebp - 8]
lea eax, [ebp - 0x404]
mov edx, 3
call fcn.004049f4
mov edx, dword [ebp - 0x404]
mov eax, dword [esi + 0x374]
mov eax, dword [eax + 0x260]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 8]
call fcn.00404b34
mov edx, 0x45d968
call fcn.00408d80
test eax, eax
je 0x45d881
mov eax, dword [ebp - 8]
call fcn.00404b34
mov edx, 0x45d978
call fcn.00408d80
test eax, eax
jne 0x45d89d
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0045dd5c
mov eax, dword [ebp - 4]
call fcn.00404b34
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegDeleteKeyA
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
add ebx, 0x10000
cmp ebx, 0xe0ff0804
jb 0x45d709
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d8f3
lea eax, [ebp - 0x404]
mov edx, 2
call fcn.00404694
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404694
ret