Function at 0x409480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edx
mov ebx, dword [ebp + 0xc]
mov ecx, 0x426010
mov eax, dword [0x43000c]
xor eax, ebp
test ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, section..rdata
cmove ecx, eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x8000
push ecx
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp - 0x24]
test eax, eax
js 0x409624
cmp ebx, 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jne 0x4094f6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x48]
or eax, edx
je 0x4094f6
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
test eax, eax
cmovne edx, eax
call fcn.004097d0
jmp 0x40951b
movsd xmm0, qword [0x429414]
movsd xmm1, qword [0x42940c]
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x20]
movsd qword [ebp - 0x18], xmm0
movsd qword [ebp - 0x20], xmm1
call fcn.00409880
mov edi, eax
test eax, eax
js 0x409633
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x30], 0
push edi
call fcn.004157a2
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
lea esi, [eax + ecx + 1]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x4c], edx
push edx
push edi
push 0x42bb56
push esi
push eax
call fcn.00409920
add esp, 0x14
cmp dword [ebp - 0x34], esi
mov edi, 0x80004005
jne 0x4096b9
cmp dword [ebp - 0x44], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
je 0x40960c
xor eax, eax
cmp ecx, 1
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x40], 0
lea edi, [ebp - 0x40]
sete al
push eax
push edi
call fcn.00409110
add esp, 8
test eax, eax
js 0x409735
movsd xmm0, qword [0x429424]
movsd xmm1, qword [str.updates]
mov edi, dword [ebp - 0x40]
movsd qword [ebp - 0x18], xmm0
movsd qword [ebp - 0x20], xmm1
push edi
call fcn.004157a2
add esp, 4
lea eax, [esi + eax + 9]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x3c]
push edi
push ecx
push dword [ebp - 0x30]
push str._s_s_s
push eax
push edx
call fcn.00409920
add esp, 0x18
mov ecx, dword [ebp + 0xc]
test edi, edi
mov dword [ebp - 0x40], 0
jne 0x40971c
test ecx, ecx
jne 0x409651
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x3c], 0
je 0x40963b
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x3c]
push eax
push 1
jmp 0x409643
mov edi, eax
test esi, esi
jne 0x4096dc
jmp 0x4096e3
mov eax, dword [ebp - 0x28]
jmp 0x4096cd
lea ecx, [ebp - 0x34]
mov edx, ecx
push eax
push 0
call fcn.00409a00
add esp, 8
mov edi, eax
test eax, eax
js 0x4096ab
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x44], 0
je 0x409683
cmp dword [ebp - 0x3c], 0
je 0x4096a6
mov edx, dword [ebp - 0x38]
mov ecx, dword [eax]
xor edi, edi
mov dword [ebp - 0x38], ecx
mov dword [eax], edx
test ecx, ecx
mov eax, 0
je 0x40967e
push ecx
call fcn.004157a2
add esp, 4
mov dword [ebp - 0x3c], eax
jmp 0x4096ab
mov edx, dword [ebp - 0x30]
mov ecx, dword [eax]
xor edi, edi
mov dword [ebp - 0x30], ecx
mov dword [eax], edx
test ecx, ecx
mov eax, 0
je 0x4096a1
push ecx
call fcn.004157a2
add esp, 4
mov dword [ebp - 0x34], eax
jmp 0x4096ab
mov edi, 0x80004005
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], 0
test eax, eax
jne 0x409711
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x30], 0
test eax, eax
jne 0x409706
mov eax, dword [ebp - 0x4c]
test eax, eax
mov dword [ebp - 0x28], 0
jne 0x4096f7
test esi, esi
je 0x4096e3
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ce4a
mov eax, edi
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.0040c66a
add esp, 4
test esi, esi
jne 0x4096dc
jmp 0x4096e3
push eax
call fcn.0040c66a
add esp, 4
jmp 0x4096ca
push eax
call fcn.0040c66a
add esp, 4
jmp 0x4096b9
push edi
call fcn.0040c66a
mov ecx, dword [ebp + 0xc]
add esp, 4
test ecx, ecx
jne 0x409651
jmp 0x409610
mov edi, dword [ebp - 0x40]
jmp 0x4095fa