Function at 0x408540
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541d81
mov eax, dword fs:[0]
push eax
sub esp, 0x518
mov eax, dword [0x594ca8]
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
call fcn.00417515
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40858a
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x51c], eax
mov dword [ebp - 4], ebx
call fcn.00417515
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4085b9
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x518], eax
push 0x57053a
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 1
call fcn.00404440
push eax
lea ecx, [ebp - 0x51c]
call fcn.00404790
push 0x103
lea ecx, [ebp - 0x113]
push ebx
push ecx
mov byte [ebp - 0x114], bl
call fcn.00518ea0
push 0x3ff
lea edx, [ebp - 0x513]
push ebx
push edx
mov byte [ebp - 0x514], bl
call fcn.00518ea0
add esp, 0x18
push 1
push 0x1c
lea eax, [ebp - 0x514]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [ebp - 0x514]
push ecx
lea edx, [ebp - 0x114]
push str._sMicrosoftInternet_ExplorerQuick_Launch
push edx
call fcn.00515ef6
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0x408851
lea eax, [esi + esi]
call fcn.0051b880
mov edi, esp
cmp edi, ebx
je 0x408851
push esi
push edi
push 0xffffffffffffffff
lea edx, [ebp - 0x114]
push edx
push ebx
xor ecx, ecx
push 3
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x408851
mov eax, edi
mov edx, edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4086a1
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x51c]
call fcn.004046e0
lea ecx, [ebp - 0x51c]
call fcn.0040f240
test al, al
je 0x408708
mov eax, dword [ebp - 0x51c]
push 0x570c84
push eax
lea ecx, [ebp - 0x518]
push str._s_s.lnk
push ecx
call fcn.00403cc0
add esp, 0xc
lea edx, [ebp - 0x518]
mov dword [ebp - 0x524], esp
mov ecx, esp
push edx
call fcn.00404900
call fcn.00402330
add esp, 4
push 0x1a
lea esi, [ebp - 0x51c]
call fcn.0040a550
add esp, 4
mov ecx, esi
call fcn.0040f240
mov edi, dword [ebp - 0x51c]
test al, al
je 0x40875f
push 0x570c84
push edi
lea eax, [ebp - 0x518]
push str._sMicrosoftInternet_ExplorerQuick_Launch_s.lnk
push eax
call fcn.00403cc0
add esp, 0xc
lea edx, [ebp - 0x518]
mov dword [ebp - 0x524], esp
mov ecx, esp
push edx
call fcn.00404900
call fcn.00402330
add esp, 4
lea ebx, [ebp - 0x520]
call fcn.00407aa0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x520]
push 0x570c84
push eax
lea ecx, [ebp - 0x518]
push str._s_s.lnk
push ecx
call fcn.00403cc0
mov edx, dword [ebp - 0x518]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
add esp, 0x10
push 5
push 0
push 0
push edx
push str.taskbarunpin
push 0
call esi
mov eax, dword [ebp - 0x518]
push 5
push 0
push 0
push eax
push str.startunpin
push 0
call esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x520]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4087e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x518]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40880c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40882f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x534]
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.0051553d
mov esp, ebp
pop ebp
ret
xor edx, edx
xor eax, eax
jmp 0x4086b0