Function at 0x473980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd448
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
push 0x2001f
push 0x4c79ac
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], eax
call fcn.00412570
push 0x4c7780
lea ecx, [ebp - 0x48]
push edi
push ecx
call fcn.0040ca60
push ebx
push eax
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 1
call fcn.0044c550
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x473a04
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x58]
call fcn.004194e0
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x4c], eax
jb 0x473a22
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], cl
jb 0x473a4b
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [ebp + 8], 0
je 0x473b9f
push 0x4c7780
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.0040ca60
push ebx
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 2
call fcn.0044c550
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x473a80
mov edi, dword [eax]
jmp 0x473a82
mov edi, eax
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], 0
test ebx, ebx
je 0x473aeb
cmp dword [ebx], 0
je 0x473adb
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x473aab
mov eax, 1
jmp 0x473b08
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x473aa4
mov edx, dword [ebx]
push 0
push edx
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x4c]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push esi
call eax
jmp 0x473b08
cmp dword [ebx + 4], 0
je 0x473aa4
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
jmp 0x473af3
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x473b23
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x473b1c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x4c]
mov esi, eax
jmp 0x473b26
mov edi, dword [ebp - 0x58]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x4c], esi
jb 0x473b3b
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
jb 0x473b61
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
test esi, esi
jne 0x473ba2
mov esi, dword [ebp - 0x60]
cmp dword [esi + 0x14], 8
jb 0x473b70
mov esi, dword [esi]
test esi, esi
jne 0x473b7d
mov dword [ebp - 0x4c], 0xd
jmp 0x473ba2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push 0x4c79ac
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x4c], eax
jmp 0x473ba2
mov edi, dword [ebp - 0x58]
test edi, edi
je 0x473bad
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret