Function at 0x40f705
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4e0e80
call fcn.004b1eac
sub esp, 0xe68
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x51c747
call fcn.004b1bc6
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x20]
add eax, 4
push eax
call fcn.00403f4a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
push 0x4e7284
call fcn.004022e3
push ecx
xor ebx, ebx
mov dword [ebp - 0x24], esp
mov ecx, esp
mov esi, str.GptChrome
inc ebx
push esi
mov byte [ebp - 4], bl
call fcn.004040c9
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004028b0
push ecx
mov ecx, esp
push eax
call fcn.00404074
mov eax, reloc.WS2_32.dll_bind
mov byte [ebp - 4], bl
push eax
call fcn.004066c6
pop ecx
pop ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push esi
call fcn.004040c9
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.004028b0
push ecx
mov ecx, esp
push eax
call fcn.00404074
mov esi, reloc.WS2_32.dll_accept
mov byte [ebp - 4], bl
push esi
call fcn.004066c6
push 0x400
lea eax, [ebp - 0x674]
push 0
push eax
call fcn.004b5210
push 0x400
lea eax, [ebp - 0xa74]
push 0
push eax
call fcn.004b5210
push 0x400
lea eax, [ebp - 0xe74]
push 0
push eax
call fcn.004b5210
push 0x4e5994
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404709
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1c]
push str.GptBrowser.exe
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00404709
add esp, 0x48
push str.uninstall.exe
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404709
push dword [ebp - 0x34]
lea eax, [ebp - 0x674]
mov byte [ebp - 4], 6
push 0x4e72ec
push eax
call fcn.0040fd48
push dword [ebp - 0x20]
lea eax, [ebp - 0xa74]
push 0x4e72ec
push eax
call fcn.0040fd48
push dword [ebp - 0x30]
lea eax, [ebp - 0xe74]
push str.__s___uninsgpt
push eax
call fcn.0040fd48
add esp, 0x30
lea ecx, [ebp - 0x18]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
call fcn.004040c9
push str.GptChrome
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.0040496e
push 0x208
lea eax, [ebp - 0x274]
push 0
push eax
call fcn.004b5210
add esp, 0xc
lea eax, [ebp - 0x274]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x14]
call fcn.004040c9
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00405ec8
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x14]
dec eax
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00405ef6
mov byte [ebp - 4], 9
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
mov ecx, edi
lea eax, [esi + 1]
cmovne esi, eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0040daf5
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.004028b0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404074
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xc
call fcn.0040291c
push 0x4e7040
lea ecx, [ebp - 0x28]
call fcn.00404074
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
xor eax, eax
push eax
push 0x20106
push eax
push eax
push eax
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [ebp - 0x24]
test eax, eax
jne 0x40fabb
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x674]
push eax
push ebx
push 0
push str.DisplayIcon
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fabb
push str.GPT_Chrome
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push str.GPT_Chrome
push ebx
push 0
push str.DisplayName
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fabb
lea eax, [ebp - 0xa74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0xa74]
push eax
push ebx
push 0
push str.InstallLocation
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fabb
push 0x4e73d8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 0x4e73d8
push ebx
push 0
push str.Publisher
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fabb
lea eax, [ebp - 0xe74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0xe74]
push eax
push ebx
push 0
push str.UninstallString
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fabb
mov eax, dword [edi - 0xc]
lea eax, [eax*2 + 2]
push eax
push edi
push ebx
push 0
push str.PackageName
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fabb
mov esi, dword [ebp - 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push 0
push str.DisplayVersion
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fabb
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push ebx
push 0
push str.InstallDate
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fabb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40fabd
xor bl, bl
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
lea ecx, [edi - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00405cf0
lea ecx, [ebp - 0x54]
call fcn.0040291c
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret