Function at 0x40d120
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c053b
mov eax, dword fs:[0]
push eax
mov eax, 0x19ac
call fcn.00484d50
mov eax, dword [0x4e7d04]
xor eax, esp
mov dword [esp + 0x19a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e7d04]
xor eax, esp
push eax
lea eax, [esp + 0x19c0]
mov dword fs:[0], eax
push 0x4d23f8
mov ebx, ecx
call fcn.0041aa00
mov eax, dword [0x4ec1b0]
mov ecx, dword [eax + 0x14]
add esp, 4
push 0x4ec1b0
call ecx
push 0x800
lea edx, [esp + 0x1c0]
push 0
push edx
mov edi, eax
call fcn.00482260
mov ecx, dword [0x4ec1b0]
mov edx, dword [ecx + 0x18]
add esp, 0xc
push 0x400
lea eax, [esp + 0x1c0]
push eax
push 0x4ec1b0
call edx
cmp word [esp + 0x1bc], 0
jne 0x40d1c5
xor eax, eax
jmp 0x40d37e
push 0x800
lea eax, [esp + 0x11c0]
push 0
push eax
call fcn.00482260
mov edx, dword [0x4ec1b0]
mov eax, dword [edx + 0x1c]
add esp, 0xc
push 0x400
lea ecx, [esp + 0x11c0]
push ecx
push 0x4ec1b0
call eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax - 0xc]
mov ebp, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add ecx, ecx
push ecx
push eax
push 1
lea edx, [esp + 0x11c8]
push edx
lea eax, [esp + 0x1cc]
push eax
push edi
call ebp
mov esi, eax
neg esi
sbb esi, esi
xor eax, eax
lea edx, [esp + 0x1c]
xor ecx, ecx
inc esi
push edx
and esi, 1
mov word [esp + 0x20], cx
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [0x4eab28]
mov edx, dword [eax + 0xc]
mov ecx, 0x4eab28
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x19c8], 0
movzx eax, word [esp + 0x28]
movzx ecx, word [esp + 0x26]
movzx edx, word [esp + 0x24]
push eax
movzx eax, word [esp + 0x26]
push ecx
movzx ecx, word [esp + 0x26]
push edx
movzx edx, word [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0x30]
push str._04d__02d__02d__02d:_02d:_02d
push eax
call fcn.00409b50
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 0xc]
add esp, 0x20
lea edx, [eax + eax]
push edx
push ecx
push 1
push str.InstallDate
lea eax, [esp + 0x1cc]
push eax
push edi
call ebp
push 0x190
push 0
lea ecx, [esp + 0x34]
push ecx
call fcn.00482260
mov eax, dword [0x4ec1b0]
mov ecx, dword [eax + 0x10]
add esp, 0xc
push 0xc8
lea edx, [esp + 0x30]
push edx
push 0x4ec1b0
call ecx
push 0x800
lea edx, [esp + 0x9c0]
push 0
push edx
call fcn.00482260
mov ebx, dword [ebx + 4]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push ebx
lea ecx, [esp + 0x9c4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x9bc]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40d327
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x9c0]
push eax
push 1
push 0
lea ecx, [esp + 0x1cc]
push ecx
push edi
call ebp
mov dword [esp + 0x19c8], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d37c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x19c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x19a8]
xor ecx, esp
call fcn.004820d9
add esp, 0x19b8
ret