Function at 0x501120
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7adfa9
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x89b044]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x270], ecx
lea ecx, [ebp - 0xd]
call fcn.0041ca90
mov dword [ebp - 4], 0
call fcn.00408ff0
test eax, eax
jne 0x501387
lea ecx, [ebp - 0xd]
call fcn.0041e170
test eax, eax
jne 0x501387
lea ecx, [ebp - 0xd]
call fcn.0041e5b0
test eax, eax
je 0x501387
push 0x384
call fcn.00704930
add esp, 4
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x258], 0
je 0x5011c0
mov ecx, dword [ebp - 0x258]
call fcn.00557e70
mov dword [ebp - 0x274], eax
jmp 0x5011ca
mov dword [ebp - 0x274], 0
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x250], ecx
push 2
mov ecx, dword [ebp - 0x250]
call fcn.00558a10
push 0x7ee80c
lea ecx, [ebp - 0x25c]
call fcn.004068d0
mov byte [ebp - 4], 2
push 0x7ee814
lea ecx, [ebp - 0x260]
call fcn.004068d0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x250]
call fcn.005589d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.00405ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.00405ef0
push 1
mov ecx, dword [ebp - 0x270]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x250]
call fcn.00558780
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x50127e
push 0
push 0
lea ecx, [ebp - 0xd]
call fcn.0041e190
push 0x208
push 0
lea eax, [ebp - 0x24c]
push eax
call fcn.007202b0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x24c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x24c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403bf0
mov byte [ebp - 4], 4
push 0x7ee840
lea ecx, [ebp - 0x34]
call fcn.0041edc0
lea ecx, [ebp - 0x34]
call fcn.00403c80
push eax
lea ecx, [ebp - 0x264]
call fcn.004068d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.00618340
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x264]
call fcn.00405ef0
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x3c]
call fcn.00405e80
push eax
call fcn.0072073b
add esp, 4
shl eax, 1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406470
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x7ee868
push 0x7ee87c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 0x268], 1
lea ecx, [ebp - 0x3c]
call fcn.00405ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00403c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call sub.ole32.dll_CoUninitialize
mov eax, dword [ebp - 0x268]
jmp 0x5013a6
mov dword [ebp - 0x26c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call sub.ole32.dll_CoUninitialize
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret