Function at 0x40ba60
Capabilities:
Persist via run registry key
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff7cc
push ebx
push esi
push edi
lea ebx, [ebp - 0x1834]
mov eax, 0x4c0590
call fcn.0048c270
cmp dword [ebp + 8], 0
je 0x40ba8f
cmp dword [ebp + 0xc], 1
jae 0x40baa0
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov eax, edx
jmp 0x40be0e
lea edi, [ebp - 0x434]
mov esi, 0x4bd48c
mov ecx, 0x100
lea eax, [ebp - 0x434]
rep movsd dword es:[edi], dword [esi]
push 0x400
push eax
push str._LOCALAPPDATA_GoogleChromeUser_DataDefaultPreferences
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov word [ebp - 0x20], 8
lea edx, [ebp - 0x434]
lea eax, [ebp - 4]
call fcn.00497ebc
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d63c
xor edx, edx
mov dl, al
lea eax, [ebp - 4]
cmp edx, 1
mov edx, 2
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x14]
call fcn.00498000
pop ecx
test cl, cl
je 0x40bbb9
push 0x400
lea eax, [ebp - 0x434]
push eax
push str._APPDATA_GoogleChromeUser_DataDefaultPreferences
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov word [ebp - 0x20], 0x14
lea edx, [ebp - 0x434]
lea eax, [ebp - 8]
call fcn.00497ebc
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d63c
xor edx, edx
mov dl, al
lea eax, [ebp - 8]
cmp edx, 1
mov edx, 2
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x14]
call fcn.00498000
pop ecx
test cl, cl
je 0x40bbb9
push 0x400
lea eax, [ebp - 0x434]
push eax
push 0x4c0159
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
call fcn.00411534
add esp, 0x14
cmp byte [ebp - 0x434], 0
je 0x40bbb9
push 0x400
lea edx, [ebp - 0x434]
push edx
call fcn.00412194
add esp, 8
lea ecx, [ebp - 0x434]
push 0x400
push 0x4c00b6
push ecx
call fcn.00411af8
add esp, 0xc
mov word [ebp - 0x20], 0x20
lea edx, [ebp - 0x434]
lea eax, [ebp - 0xc]
call fcn.00497ebc
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d63c
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00498000
pop ecx
test cl, cl
je 0x40be05
push 0x4c0167
lea eax, [ebp - 0x434]
push eax
call fcn.0048ded0
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40be05
mov esi, 0x4bd88d
lea edi, [ebp - 0x1434]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4be88e
mov edi, ebx
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
jmp 0x40bddb
push str.urls_to_restore_on_startup
lea eax, [ebp - 0x1434]
push eax
call fcn.0048bf69
add esp, 8
test eax, eax
je 0x40bddb
lea edx, [ebp - 0x1434]
sub eax, edx
inc eax
mov esi, eax
lea edi, [ebp + esi - 0x1434]
jmp 0x40bc8d
xor eax, eax
mov al, byte [edi]
cmp eax, 0x5b
jne 0x40bc8b
push 0x400
lea edx, [ebp - 0x1434]
add edx, esi
push edx
push ebx
call fcn.00411b40
add esp, 0xc
test eax, eax
jne 0x40bcac
inc esi
inc edi
lea ecx, [ebp - 0x1434]
push ecx
call fcn.0048be70
pop ecx
cmp esi, eax
jb 0x40bc67
jmp 0x40bcac
push ebx
call fcn.0048be70
pop ecx
mov byte [ebx + eax - 1], 0
push ebx
call fcn.0048be70
pop ecx
cmp eax, 1
jbe 0x40bcd7
push ebx
call fcn.0048be70
pop ecx
movzx eax, byte [ebx + eax - 1]
cmp eax, 0x5d
jne 0x40bca0
jmp 0x40bcd7
push ebx
call fcn.0048be70
pop ecx
mov byte [ebx + eax - 1], 0
push ebx
call fcn.0048be70
pop ecx
cmp eax, 1
jbe 0x40bd3c
push ebx
call fcn.0048be70
pop ecx
xor edx, edx
mov dl, byte [ebx + eax - 1]
cmp edx, 0x5d
je 0x40bccb
push ebx
call fcn.0048be70
pop ecx
xor ecx, ecx
mov cl, byte [ebx + eax - 1]
cmp ecx, 0x20
je 0x40bccb
push ebx
call fcn.0048be70
pop ecx
movzx eax, byte [ebx + eax - 1]
cmp eax, 0x22
je 0x40bccb
jmp 0x40bd3c
xor eax, eax
lea edi, [ebx + 1]
or ecx, 0xffffffff
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.0048be70
pop ecx
cmp eax, 1
jbe 0x40bd5b
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x5b
je 0x40bd1a
cmp eax, 0x22
je 0x40bd1a
cmp eax, 0x20
je 0x40bd1a
push 0x400
push str.MULTISEP
push 0x4c01cf
push ebx
call fcn.004122e4
add esp, 0xc
push eax
push ebx
call fcn.00411b40
add esp, 0xc
cmp byte [ebx], 0
je 0x40bdfb
mov edx, dword [ebp + 0xc]
push edx
push 0x4c0326
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411af8
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push 0x4c035d
mov edx, dword [ebp + 8]
push edx
call fcn.00411af8
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
call fcn.0040c7f4
pop ecx
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00411af8
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x4c0328
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411af8
add esp, 0xc
jmp 0x40bdfb
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x1434]
push eax
push 0x1000
push edx
call fcn.0048db58
add esp, 0xc
test eax, eax
jne 0x40bc37
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048da28
pop ecx
mov eax, dword [ebp - 0x30]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret