Function at 0x45fc40
Capabilities:
Check if file exists
Get common file path
Get program files directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e14c
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4914f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], edi
call fcn.0042fa4e
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x45fc9e
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x218], eax
mov dword [ebp - 4], edi
call fcn.0042fa4e
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x45fccd
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x214], eax
push 0x29
push str.SoftwareMicrosoftInternet_ExplorerMain
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
call fcn.00403400
push 0xa
push str.Start_Page
lea ecx, [ebp - 0x214]
call fcn.00403400
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x224]
push edx
push edi
push 0xf003f
push 1
push edi
push edi
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x45fd66
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x214]
lea ecx, [eax + eax + 1]
mov eax, dword [ebp - 0x224]
push ecx
push esi
push 1
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x26
lea edx, [ebp - 0x210]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.0042fa4e
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x45fd91
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 2
call fcn.0042fa4e
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x45fdc1
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 3
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45fde0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00403400
push 4
push str.360
lea ecx, [ebp - 0x21c]
call fcn.00403340
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45fe20
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x220]
call fcn.00403400
push 0x1c
push str.kingsoftkingsoft_antivirus
lea ecx, [ebp - 0x220]
call fcn.00403340
mov esi, dword [ebp - 0x220]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
jne 0x45fe7f
push esi
call edi
test eax, eax
jne 0x45fe7f
mov eax, dword [ebp - 0x22c]
push 2
push eax
call fcn.0045f8a0
add esp, 8
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fe9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fec5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45feeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ff14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044665f
mov esp, ebp
pop ebp
ret