Function at 0x460460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60edc1
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x46c], ecx
push str.ROOT_KEY
mov eax, dword [ebp + 8]
push eax
call fcn.0045dc90
add esp, 8
mov dword [ebp - 0x28], eax
push str.SUB_KEY
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045dc90
add esp, 8
mov dword [ebp - 0x1c], eax
push 0x6196ac
mov edx, dword [ebp + 8]
push edx
call fcn.0045dc90
add esp, 8
mov dword [ebp - 0x438], eax
push str.NAME
mov eax, dword [ebp + 8]
push eax
call fcn.0045dc90
add esp, 8
mov dword [ebp - 0x14], eax
push str.VALUE
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045dc90
add esp, 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 0
push str.CURRENT_USER
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x460524
mov dword [ebp - 0x10], reloc.WS2_32.dll_accept
jmp 0x4605c9
push str.LOCAL_MACHINE
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x460549
mov dword [ebp - 0x10], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4605c9
push 2
push 0x16a
push str..WadeSoket4WadeSafeConfWadeSafeConf.cpp
lea ecx, [ebp - 0x450]
call fcn.00403d10
mov dword [ebp - 0x470], eax
mov eax, dword [ebp - 0x470]
mov dword [ebp - 0x474], eax
mov dword [ebp - 4], 0
push 0x68a0a0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x10]
push edx
push 0x619668
mov ecx, dword [ebp - 0x474]
call fcn.00404340
push eax
call fcn.00408230
add esp, 8
push eax
call fcn.00408230
add esp, 8
push eax
call fcn.00408230
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.004042e0
xor al, al
jmp 0x4608e2
mov dword [ebp - 0x20], 0xffffffff
push str.REG_DWORD
mov eax, dword [ebp - 0x438]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4605f8
mov dword [ebp - 0x20], 4
jmp 0x4606cb
push str.REG_SZ
mov edx, dword [ebp - 0x438]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x460620
mov dword [ebp - 0x20], 1
jmp 0x4606cb
push str.REG_BINARY
mov ecx, dword [ebp - 0x438]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x460648
mov dword [ebp - 0x20], 3
jmp 0x4606cb
push 2
push 0x176
push str..WadeSoket4WadeSafeConfWadeSafeConf.cpp
lea ecx, [ebp - 0x458]
call fcn.00403d10
mov dword [ebp - 0x478], eax
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x47c], eax
mov dword [ebp - 4], 1
push 0x68a0a0
mov ecx, dword [ebp - 0x438]
mov edx, dword [ecx + 0x10]
push edx
push 0x619634
mov ecx, dword [ebp - 0x47c]
call fcn.00404340
push eax
call fcn.00408230
add esp, 8
push eax
call fcn.00408230
add esp, 8
push eax
call fcn.00408230
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x458]
call fcn.004042e0
xor al, al
jmp 0x4608e2
mov byte [ebp - 0x434], 0
push 0x3ff
push 0
lea eax, [ebp - 0x433]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x10]
push ecx
push 0x617044
lea edx, [ebp - 0x434]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x434]
push eax
call fcn.00414b80
add esp, 4
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4607bc
push 2
push 0x184
push str..WadeSoket4WadeSafeConfWadeSafeConf.cpp
lea ecx, [ebp - 0x460]
call fcn.00403d10
mov dword [ebp - 0x480], eax
mov edx, dword [ebp - 0x480]
mov dword [ebp - 0x484], edx
mov dword [ebp - 4], 2
push 0x68a0a0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
push ecx
push 0x619620
mov ecx, dword [ebp - 0x484]
call fcn.00404340
push eax
call fcn.00408230
add esp, 8
push eax
call fcn.00408230
add esp, 8
push eax
call fcn.00408230
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x460]
call fcn.004042e0
xor al, al
jmp 0x4608e2
cmp dword [ebp - 0x20], 4
jne 0x4607fb
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.MSVCR90.dll_atol]
add esp, 4
mov dword [ebp - 0x43c], eax
push 4
lea ecx, [ebp - 0x43c]
push ecx
push 4
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4608d6
cmp dword [ebp - 0x20], 1
jne 0x460832
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x10]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4608d6
cmp dword [ebp - 0x20], 3
jne 0x4608d6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x10]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
mov dword [ebp - 0x448], eax
mov edx, dword [ebp - 0x448]
push edx
call fcn.0047ce38
add esp, 4
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x464]
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x440]
push eax
call fcn.00460400
add esp, 8
mov dword [ebp - 0x444], eax
mov ecx, dword [ebp - 0x444]
push ecx
mov edx, dword [ebp - 0x440]
push edx
push 3
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x468], eax
mov ecx, dword [ebp - 0x468]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x440], 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret 4