Function at 0x407550
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0x40feb8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x888], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x880], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x884], 0
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x87c], 0
push 0
push 1
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0x104
lea ecx, [ebp - 0x870]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402850
add esp, 0x1c
mov dword [ebp - 0x878], eax
cmp dword [ebp - 0x878], 0
jge 0x4075e9
mov eax, dword [ebp - 0x878]
jmp 0x407871
lea eax, [ebp - 0x880]
push eax
push 0x40df00
lea ecx, [ebp - 0x870]
push ecx
call dword [0x410510]
mov dword [ebp - 0x878], eax
cmp dword [ebp - 0x878], 0
jge 0x407616
jmp 0x407757
mov edx, dword [ebp + 0x10]
push edx
push 4
call fcn.004041b0
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x668]
push ecx
call fcn.004047c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40764e
mov edx, dword [ebp - 4]
mov dword [ebp - 0x878], edx
jmp 0x407757
lea eax, [ebp - 0x668]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00404000
add esp, 8
mov dword [ebp - 0x88c], 0xe
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x88c]
push eax
push 0x40f578
mov ecx, dword [ebp + 0x10]
add ecx, 0x410
push ecx
mov edx, dword [ebp - 0x880]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x880]
push ecx
call dword [eax + 0x18]
mov dword [ebp - 0x878], eax
cmp dword [ebp - 0x878], 0
jge 0x4076ab
jmp 0x407757
lea edx, [ebp - 0x884]
push edx
push 0x40e0c0
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx]
mov dword [ebp - 0x878], eax
cmp dword [ebp - 0x878], 0
jge 0x4076d6
jmp 0x407757
push 0
push 1
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x40030
mov ecx, dword [ebp - 0x884]
push ecx
call fcn.00405570
add esp, 0x24
mov dword [ebp - 0x878], eax
cmp dword [ebp - 0x878], 0
je 0x40770b
jmp 0x407757
lea edx, [ebp - 0x874]
push edx
mov eax, dword [ebp - 0x884]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x884]
push edx
call dword [ecx + 0x24]
mov dword [ebp - 0x878], eax
cmp dword [ebp - 0x878], 0
je 0x407735
jmp 0x407757
cmp dword [ebp - 0x874], 0
je 0x407757
mov eax, dword [ebp - 0x874]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x10a4
push ecx
call sub.MSVCR71.dll_wcscpy
add esp, 8
cmp dword [ebp - 0x874], 0
je 0x40776d
mov edx, dword [ebp - 0x874]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x884], 0
je 0x407788
mov eax, dword [ebp - 0x884]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x884]
push edx
call dword [ecx + 8]
cmp dword [ebp - 8], 0
je 0x40779a
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0x880], 0
je 0x4077b5
mov eax, dword [ebp - 0x880]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x880]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0x878], 0
je 0x4077c9
mov eax, dword [ebp - 0x878]
jmp 0x407871
mov eax, dword [ebp + 0x10]
push eax
push 4
call fcn.00402ff0
add esp, 8
lea ecx, [ebp - 0x87c]
push ecx
push 2
push 0
mov edx, dword [ebp + 0x10]
add edx, 0x618
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407801
jmp 0x407858
mov ecx, dword [ebp + 0x10]
add ecx, 0x10a4
push ecx
call sub.MSVCR71.dll_wcslen
add esp, 4
shl eax, 1
push eax
mov edx, dword [ebp + 0x10]
add edx, 0x10a4
push edx
push 1
push 0
push 0x40bd1c
mov eax, dword [ebp - 0x87c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407841
jmp 0x407858
mov ecx, dword [ebp + 0x10]
add ecx, 0x10a4
push ecx
push 0x40bd34
call sub.MSVCR71.dll_wprintf
add esp, 8
cmp dword [ebp - 0x87c], 0
je 0x40786e
mov edx, dword [ebp - 0x87c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
call fcn.00408ef1
mov esp, ebp
pop ebp
ret