Function at 0x40a5b1
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413583
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x183c
call fcn.00412970
mov dword [ebp - 0x1848], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x1020], 0x800
mov eax, dword [ebp - 0x1848]
mov ecx, dword [eax + 0x874]
mov dword [ebp - 0x1018], ecx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1848]
mov eax, dword [edx + 0x50]
mov dword [ebp - 0x1034], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1848]
mov edx, dword [ecx + 0x50]
push edx
mov ecx, dword [ebp - 0x1848]
add ecx, 0x14
call fcn.0040f440
push 0xf003f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.00404130
push eax
mov ecx, dword [ebp - 0x1018]
push ecx
mov ecx, dword [ebp - 0x1848]
call fcn.0040d04e
mov dword [ebp - 0x101c], eax
cmp dword [ebp - 0x101c], 1
je 0x40a6bf
mov dword [ebp - 0x1840], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404550
mov eax, dword [ebp - 0x1840]
jmp 0x40a994
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x1848]
add ecx, 0x14
call fcn.0040f6d0
mov dword [ebp - 0x1014], eax
cmp dword [ebp + 8], 0
je 0x40a6e8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1014]
mov dword [eax], ecx
lea ecx, [ebp + 0x10]
call fcn.004040d0
shl eax, 1
mov dword [ebp - 0x1020], eax
push 0x800
push 0
lea edx, [ebp - 0x1010]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x1020]
push eax
lea ecx, [ebp + 0x10]
call fcn.00404130
push eax
lea ecx, [ebp - 0x1010]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x1020]
push edx
lea eax, [ebp - 0x1010]
push eax
push 1
push 0x4185d0
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1848]
call fcn.0040d334
mov edx, dword [ebp - 0x1034]
add edx, 1
mov dword [ebp - 0x102c], edx
push 4
lea eax, [ebp - 0x102c]
push eax
push 4
push 0x4185dc
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1848]
call fcn.0040d334
lea ecx, [ebp + 0x20]
call fcn.00404110
test eax, eax
jne 0x40a7f4
lea ecx, [ebp + 0x20]
call fcn.004040d0
shl eax, 1
mov dword [ebp - 0x1020], eax
push 0x800
push 0
lea edx, [ebp - 0x1010]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x1020]
push eax
lea ecx, [ebp + 0x20]
call fcn.00404130
push eax
lea ecx, [ebp - 0x1010]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x1020]
push edx
lea eax, [ebp - 0x1010]
push eax
push 1
push 0x4185e8
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1848]
call fcn.0040d334
lea ecx, [ebp + 0x24]
call fcn.00404110
test eax, eax
jne 0x40a869
lea ecx, [ebp + 0x24]
call fcn.004040d0
shl eax, 1
mov dword [ebp - 0x1020], eax
push 0x800
push 0
lea edx, [ebp - 0x1010]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x1020]
push eax
lea ecx, [ebp + 0x24]
call fcn.00404130
push eax
lea ecx, [ebp - 0x1010]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x1020]
push edx
lea eax, [ebp - 0x1010]
push eax
push 1
push 0x4185fc
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1848]
call fcn.0040d334
mov dword [ebp - 0x102c], 0
push 4
lea edx, [ebp - 0x102c]
push edx
push 4
push 0x418618
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1848]
call fcn.0040d334
mov ecx, dword [ebp - 0x1848]
mov edx, dword [ecx + 0x50]
add edx, 1
mov eax, dword [ebp - 0x1848]
mov dword [eax + 0x50], edx
mov ecx, dword [ebp - 0x1034]
push ecx
mov ecx, dword [ebp - 0x1848]
add ecx, 0x14
call fcn.0040f700
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x1848]
cmp dword [eax + 0x878], 0
jne 0x40a91c
mov dword [ebp - 0x183c], VariantClear
push 0x70
push 0x41862c
lea ecx, [ebp - 0x1838]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0xf003f
mov edx, dword [ebp - 0x1848]
add edx, 0x878
push edx
lea eax, [ebp - 0x1838]
push eax
mov ecx, dword [ebp - 0x183c]
push ecx
mov ecx, dword [ebp - 0x1848]
call fcn.0040d275
push 0x20019
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp + 0xc]
call fcn.00404130
push eax
mov eax, dword [ebp - 0x1848]
mov ecx, dword [eax + 0x878]
push ecx
mov ecx, dword [ebp - 0x1848]
call fcn.0040d275
test eax, eax
je 0x40a975
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x1848]
call fcn.0040d1a1
lea ecx, [ebp + 0xc]
call fcn.00404130
push eax
mov eax, dword [ebp - 0x1848]
mov ecx, dword [eax + 0x878]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x1844], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404550
mov eax, dword [ebp - 0x1844]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x28