Function at 0x402790
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461d50
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4785d0]
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 esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi]
add eax, 0x10c
mov dword [ebp - 0x34], 0
cmp dword [eax + 0x14], 0x10
jb 0x4027da
mov eax, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
push 0xf003f
push 0
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
mov edx, dword [esi]
push 0x46cb9c
add edx, 0x1a4
lea ecx, [ebp - 0x6c]
call fcn.00408900
add esp, 4
push str.BEC0B5A9_4CE8_4873_90E5_345E66A944DB
mov edx, eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004089f0
mov ecx, dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
mov ebx, eax
test ecx, ecx
je 0x40283c
push ecx
call edi
mov dword [ebp - 0x18], 0
cmp dword [ebx + 0x14], 0x10
jb 0x40284b
mov ebx, dword [ebx]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete bl
cmp dword [ebp - 0x40], 0x10
jb 0x402876
push dword [ebp - 0x54]
call fcn.0041a4c1
add esp, 4
cmp dword [ebp - 0x58], 0x10
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
jb 0x402899
push dword [ebp - 0x6c]
call fcn.0041a4c1
add esp, 4
test bl, bl
je 0x4028a4
mov byte [esi + 0x94], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4028ae
push eax
call edi
mov eax, dword [esi]
add eax, 0x1a4
mov dword [ebp - 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x4028c4
mov eax, dword [eax]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [ebp - 0x34]
call ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x402bb6
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push str.BEC0B5A9_4CE8_4873_90E5_345E66A944DB
push edx
mov dword [ebp - 0x14], ecx
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x402bb3
xor ecx, ecx
cmp byte [0x46ca18], cl
mov eax, 0xb
cmove eax, ecx
push eax
push 0x46ca18
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.00407c90
mov byte [ebp - 4], 5
push dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 0x10
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push 1
push 0
push str.DisplayName
push dword [ebp - 0x14]
call ebx
lea eax, [esi + 0x4c]
lea ecx, [ebp - 0x30]
cmp ecx, eax
je 0x402989
push 0xffffffffffffffff
push 0
push eax
call fcn.00407060
push dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 0x14]
call ebx
xor ecx, ecx
cmp byte [0x46ca18], cl
mov eax, 0xb
cmove eax, ecx
push eax
push 0x46ca18
lea ecx, [ebp - 0x30]
call fcn.00407c90
push dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push 1
push 0
push str.Publisher
push dword [ebp - 0x14]
call ebx
xor ecx, ecx
cmp byte [str.http:__www.arcadegiant.com], cl
mov eax, 0x1a
cmove eax, ecx
push eax
push str.http:__www.arcadegiant.com
lea ecx, [ebp - 0x30]
call fcn.00407c90
push dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push 1
push 0
push str.URLInfoAbout
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push 1
push 0
push str.HelpLink
push dword [ebp - 0x14]
call ebx
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push 0
push str.NoModify
push dword [ebp - 0x14]
mov dword [ebp - 0x3c], 1
call ebx
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push 0
push str.NoRepair
push dword [ebp - 0x14]
call ebx
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.00404910
mov edx, eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 6
call fcn.00401f70
mov esi, eax
lea eax, [ebp - 0x30]
cmp eax, esi
je 0x402ad3
cmp dword [ebp - 0x1c], 0x10
jb 0x402ab8
push dword [ebp - 0x30]
call fcn.0041a4c1
add esp, 4
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.00406f50
cmp dword [ebp - 0x40], 0x10
jb 0x402ae4
push dword [ebp - 0x54]
call fcn.0041a4c1
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x58], 0x10
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
jb 0x402b0b
push dword [ebp - 0x6c]
call fcn.0041a4c1
add esp, 4
xor ecx, ecx
cmp byte [str.HelperID], cl
mov eax, 8
cmove eax, ecx
push eax
push str.HelperID
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
call fcn.00407c90
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 7
call fcn.00401f70
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
cmp dword [eax + 0x14], 0x10
jb 0x402b5d
mov eax, dword [eax]
push dword [ebp - 0x20]
push ecx
push 1
push 0
push eax
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 0x58], 0x10
jb 0x402b7c
push dword [ebp - 0x6c]
call fcn.0041a4c1
add esp, 4
cmp dword [ebp - 0x40], 0x10
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
jb 0x402b9f
push dword [ebp - 0x54]
call fcn.0041a4c1
add esp, 4
cmp dword [ebp - 0x1c], 0x10
jb 0x402bb0
push dword [ebp - 0x30]
call fcn.0041a4c1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
test eax, eax
sete bl
test ecx, ecx
je 0x402bc2
push ecx
call edi
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], 0
test edx, edx
je 0x402bd3
push edx
call edi
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
test ecx, ecx
je 0x402be4
push ecx
call edi
mov al, bl
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.00419056
mov esp, ebp
pop ebp
ret