Function at 0x407310
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0xf003f
push edi
push str.SoftwareECMG
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x407352
lea ecx, [esp + 4]
call fcn.004072f0
mov ecx, dword [esp + 8]
cmp eax, edi
mov dword [esp + 4], ecx
je 0x40738e
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareECMG
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x40738e
lea ecx, [esp + 4]
call fcn.004072f0
mov ecx, dword [esp + 8]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
mov edx, dword [0x45e69c]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.ServerPort
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x45e698]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.ServerStatus
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x4582f8]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.Section_TSpkt_Flag
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x45e6a0]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.AC_Delay_Start
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x45e6a4]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.AC_Delay_Stop
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x45e6a8]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.Delay_Start
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x45e6ac]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.Delay_Stop
push ecx
mov dword [esp + 0x24], edx
call esi
mov edx, dword [0x45e6b0]
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.Transition_Delay_Start
push ecx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x45e6b4]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.Transition_Delay_Stop
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x4582fc]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.ECM_Rep_Period
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x45e6b8]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.Max_Streams
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x458300]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.Min_CP_Duration
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x458304]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.Lead_CW
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x458308]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.CW_Per_Msg
push ecx
mov dword [esp + 0x24], edx
call esi
mov edx, dword [0x45830c]
lea eax, [esp + 0xc]
push 4
push eax
mov dword [esp + 0x14], edx
push 4
mov ecx, dword [esp + 0x14]
push edi
push str.Max_Comp_Time
push ecx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x458310]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.AC_Transfer_Mode
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x458314]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.EPTAgentIP
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
mov edx, dword [0x458318]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push edi
push str.EPTAgentPort
push ecx
mov dword [esp + 0x24], edx
call esi
mov eax, dword [esp + 8]
pop esi
cmp eax, edi
je 0x4075e9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 4], edi
lea ecx, [esp + 4]
call fcn.004072f0
pop edi
add esp, 0xc
ret