Function at 0x4073b0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x46c0
call fcn.00409590
mov eax, dword [0x410060]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x46bc], 0
mov dword [ebp - 0x4660], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x465c], 0
mov dword [ebp - 0x4664], 0
mov eax, dword [ebp + 0xc]
push eax
push 2
call fcn.00404810
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x4658]
push edx
call fcn.00404d90
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407436
mov eax, dword [ebp - 4]
jmp 0x4075f9
lea eax, [ebp - 0x4658]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004042d0
add esp, 8
mov dword [ebp - 0x46c0], 0xe
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x46c0]
push eax
push 0x40f2a0
mov ecx, dword [ebp + 0xc]
add ecx, 0x410
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
push ecx
call dword [eax + 0x18]
mov dword [ebp - 0x4660], eax
cmp dword [ebp - 0x4660], 0
jge 0x40748d
jmp 0x407527
lea edx, [ebp - 8]
push edx
push 0x40e360
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
call dword [ecx]
mov dword [ebp - 0x4660], eax
cmp dword [ebp - 0x4660], 0
jge 0x4074b2
jmp 0x407527
push 0
push 1
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0x40030
mov ecx, dword [ebp - 8]
push ecx
call fcn.00405bd0
add esp, 0x24
mov dword [ebp - 0x4660], eax
cmp dword [ebp - 0x4660], 0
je 0x4074e4
jmp 0x407527
lea edx, [ebp - 0x465c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 0x24]
mov dword [ebp - 0x4660], eax
cmp dword [ebp - 0x4660], 0
je 0x407508
jmp 0x407527
cmp dword [ebp - 0x465c], 0
je 0x407527
mov eax, dword [ebp - 0x465c]
push eax
lea ecx, [ebp - 0x46b8]
push ecx
call sub.MSVCR71.dll_wcscpy
add esp, 8
cmp dword [ebp - 0x465c], 0
je 0x40753d
mov edx, dword [ebp - 0x465c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 8], 0
je 0x40754f
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x407561
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0x4660], 0
je 0x407575
mov eax, dword [ebp - 0x4660]
jmp 0x4075f9
mov eax, dword [ebp + 0xc]
push eax
push 2
call fcn.00403650
add esp, 8
lea ecx, [ebp - 0x4664]
push ecx
push 2
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4075ae
jmp 0x4075e0
lea eax, [ebp - 0x46b8]
push eax
call sub.MSVCR71.dll_wcslen
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x46b8]
push ecx
push 1
push 0
push 0x40bebc
mov edx, dword [ebp - 0x4664]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x4664], 0
je 0x4075f6
mov eax, dword [ebp - 0x4664]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
call fcn.00409559
mov esp, ebp
pop ebp
ret