Function at 0x411d50
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e810d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push esi
mov esi, ecx
mov ecx, 0x524e73
push edi
call fcn.004e6414
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
sub ecx, 0x10
call fcn.00408b90
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push 0xf013f
push edi
push str.SOFTWAREClientsStartMenuInternet
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411dcd
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x100
push ebx
or ebx, 0xffffffff
mov byte [ebp - 4], 1
test eax, eax
jne 0x412a12
push 0x50fad0
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x20]
call fcn.004079d0
push str.GptBrowser.exe
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.004079d0
add esp, 8
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411e21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4129f8
push str.GPT_Chrome
lea ecx, [ebp - 0x14]
call fcn.00408580
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x411e81
test edi, edi
je 0x411e74
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push 0x5115a8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x411ec5
test edi, edi
je 0x411eb8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0
push str.GPT_Chrome
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00408580
push str._is_an_awsome_internet_browser
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
call fcn.004079d0
add esp, 4
mov edx, dword [eax]
test edx, edx
je 0x411f29
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x20], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411f00
sub ecx, dword [ebp - 0x20]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.ApplicationDescription
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411f43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411f61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x511604
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.004079d0
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x411fac
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x34], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x411f83
sub edx, dword [ebp - 0x34]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push str.ApplicationIcon
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x411fe9
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x34], ecx
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x411fc0
sub edx, dword [ebp - 0x34]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push str.ApplicationName
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.FileAssociations
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412026
test edi, edi
je 0x412020
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x48], edi
push 0x1a
push str.TSBrowserHTM
push 1
push 0
push str..htm
push edi
mov byte [ebp - 4], 0xa
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1a
push str.TSBrowserHTM
push 1
push 0
push 0x5102b4
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1a
push str.TSBrowserHTM
push 1
push 0
push str..shtml
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1a
push str.TSBrowserHTM
push 1
push 0
push str..svg
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1a
push str.TSBrowserHTM
push 1
push 0
push str..webp
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1a
push str.TSBrowserHTM
push 1
push 0
push str..xht
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1a
push str.TSBrowserHTM
push 1
push 0
push str..xhtml
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x4120db
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x48], edi
push str.GPT_Chrome
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], 0
call fcn.00408580
push eax
mov edx, str.SOFTWAREClientsStartMenuInternet_
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x38]
call fcn.00407840
push str.Capabilities
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x34]
call fcn.004079d0
add esp, 8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push 0xf013f
push 0
push dword [eax]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x41215d
mov dword [ebp - 0x18], eax
test edi, edi
je 0x412150
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x100
mov edx, dword [ebp - 0x34]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412177
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412191
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4121af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
jne 0x4129c4
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.Startmenu
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4121f6
test edi, edi
je 0x4121f0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x412239
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x3c], ecx
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x412210
sub edx, dword [ebp - 0x3c]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push str.StartMenuInternet
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x412249
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x48], edi
push str.GPT_Chrome
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x44], 0
call fcn.00408580
push eax
mov edx, str.SOFTWAREClientsStartMenuInternet_
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x38]
call fcn.00407840
push str.Capabilities
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x3c]
call fcn.004079d0
add esp, 8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push 0xf013f
push 0
push dword [eax]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x4122cb
mov dword [ebp - 0x18], eax
test edi, edi
je 0x4122be
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x100
mov edx, dword [ebp - 0x3c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4122e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4122ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41231d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
jne 0x4129c4
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.URLAssociations
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412364
test edi, edi
je 0x41235e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x48], edi
push 0x1a
push str.TSBrowserHTM
push 1
push 0
push 0x5116f0
push edi
mov byte [ebp - 4], 0xa
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1a
push str.TSBrowserHTM
push 1
push 0
push str.http
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1a
push str.TSBrowserHTM
push 1
push 0
push str.https
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x4123bd
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x48], edi
push str.GPT_Chrome
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x44], 0
call fcn.00408580
push eax
mov edx, str.SOFTWAREClientsStartMenuInternet_
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x3c]
call fcn.00407840
add esp, 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push 0xf013f
push 0
push dword [eax]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x41242c
mov dword [ebp - 0x18], eax
test edi, edi
je 0x41241f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x100
mov edx, dword [ebp - 0x3c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412446
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412464
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
jne 0x4129c4
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.DefaultIcon
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4124ab
test edi, edi
je 0x4124a5
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4124e9
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x3c], ecx
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4124c0
sub edx, dword [ebp - 0x3c]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push 0x50facc
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x4124f9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x48], edi
push str.GPT_Chrome
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x44], 0
call fcn.00408580
push eax
mov edx, str.SOFTWAREClientsStartMenuInternet_
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x3c]
call fcn.00407840
add esp, 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push 0xf013f
push 0
push dword [eax]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x412568
mov dword [ebp - 0x18], eax
test edi, edi
je 0x41255b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x100
mov edx, dword [ebp - 0x3c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412582
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4125a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
jne 0x4129c4
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.InstallInfo
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4125ee
test edi, edi
je 0x4125e1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xa
push eax
mov edx, 0x50fc24
lea ecx, [ebp - 0x18]
call fcn.00407840
push 0x50fc24
mov edx, eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x20]
call fcn.004079d0
add esp, 8
mov byte [ebp - 4], 0x1b
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x3c], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x412686
lea eax, [ecx + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x41267a
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x41267a
mov ecx, dword [ebp - 0x3c]
call fcn.00408b90
mov edx, dword [ebp - 0x38]
mov ecx, ebx
mov dword [ebp - 0x3c], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412672
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3c]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x412686
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00408c90
mov edx, dword [ebp - 0x20]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4126a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4126be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.___hide_icons
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.004079d0
add esp, 4
push 4
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x1c
push eax
push 4
push 0
push str.IconsVisible
push edi
mov dword [ebp - 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41272a
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x3c], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x412701
sub edx, dword [ebp - 0x3c]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push str.HideIconsCommand
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.___make_default_browser
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x28]
call fcn.004079d0
add esp, 4
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x412779
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x3c], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x412750
sub edx, dword [ebp - 0x3c]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push str.ReinstallCommand
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.___show_icons
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.004079d0
add esp, 4
mov byte [ebp - 4], 0x1e
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4127c9
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x3c], ecx
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4127a0
sub edx, dword [ebp - 0x3c]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push str.ShowIconsCommand
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x4127d9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x48], edi
push str.GPT_Chrome
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x44], 0
call fcn.00408580
push eax
mov edx, str.SOFTWAREClientsStartMenuInternet_
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x3c]
call fcn.00407840
add esp, 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push 0xf013f
push 0
push dword [eax]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x41283e
mov dword [ebp - 0x18], eax
test edi, edi
je 0x41283b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412858
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412872
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
jne 0x412976
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.shell
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4128b6
test edi, edi
je 0x4128b3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.open
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4128f0
test edi, edi
je 0x4128ed
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.command
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41292a
test edi, edi
je 0x412927
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x412969
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x3c], ecx
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x412940
sub edx, dword [ebp - 0x3c]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push 0x50facc
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x412976
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov edx, dword [ebp - 0x24]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412990
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4129aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4129c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4129de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4129f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412a12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x412a1d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
pop ebx
jg 0x412a33
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret