Function at 0x407240
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43a4f1
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x44d6b8]
xor eax, esp
mov dword [esp + 0x334], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44d6b8]
xor eax, esp
push eax
lea eax, [esp + 0x34c]
mov dword fs:[0], eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xor edi, edi
push edi
push 0x10
lea eax, [esp + 0x44]
push eax
push edi
mov ebx, ecx
call esi
push edi
push 0x1a
lea ecx, [esp + 0x148]
push ecx
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.MicrosoftInternet_ExplorerQuick_Launch.
lea edx, [esp + 0x144]
push edx
call esi
push str..
lea eax, [esp + 0x40]
push eax
call esi
lea ecx, [esp + 0x24]
call fcn.004176db
mov dword [esp + 0x354], edi
call fcn.0041326b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4072e9
push 0x80004005
call fcn.00401270
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x354], 1
mov dword [esp + 0x18], edi
xor eax, eax
test edi, edi
jne 0x407330
jmp 0x407310
mov cl, byte [esp + eax + 0x3c]
mov byte [esp + eax + 0x244], cl
add eax, 1
test cl, cl
jne 0x407310
jmp 0x407345
mov cl, byte [esp + eax + 0x140]
mov byte [esp + eax + 0x244], cl
add eax, 1
test cl, cl
jne 0x407330
push 0
lea ecx, [esp + 0x248]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00417767
test eax, eax
je 0x4075ac
lea ecx, [esp + 0x24]
call fcn.004173f4
test eax, eax
je 0x4075ac
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
call fcn.00417996
mov ebp, eax
mov eax, dword [ebp]
mov edi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
mov byte [esp + 0x354], 2
jge 0x4073a8
push edi
mov ecx, ebp
call fcn.00401a50
mov eax, dword [ebp]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.00425bb3
push eax
call fcn.004011e0
add esp, 0xc
test edi, edi
jl 0x40761e
mov eax, dword [ebp]
cmp edi, dword [eax - 8]
jg 0x40761e
mov dword [eax - 0xc], edi
mov edx, dword [ebp]
mov byte [edi + edx], 0
mov ebp, dword [ebp]
lea eax, [ebp - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x407434
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x407422
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x407422
push eax
call fcn.00401aa0
add esp, 4
mov ebp, eax
or edx, 0xffffffff
lock xadd dword [esi], edx
dec edx
test edx, edx
jg 0x407419
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea esi, [ebp + 0x10]
mov dword [esp + 0x14], esi
jmp 0x407434
mov eax, dword [ebp - 0xc]
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.00402440
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x354], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40745c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi - 0xc], 0
jl 0x407597
push str..lnk
push esi
call fcn.004260ad
add esp, 8
test eax, eax
je 0x40747f
sub eax, esi
cmp eax, 0xffffffff
jne 0x4074aa
cmp dword [esi - 0xc], 0
jl 0x407597
push str..url
push esi
call fcn.004260ad
add esp, 8
test eax, eax
je 0x407597
sub eax, esi
cmp eax, 0xffffffff
je 0x407597
xor edi, edi
lea esp, [esp]
mov ecx, dword [ebx + 0x13c]
test ecx, ecx
je 0x407597
mov eax, dword [ebx + 0x140]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x407597
test ecx, ecx
je 0x4074e4
mov eax, dword [ebx + 0x140]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x4074e9
call fcn.00425cf0
mov ecx, dword [ebx + 0x13c]
mov eax, dword [ecx + edi*4]
test eax, eax
je 0x40758f
cmp dword [esi - 0xc], 0
jl 0x40758f
push eax
push esi
call fcn.004260ad
add esp, 8
test eax, eax
je 0x40758f
sub eax, esi
cmp eax, 0xffffffff
je 0x40758f
cmp dword [esi - 0xc], 0
jl 0x40758f
push str..lnk
push esi
call fcn.004260ad
add esp, 8
test eax, eax
je 0x407558
sub eax, esi
cmp eax, 0xffffffff
je 0x407558
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
lea ecx, [esp + 0x2c]
call fcn.00417906
mov ecx, ebx
call fcn.00406cc0
add edi, 1
jmp 0x4074b0
cmp dword [esi - 0xc], 0
jl 0x40758f
push str..url
push esi
call fcn.004260ad
add esp, 8
test eax, eax
je 0x40758f
sub eax, esi
cmp eax, 0xffffffff
je 0x40758f
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
push eax
lea ecx, [esp + 0x2c]
call fcn.00417906
mov ecx, ebx
call fcn.00406eb0
add edi, 1
jmp 0x4074b0
lea ecx, [esp + 0x24]
call fcn.004173f4
test eax, eax
jne 0x407371
mov edi, dword [esp + 0x18]
add edi, 1
cmp edi, 2
mov dword [esp + 0x18], edi
jl 0x407305
lea eax, [esi - 0x10]
mov byte [esp + 0x354], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4075e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x354], 0xffffffff
call fcn.004176ff
xor eax, eax
mov ecx, dword [esp + 0x34c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.00425729
add esp, 0x344
ret
push 0x80070057
call fcn.00401270
int3